Opened 4 years ago

Last modified 3 years ago

#6401 new defect

buildFMU with min, max values of variable

Reported by: lukas.koenemann@… Owned by: Lennart Ochel
Priority: high Milestone:
Component: FMI Version: 1.16.2
Keywords: fmu Cc:

Description

I want to build an fmu with openmodelica, when i do that i run the buildModelFMU/translateModelFMU function. The problem is, that additional information of the model-variable are not included. For example:

parameter Real F_min = 0;
parameter Real F_max = 1;
parameter Real F(min=F_min, max=F_max);

If I look into the model_description.xml file the min/max-values are not included for the variable F. Is it possible to do that?

I want to load the fmu with the pyfmi package (from Python) and read out the bounds of every variable with the pyfmi function (get_variable_min/max).

best regards,
Lukas

Change History (3)

comment:1 by Francesco Casella, 4 years ago

Milestone: NeedsInput1.18.0

comment:2 by lukas.koenemann@…, 4 years ago

Thank you for the implementation! It is working for the following case:

Real X(min=0,max=1);

But it is not working for:

parameter Real x_min = 0;
parameter Real x_max = 1;
Real X(min=x_min,max=x_max);

Is it possible to integrate parameter dependent bounds?

best regards,
Lukas

comment:3 by Francesco Casella, 3 years ago

Milestone: 1.18.0

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.