更新时间:2022-04-21 04:45:02
解决方案:
为了生成更高效的代码,Dymola 有时会评估"参数.
To generate more efficient code, Dymola sometimes "evaluates" parameters.
annotation(Evaluate=false)
告诉 Dymola 一个参数不应该被评估.
annotation(Evaluate=false)
tells Dymola a parameter should not be evaluated.
示例:
parameter Real theAnswer = 42.0 "The answer to life,…" annotation(Evaluate=false);
Dymola 现在允许在模拟"选项卡中编辑 theAnswer
,并允许用户在 FMU 中设置.
Dymola will now allow theAnswer
to be edited in the Simulation tab and be user-settable in the FMU.