Opened 7 years ago

Last modified 2 years ago

#2764 assigned enhancement

Allow some run-time options to be changed during simulation

Reported by: Iakov Nakhimovski Owned by: Christian Andersson
Priority: major Milestone: Pending
Component: FMI/Export Version: trunk
Keywords: #2357. Cc:

Description (last modified by Iakov Nakhimovski)

Currently the run-time options are only processed in the call to fmiInitialize. In some scenarios it is convenient to be able to change some of the options, e.g., log_level, later during simulation.
Not all run-time options may be easily changed this way. Some, such as, use_automatic_scaling or tolerance, affect the internal solver setup and should stay constant to avoid side-effects that are difficult to foresee.
Other options, such as log_level, can be changed at any time.

The ticket should probably be coupled to Ticket #2416 where grouping is added.

Options that are marked as, e.g., "dynamic", should then be re-read in run-time at every invocation of "fmiGet" that requires calculations. That is fmi_update_runtime_options() should be split into two functions. One for "static" options and other one for "dynamic" ones. The dynamic options should be updated in all calculation functions, such as jmi_ode_derivatives().

Current candidates for "dynamic" options:

  • log_level
  • nle_solver_max_iter
  • block_solver_experimental_mode
  • rescale_each_step
  • nle_solver_check_jac_cond
  • block_jacobian_check

This is a part of #2357.

Change History (7)

comment:1 Changed 7 years ago by Iakov Nakhimovski

Description: modified (diff)
Keywords: #2357 added

comment:2 Changed 7 years ago by jakesson

Component: BuildFMI/Export

comment:3 Changed 6 years ago by Jesper Mattsson

Owner: set to toivo
Status: newassigned

comment:4 Changed 6 years ago by Iakov Nakhimovski

Description: modified (diff)

comment:5 Changed 6 years ago by toivo

Owner: changed from toivo to Iakov Nakhimovski

comment:6 Changed 6 years ago by Tove Bergdahl

Milestone: Pending

comment:7 Changed 2 years ago by Jesper Mattsson

Owner: changed from Iakov Nakhimovski to Christian Andersson

Is this relevant?

Note: See TracTickets for help on using tickets.