MATLAB MODEL PREDICTIVE CONTROL TOOLBOX - S Dokumentacja Strona 130

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 166
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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.
Przeglądanie stron 129
1 2 ... 125 126 127 128 129 130 131 132 133 134 135 ... 165 166

Komentarze do niniejszej Instrukcji

Brak uwag