I would like to be able to run different type of calculation with the same model. i.e: according to the type of calculation some variables will "fixed = true" or "fixed=false".
So I have done that:
QUELLTEXT
parameter Integer Calculation_Type(
min=1,
max=3) = 1 "Choice of Calculation Type" annotation (Evaluate=true,
choices(
choice=1 "Type1",
choice=2 "Type2",
choice=3 "Type3"),
Dialog,
editText=false);
And, this is the pb: I would like to write a code like that:
QUELLTEXT
initial equation
if input_data.Calculation_Type== 1 then
V_measured=V1;
Mavariable1( fixed=false,start= 10);
end if;
if input_data.Calculation_Type== 2 then
V_measured=V2;
Mavariable2( fixed=false,start= 10);
end if;
if input_data.Calculation_Type== 33 then
V_measured=V3;
Mavariable3( fixed=false,start= 10);
end if;
However it doesn't run, because it is not possible to "fixed=false" in initial equation?
Is anybody have a solution?
Thank you in advance
See you...
