newsro - Create default Simulink Response Optimization project

Syntax

proj=newsro('modelname',params)

Description

proj=newsro('modelname',params) creates a new response optimization project, proj, for the Simulink model with name modelname. The tuned parameters are specified by the cell array of strings, parameters. The specified model should contain at least one block from Simulink Response Optimization library. Type srolib to open the library. Use the project with the optimize function to optimize response signals in the model by tuning specified parameters.

Example

Create a project, proj, for the model pidtune_demo with the tuned parameters Kp, Ki, and Kd.

proj = newsro('pidtune_demo',{'Kp' 'Ki' 'Kd'})

This returns

            Name: 'pidtune_demo'
      Parameters: [3x1 ResponseOptimizer.Parameter]
    OptimOptions: [1x1 ResponseOptimizer.OptimOptions]
           Tests: [1x1 ResponseOptimizer.SimTest]
           Model: 'pidtune_demo'

Simulink Response Optimization Project.

Use the findpar and findconstr functions to specify signal constraints and tuned parameters.

See Also

findconstr, findpar, getsro, optimize

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS