MATLAB MODEL PREDICTIVE CONTROL TOOLBOX - S Specifications Page 130

  • Download
  • Add to my manuals
  • Print
  • Page
    / 166
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 129
4 Designing Controllers Using the Command Line
4-20
When the switch input is 1 the block automatically activates the first controller listed
(MPC1), which is appropriate when the masses are separated. When the switch input is
2 the block automatically enables the second controller (MPC2).
The following code simulates the controller performance
Tstop=100; % Simulation time
y1initial=0; % Initial M1 and M2 Positions
y2initial=10;
open('mpc_switching');
sim('mpc_switching',Tstop);
The figure below shows the signals scope output.
Page view 129
1 2 ... 125 126 127 128 129 130 131 132 133 134 135 ... 165 166

Comments to this Manuals

No comments