ContinousSimulatorSettings#

class ContinousSimulatorSettings(t_step=None)[source]#

Bases: SimulatorSettings

Settings for Simulator for continous-time systems.

An instance of this class is automatically generated as the attribute settings when creating the Simulator.

Example:

simulator = do_mpc.simulator.Simulator(model)
simulator.settings.t_step = 0.5

Note

As version 4.6.3, additional CasADI integrator options can be accessed as can be seen in the example below:

Example:

simulator = do_mpc.simulator.Simulator(model)
simulator.settings.integration_opts = {'gather_stats':True, 'print_stats': True, 'verbose':False}
Parameters:

t_step (float) –

Methods#

check_for_mandatory_settings#

check_for_mandatory_settings(self)#

Method to assert the necessary settings required to design do_mpc.controller

Attributes#

abstol#

ContinousSimulatorSettings.abstol: float = 1e-10#

Absolute tolerance for the integrator

integration_opts#

ContinousSimulatorSettings.integration_opts: Dict = {}#

Dictionary with options for the CasADi integrator call. Used tu update the opts dict in setup().

All options are listed here.

integration_tool#

ContinousSimulatorSettings.integration_tool: str = 'cvodes'#

Integration tool to be used. Options are ‘cvodes’ and ‘idas’

reltol#

ContinousSimulatorSettings.reltol: float = 1e-10#

Relative tolerance for the integrator

t_step#

ContinousSimulatorSettings.t_step: float = None#

Timestep of the Simulator