setup

Class method.

do_mpc.controller.MPC.setup(self)

Setup the MPC class. Internally, this method will create the MPC optimization problem under consideration of the supplied dynamic model and the given MPC class instance configuration.

The setup() method can be called again after changing the configuration (e.g. adapting bounds) and will simply overwrite the previous optimization problem.

Note

After this call, the solve() and make_step() method is applicable.

Warning

The setup() method may take a while depending on the size of your MPC problem. Note that especially for robust multi-stage MPC with a long robust horizon and many possible combinations of the uncertain parameters very large problems will arise.

For more details on robust multi-stage MPC please read our background article.

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