Validate the Controller Design
To validate the
hinfstruct control design,
analyze the tuned output models described in Interpret the Outputs of hinfstruct.
Use these tuned models to examine the performance of the tuned system.
Validating the Design in MATLAB
This example shows how to obtain the closed-loop step response
of a system tuned with
hinfstruct in MATLAB®.
You can use the tuned versions of the tunable components of your system to build closed-loop or open-loop numeric LTI models of the tuned control system. You can then analyze open-loop or closed-loop performance using other Control System Toolbox™ tools.
In this example, create and analyze a closed-loop model of the
HDA system tuned in Tune the Controller Parameters. To do so, use
getIOTransfer to extract from the tuned
control system the transfer function between the step input and the
Try = getIOTransfer(T,'r','y'); step(Try)
Validating the Design in Simulink
This example shows how to write tuned values to your Simulink® model for validation.
slTuner interface linearizes your Simulink model.
As a best practice, validate the tuned parameters in your nonlinear
model. You can use the
slTuner interface to do so.
In this example, write tuned parameters to the
tuned in Tune the Controller Parameters.
Make a copy of the
slTuner description of the
control system, to preserve the original parameter values. Then propagate
the tuned parameter values to the copy.
ST = copy(ST0); setBlockValue(ST,T);
This command writes the parameter values from the tuned, weighted
T to the corresponding parameters
in the interface
You can examine the closed-loop responses of the linearized
version of the control system represented by
Try = getIOTransfer(ST,'r','y'); step(Try)
hinfstruct tunes a linearized version
of your system, you should also validate the tuned controller in the
full nonlinear Simulink model. To do so, write the parameter
values from the
slTuner interface to the Simulink model.
You can now simulate the model using the tuned parameter values to validate the controller design.