findopOptions
Option set for findop
Description
opt = findopOptions( creates
a default option set for computing the operating point of a specified
nonlinear ARX or Hammerstein-Wiener model. Use dot notation to modify
this option set for your specific application. Options that you do
not modify retain their default values.model)
creates
an option set with options specified by one or more opt = findopOptions(model,Name,Value)Name,Value pair
arguments.
Examples
Create a default option set for findop using an idnlarx model.
opt = findopOptions(idnlarx);
Create a default option set for findop using an idnlhw model.
opt = findopOptions(idnlhw);
Use dot notation to specify a subspace Gauss-Newton least squares search with a maximum of 25 iterations.
opt.SearchMethod = 'gn';
opt.SearchOptions.MaxIterations = 25;Create an option set for findop using an idnlarx model. Specify a steepest descent least squares search with default search options.
opt = findopOptions(idnlarx,'SearchMethod','grad');
Input Arguments
Estimated nonlinear model, specified as one of the following:
idnlarxmodelidnlhwmodel
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: 'SearchMethod','grad' specifies a
steepest descent least squares search method
Numerical search method used for iterative parameter estimation, specified as the one of the values in the following table.
SearchMethod | Description |
|---|---|
'auto' | Automatic method selection A combination of the
line search algorithms, |
'gn' | Subspace Gauss-Newton least-squares search Singular
values of the Jacobian matrix less than
|
'gna' | Adaptive subspace Gauss-Newton search Eigenvalues
less than |
'lm' | Levenberg-Marquardt least squares search Each
parameter value is This algorithm requires Optimization Toolbox™ software. |
'grad' | Steepest descent least-squares search |
'lsqnonlin' | Trust-region-reflective algorithm of This algorithm requires Optimization Toolbox software. |
'patternsearch' | Solver for nonlinearities without well-defined gradients You can use the |
'fmincon' | Constrained nonlinear solvers You can use the
sequential quadratic programming (SQP) and trust-region-reflective
algorithms of the
|
Option set for the search algorithm, specified as the comma-separated
pair consisting of 'SearchOptions' and a search
option set with fields that depend on the value of
SearchMethod.
SearchOptions Structure When SearchMethod Is Specified
as 'gn', 'gna', 'lm',
'grad', or 'auto'
| Field Name | Description | Default | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Tolerance | Minimum percentage difference between the current value
of the loss function and its expected improvement after the next iteration,
specified as a positive scalar. When the percentage of expected improvement
is less than | 0.01 | ||||||||||||||||||||||||||||||
MaxIterations | Maximum number of iterations during loss-function minimization, specified as a positive
integer. The iterations stop when Setting
Use
| 20 | ||||||||||||||||||||||||||||||
Advanced | Advanced search settings, specified as a structure with the following fields.
| |||||||||||||||||||||||||||||||
SearchOptions Structure When SearchMethod Is Specified
as 'lsqnonlin'
| Field Name | Description | Default |
|---|---|---|
FunctionTolerance | Termination tolerance on the loss function that the software minimizes to determine the estimated parameter values, specified as a positive scalar. The
value of | 1e-5 |
StepTolerance | Termination tolerance on the estimated parameter values, specified as a positive scalar. The value of | 1e-6 |
MaxIterations | Maximum number of iterations during loss-function minimization, specified as a positive
integer. The iterations stop when The value of
| 20 |
SearchOptions Structure When
SearchMethod Is Specified as
'patternsearch'
| Field Name | Description | Default |
|---|---|---|
Algorithm |
For algorithm details, see How Pattern Search Polling Works (Global Optimization Toolbox) and Nonuniform Pattern Search (NUPS) Algorithm (Global Optimization Toolbox). For examples of algorithm effects, see Explore patternsearch Algorithms (Global Optimization Toolbox) and Explore patternsearch Algorithms in Optimize Live Editor Task (Global Optimization Toolbox). | 'nups' |
FunctionTolerance | Termination tolerance on the loss function that the software minimizes to determine the estimated parameter values, specified as a positive scalar. | 1e-6 |
StepTolerance | Termination tolerance on the estimated parameter values, specified as a positive scalar. | 1e-6 |
MaxIterations | Maximum number of iterations during loss
function minimization, specified as a positive
integer. The iterations stop when
| '100*numberOfVariables', where
numberOfVariables is the number of problem
variables |
UseParallel | Option to enable or disable parallel processing for improved performance, specified as a logical scalar. | 0 |
SearchOptions Structure When SearchMethod Is Specified
as 'fmincon'
| Field Name | Description | Default |
|---|---|---|
Algorithm |
For more information about the algorithms, see Constrained Nonlinear Optimization Algorithms (Optimization Toolbox) and Choosing the Algorithm (Optimization Toolbox). | 'sqp' |
FunctionTolerance | Termination tolerance on the loss function that the software minimizes to determine the estimated parameter values, specified as a positive scalar. | 1e-6 |
StepTolerance | Termination tolerance on the estimated parameter values, specified as a positive scalar. | 1e-6 |
MaxIterations | Maximum number of iterations during loss function minimization, specified as a positive
integer. The iterations stop when | 100 |
To specify field values in SearchOptions, create a
default findopOptions set and modify the fields using
dot notation. Any fields that you do not modify retain their default
values.
opt = findopOptions; opt.SearchOptions.MaxIterations = 15; opt.SearchOptions.Advanced.RelImprovement = 0.5;
Output Arguments
Option set for findop command, returned
as a findopOptions object.
Version History
Introduced in R2015aYou can now set the SearchMethod property to
'patternsearch' to estimate a system that has a nonlinearity without a
well-defined gradient. You can change the default option set for this search algorithm using the
SearchOptions property. This method requires Global Optimization Toolbox software.
The names of some estimation and analysis options were changed in R2018a. Prior names still work.
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.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- 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)