Automated Tuning Workflow
Whether you are tuning a control system at the command line or using Control System Tuner, the basic workflow includes the following steps:
Define your control architecture, by building a model of your control system from fixed-value blocks and blocks with tunable parameters. You can do so in one of several ways:
Create a Simulink® model of your control system. (Tuning a Simulink model requires Simulink Control Design™ software.)
Use a predefined control architecture available in Control System Tuner.
At the command line, build a tunable
genss
model of your control system out of numeric LTI models and tunable control design blocks.
For more information, see Specify Control Architecture in Control System Tuner.
Set up your model for tuning.
In Control System Tuner, identify which blocks of the model you want to tune. See Model Setup for Control System Tuner.
If tuning a Simulink model at the command line, create and configure the
slTuner
interface to the model. See Model Setup for Tuning at the Command Line.
Specify your tuning goals. Use the library of tuning goals to capture requirements such as reference tracking, disturbance rejection, stability margins, and more.
In Control System Tuner, use the graphical interface to specify tuning goals. See Tuning Goals (Control System Tuner).
At the command-line, use the
TuningGoal
requirement objects to specify your tuning goals. See Tuning Goals (programmatic tuning).
Tune the model. Use the
systune
command or Control System Tuner to optimize the tunable parameters of your control system to best meet your specified tuning goals. Then, analyze the tuned system responses and validate the design. Whether at the command line or in Control System Tuner, you can plot system responses to examine any aspects of system performance you need to validate your design.For tuning and validating in Control System Tuner, see Tuning, Analysis, and Validation (Control System Tuner).
For tuning at the command line, see Tuning, Analysis, and Validation (programmatic tuning).