MATLAB MODEL PREDICTIVE CONTROL TOOLBOX - S Specifiche Pagina 113

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 166
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 112
Design Controller at the Command Line
4-3
View and Alter Controller Properties
Once you've defined an MPC object, it's easy to alter its properties. For a description of
the editable properties, type:
mpcprops
To display the list of properties and their current values, type
get(MPCobj)
ManipulatedVariables (MV): [1x1 struct]
OutputVariables (OV): [1x2 struct]
DisturbanceVariables (DV): [1x1 struct]
Weights (W): [1x1 struct]
Model: [1x1 struct]
Ts: 1
Optimizer: [1x1 struct]
PredictionHorizon (P): 10
ControlHorizon: 2
History: [2e+003 7 21 20 18 20.1]
Notes: {}
UserData: []
(Your History entry will differ.) To alter one of these properties, you can use the syntax
ObjName.PropName = value;
where ObjName is the object name, and PropName is the property you want to set. For
example, to change the prediction horizon from 10 (the default) to 15, type:
MPCobj.P = 15;
Note You can abbreviate property names provided that the abbreviation is unambiguous.
As shown above, many of the properties are MATLAB structures containing additional
properties. For example, type
MPCobj.MV
Vedere la pagina 112
1 2 ... 108 109 110 111 112 113 114 115 116 117 118 ... 165 166

Commenti su questo manuale

Nessun commento