12.07.2015 Views

What Is Optimization Toolbox?

What Is Optimization Toolbox?

What Is Optimization Toolbox?

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Examples That Use Standard AlgorithmsThis section presents the following examples:• “Simulink Example Using lsqnonlin” on page 2-27• “Simulink Example Using fminimax” on page 2-33• “Signal Processing Example” on page 2-36Simulink Example Using lsqnonlinSuppose that you want to optimize the control parameters in the Simulinkmodel optsim.mdl. (This model can be found in <strong>Optimization</strong> <strong>Toolbox</strong> optimdirectory. Note that Simulink must be installed on your system to load thismodel.) The model includes a nonlinear process plant modeled as a Simulinkblock diagram shown in Plant with Actuator Saturation on page 2-27.Plant with Actuator SaturationThe plant is an under-damped third-order model with actuator limits. Theactuator limits are a saturation limit and a slew rate limit. The actuatorsaturationlimitcutsoffinputvalues greater than 2 units or less than -2units. The slew rate limit of the actuator is 0.8 units/sec. The closed-loopresponse of the system to a step input is shown in Closed-Loop Response onpage 2-28. You can see this response by opening the model (type optsim atthe command line or click the model name), and selecting Start from theSimulation menu. The response plots to the scope.2-27

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!