ContinousSimulatorSettings#
- class ContinousSimulatorSettings(t_step=None)[source]#
Bases:
SimulatorSettingsSettings for
Simulatorfor continous-time systems.An instance of this class is automatically generated as the attribute
settingswhen creating theSimulator.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#
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