问题
Example:
You create a model with 9 parameters you expect to be editable in the Simulation tab and user-settable in the FMU.
However,
- Only 5 parameters appear to be editable from the Simulation tab.
- Likewise, FMU has only 5 user-settable parameters.
回答1:
Solution:
To generate more efficient code, Dymola sometimes "evaluates" parameters.
annotation(Evaluate=false)
tells Dymola a parameter should not be evaluated.
Example:
parameter Real theAnswer = 42.0 "The answer to life,…" annotation(Evaluate=false);
Dymola will now allow theAnswer
to be edited in the Simulation tab and be user-settable in the FMU.
来源:https://stackoverflow.com/questions/37571451/parameters-sometimes-not-editable-in-dymola-simulation-tab-and-fmu