| Simulink® Response Optimization™ | ![]() |
p=findpar(proj,'param')
p=findpar(proj,'param') returns a tuned parameters object for the parameter with the name param within the response optimization project, proj. The tuned parameters object defines specifications for each tuned parameter that the response optimization algorithm uses, such as initial guesses, lower bounds, etc.
The properties of each tuned parameter object are
Name | A string giving the parameter's name. |
Value | The current value of the parameter. This changes during the optimization. |
InitialGuess | The initial guess for the parameter value for the optimization. |
Minimum | The minimum value this parameter can take. By default, it is set to -Inf. |
Maximum | The maximum value this parameter can take. By default, it is set to Inf. |
TypicalValue | A value that the tuned parameter is scaled by during the optimization. |
ReferencedBy | The block, or blocks, in which the parameter appears. |
Description | An optional string giving a description of the parameter. |
Tuned | Set to 1 or 0 to indicate if this parameter is to be tuned or not. |
Edit these properties to specify additional information about your parameters.
Create a response optimization project for srotut1.
proj=newsro('srotut1','Kint');Find the tuned parameters object for the parameter Kint.
p=findpar(proj,'Kint')
This returns
Name: 'Kint'
Value: 0
InitialGuess: 0
Minimum: -Inf
Maximum: Inf
TypicalValue: 0
ReferencedBy: {0x1 cell}
Description: ''
Tuned: 1
Tuned parameter.
Change the initial guess to 0.5, and the minimum value to 0 with the set function.
set(p,'InitialGuess',0.5,'Minimum',0)
![]() | finddepend | getsro | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |