Appendix 16.3

Use the following files to reproduce the van de Vusse simulations shown in Figure 16-9. These are based on an unconstrained DMC strategy. Files for the constrained formulation, involving qp and quadprog from the optimization toolbox, are available on the book web page.

dmcsim.m

 % dmcsim % % 26 Oct 00 - revised 4/5 Aug 01 for Chapter 16 - MPC % b.w. bequette % unconstrained DMC simulation, calls: smatgen.m and dmccalc.m % currently contains van de vusse reactor model and plant % % MPC tuning and simulation parameters n = 50; % model length p = 10; % prediction horizon m = 1; % control horizon weight = 0.0; % weighting factor ysp = 1; % setpoint change (from 0) timesp = 1; % time of setpoint change delt = 0.1; % sample time tfinal ...

Get Process Control: Modeling, Design, and Simulation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.