Changes between Initial Version and Version 1 of Ticket #4189


Ignore:
Timestamp:
2016-12-16T23:54:39Z (8 years ago)
Author:
Francesco Casella
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4189 – Description

    initial v1  
    1515The Modelica Specification 3.3 r1, Section 8.6, states that
    1616- For all variables declared as constant and parameter, with {{{fixed = true}}}; no equation is added to the initialization equations
    17 - If a parameter has a  start-expression, does not have  fixed=false, and neither has a binding equation nor is
    18 part of a record having a binding equation, the  start-expression can be used as parameter-expression although a
    19 diagnostic message is recommended when initializing the model without setting the parameter value.
     17- If a parameter has a  start-expression, does not have  fixed=false, and neither has a binding equation nor is part of a record having a binding equation, the  start-expression can be used as parameter-expression although a diagnostic message is recommended when initializing the model without setting the parameter value.
    2018
    2119As {{{p}}} is a Real variable, Sect. 4.8.1 defines a default start-expression {{{0}}} - I guess this was used to define p = 0. However, according to the Specification, a warning message should be issued here. In fact, the intent of leaving parameter {{{p}}} in model {{{M}}} without a binding equation is precisely to force the user to set it in a modifier when instantiating the model, and to get at least a warning if this is not done.