Main Content

Design Optimization to Meet Custom Signal Requirements (GUI)

This example shows how to optimize a design to meet a custom signal requirement. You optimize the controller parameters to minimize the plant actuation signal energy while satisfying step response requirements.

Load a savedResponse Optimizersession.

loadsldo_model1_custom_signal_sessionsdotool(SDOSessionData);

model1_model.png

The Response Optimizer, configured with the following settings, also opens:

  1. Step response characteristics, specified on the output of thePlantblock, that the model output must satisfy:

  • Maximum overshoot of 5%

  • Maximum rise time of 10 seconds

  • Maximum settling time of 30 seconds

2. Design variable set with the controller parametersKp,Ki, andKd. These parameters have a minimum value of 0.

3. The variables for step requirements (PlantResponse), logged signal (PlantOutput) and design variables (DesignVars) which appear in theDataarea.

ex_cust_sig_design_optim_tool.png

Specify a signal to log. You apply the custom requirement on this logged signal.

  1. SelectNew>Signal. A window opens where you select a signal to log.

  2. In the Simulink model window, click the output of theControllerblock. The window updates to display the selected signal.

  3. InSignal set, enterPlantActuator. ClickOK. A new variablePlantActuatorappears in theDataarea.

Specify the custom requirement to apply to the signal. The custom requirement calls the objective functionsldo_model1_minimize_energywhich returns the energy in thePlantActuatorsignal. The signal energy is minimized. This function accepts:

  • An input argumentdatawhich is a structure with fields for the design variables in theDataarea. Signals are logged for the nominal and uncertain parameter values if there are any.

  • Returns the objective value to be minimized.

To see the contents of this function, typeedit sldo_model1_minimize_energy.

Create the custom requirement.

  1. SelectNew>Custom Requirement. A window opens where you specify the custom requirement.

  2. SpecifyMinimizeEnergyas theName.

  3. Specify@sldo_model1_minimize_energyas theFunction.

  4. SelectMinimize the function outputas theType.

ex_cust_sig_req.png

In theSelect Signals and Systems to Boundarea, select thePlantActuatorcheck box to associate the custom requirement with that signal.

ex_cust_sig_signal.png

ClickOK. A new variable appears in theData区域的应用。graphi也更新的窗口cally display the custom signal requirement.

To optimize the model response, clickOptimize.

model1_optimize.png

After a few iterations, the optimization converges to meet both the custom signal and step response requirements.

ex_cust_sig_final.png

Close the model.

setOption(sdotool('sldo_model1'),'NoPromptClose',true) bdclose('sldo_model1')

Related Topics