model
- class model(objective, system, constraints=None)[source]
Class that contains all the components of the optimal control problem.
Can be used to perform open and closed loop simulations.
- Parameters:
objective (objective) – nMPyC-objective defining the objective of the optimal control problem.
system (system) – nMPyC-system defining the system dynamics of the optimal control problem.
constraints (constraints optional) – nMPyC-constraints defining the constraints of the optimal control problem. If constraints is None the problem is unconstrained. The default is None.
Attributes
Prediction horizon of the MPC loop.
Constraints of the optimal control problem.
Objective of the optimal control problem.
Optimizer for the optimal control problem.
System dynamics of the optimal control problem.
Methods
Loads a nMPyC model object from a file.
Solves the optimal control problem via model predictive control.
Saving the model to a given file with dill.
Solves the finit horizon optimal control problem.