# setup¶

Class method.

do_mpc.model.Model.setup(self)

Setup method must be called to finalize the modelling process. All required model variables must be declared. The right hand side expression for _x must have been set with set_rhs().

Sets default measurement function (state feedback) if set_meas() was not called.

Warning

After calling setup(), the model is locked and no further variables, expressions etc. can be set.

Raises: assertion – Definition of right hand side (rhs) is incomplete None None