set_initial_state

Class method.

do_mpc.simulator.Simulator.set_initial_state(self, x0, reset_history=False)

Set the intial state of the simulator. Optionally resets the history. The history is empty upon creation of the simulator.

Warning

This method is depreciated. Use the x0 property of the class to set the intial values instead.

Parameters:
  • x0 (numpy array) – Initial state
  • reset_history (bool (optional)) – Resets the history of the simulator, defaults to False
Returns:

None

Return type:

None

This page is auto-generated. Page source is not available on Github.