Model Predictive Control (MPC) Tools PackageAn ExampleConsider the example as described by the model cstr_nmpc_nmhe.m in which the reactant A converts to product B in an exothermic reaction. The composition (x1) and temperature (x2) of the product stream is measured in addition to the liquid level (x3) in the reactor. The temperature of the coolant (u1) and the outlet flow rate (u2) are the manipulated variables. The goal is to steer the system to the target concentration of 0.878 while maintaining a fixed height in the tank.The model and parameters are specified in cstr_nmpc_nmhe.m. This Octave file also contains the setup required to create a regulator, estimator, and target selector with MPCTools for this example. For a step change in the inlet flow rate (the disturbance variable), the graphical output of MPCTools shows the results of the control simulation. Here are the results of our example. Other ExamplesOther examples can be found at the bitbucket site under examples-src. MPCTools comes with all the examples at this location. |