findopOptions
Options for finding operating points from specifications
Description
returns the default
operating point search options. You can modify these options using dot
notation.options = findopOptions
returns an option set with additional options specified by one or more name-value
arguments. Use this option set to specify options for the
options = findopOptions(Name=Value)findop command.
Examples
Create an option set for operating point search that sets the optimizer type to gradient descent and suppresses the display output of findop.
option = findopOptions('OptimizerType','graddescent','DisplayReport','off');
Alternatively, use dot notation to set the values of options.
options = findopOptions; options.OptimizerType = 'graddescent'; options.DisplayReport = 'off';
Name-Value Arguments
Specify optional pairs of arguments as
Name1=Value1,...,NameN=ValueN, where Name is
the argument name and Value is the corresponding value.
Name-value arguments must appear after other arguments, but the order of the
pairs does not matter.
Before R2021a, use commas to separate each name and value, and enclose
Name in quotes.
Example: DisplayReport="off" suppresses the display of the operating point
search report to the Command Window.
Optimizer type used by the optimization algorithm, specified as one of these values:
"graddescent-elim"— Enforce an equality constraint to force the time derivatives of states to be zero (dx/dt = 0,x(k+1) = x(k)) and output signals to be equal to their specified known values. The optimizer fixes the states,x, and inputs,u, that are marked asKnownin an operating point specification, and optimizes the remaining variables."graddescent"— Enforce an equality constraint to force the time derivatives of states to be zero (dx/dt = 0,x(k+1) = x(k)) and the output signals to be equal to their specified known values. The optimizer also minimizes the error between the states,x, and inputs,u, and their respective known values from an operating point specification. If there are not any inputs or states marked asKnown,findopattempts to minimize the deviation between the initial guesses forxandu, and their trimmed values."graddescent-proj"— In addition to"graddescent", enforce consistency of model initial conditions at each function evaluation. To specify whether constraints are hard or soft, use theConstraintTypeoption. This optimization method does not support analytical Jacobians."lsqnonlin"— Fix the states,x, and inputs,u, marked asKnownin an operating point specification, and optimize the remaining variables. The algorithm tries to minimize both the error in the time derivatives of the states (dx/dt = 0,x(k+1) = x(k)) and the error between the outputs and their specified known values."lsqnonlin-proj"— In addition to"lsqnonlin", enforce consistency of model initial conditions at each function evaluation. This optimization method does not support analytical Jacobians."simplex"— Use the same cost function aslsqnonlinwith the direct search optimization routine found infminsearch.
For more information about these optimization algorithms, see fmincon (Optimization Toolbox), lsqnonlin (Optimization Toolbox), and fminsearch.
Dependencies
This option is not supported for finding periodic operating points.
Options for the optimization algorithm, specified as a structure created using the optimset (Optimization Toolbox) function.
Dependencies
This option is not supported for finding periodic operating points.
Flag indicating whether to display the operating point summary report, specified as tone of these values:
"on"— Display the operating point summary report in the MATLAB® command window when runningfindop."off"— Suppress display of the summary report."iter"— Display an iterative update of the optimization progress.
Flag indicating whether to recompile the model when varying parameter values for trimming, specified as one of these values:
true— Do not recompile the model when all varying parameters are tunable. If any varying parameters are not tunable, recompile the model for each parameter grid point, and issue a warning message.false— Recompile the model for each parameter grid point. Use this option when you vary the values of nontunable parameters.
Dependencies
This option is not supported for finding periodic operating points.
Constraint types for "graddescent-proj" optimizer
algorithm, specified as a structure with these fields:
dx— Type for constraints on state derivativesx— Type for constraints on state valuesy— Type for constraints on output values
Specify each constraint as one of these values:
"hard"— Enforce the constraints to be zero."soft"— Minimize the constraints.
All constraint types are "hard" by default.
Dependencies
This option is not supported for finding periodic operating points.
Output Arguments
Operating point search options, returned as a
findopOptions object.
Version History
Introduced in R2013bThe 'graddescent_elim' value of the
Optimizer property of a findopOptions
object is now 'graddescent-elim'.
To update your code, change the optimizer value from
graddescent_elim to
graddescent-elim. The following table shows the typical
usage of this property value and how to update your code.
| If your code has this form: | Use this code instead: |
|---|---|
opt = findopOptions('Optimizer',... 'graddescent_elim'); |
opt = findopOptions('Optimizer',... 'graddescent-elim') |
opt = findopOptions;
opt.Optimizer = 'graddescent_elim'; |
opt = findopOptions;
opt.Optimizer = 'graddescent-elim'; |
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)