MATLAB MODEL PREDICTIVE CONTROL TOOLBOX - S Specifikace Strana 130

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 166
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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.
Zobrazit stránku 129
1 2 ... 125 126 127 128 129 130 131 132 133 134 135 ... 165 166

Komentáře k této Příručce

Žádné komentáře