Optimization Options Reference
Optimization Options
下表介绍了优化选项。 使用optimoptions函数或fminbnd,fminsearch,fzero或lsqnonneg的optimset创建选项。
有关可用选项值和默认值的信息,请参阅各个函数参考页。
选项的默认值根据您使用选项作为输入参数调用的优化函数而有所不同。 您可以通过输入optimoptions(@solvername)或等效的optimoptions('solvername')来确定任何优化函数的默认选项值。 例如,
optimoptions(@fmincon)
返回默认“interior-point”fmincon算法的选项列表和默认值。 要找到另一个fmincon算法的默认值,请设置Algorithm选项。 例如,
opts = optimoptions(@fmincon,'Algorithm','sqp')
optimoptions“隐藏”一些选项,这意味着它不显示其值。 这些选项不会出现在此表中。 而是显示在 Hidden Options中。
Optimization Options
Option Name | Description | Used by Functions | Restrictions |
---|---|---|---|
AbsoluteGapTolerance
|
Nonnegative real.
|
intlinprog
|
optimoptions only
|
AbsoluteMaxObjectiveCount
|
Number of F(x) to minimize the worst case absolute values. |
|
|
Algorithm
|
Chooses the algorithm used by the solver. |
fmincon , fminunc , fsolve , linprog , lsqcurvefit , lsqlin , lsqnonlin , quadprog
|
|
BranchRule
|
Rule for choosing the component for branching:
|
intlinprog
|
optimoptions only
|
CheckGradients
|
Compare user-supplied analytic derivatives (gradients or Jacobian, depending on the selected solver) to finite differencing derivatives. |
|
optimoptions only. For optimset , use DerivativeCheck
|
ConstraintTolerance
|
Tolerance on the constraint violation. |
|
optimoptions only. For optimset , use TolCon
|
CutGeneration
|
Level of cut generation (see Cut Generation):
|
intlinprog
|
optimoptions only
|
CutMaxIterations
|
Number of passes through all cut generation methods before entering the branch-and-bound phase, an integer from 1 through 50 . Disable cut generation by setting the CutGeneration option to 'none' .
|
intlinprog
|
optimoptions only
|
Display
|
Level of display.
|
All. See the individual function reference pages for the values that apply. |
|
EqualityGoalCount
|
Specify the number of objectives required for the objective |
|
optimoptions only. For optimset , use GoalsExactAchieve
|
FiniteDifferenceStepSize
|
Scalar or vector step size factor for finite differences. When you set
where
Scalar |
|
optimoptions only. For optimset , use FinDiffRelStep
|
FiniteDifferenceType
|
Finite differences, used to estimate gradients, are either |
|
optimoptions only. For optimset , use FinDiffType
|
FunctionTolerance
|
Termination tolerance on the function value. |
|
optimoptions only. For optimset , use TolFun
|
HessianApproximation
|
Method of Hessian approximation: Ignored when |
|
optimoptions only. For optimset , use Hessian
|
HessianFcn
|
Function handle to a user-supplied Hessian (see Including Hessians). |
fmincon , fminunc
|
optimoptions only. For optimset , use HessFcn
|
HessianMultiplyFcn
|
Handle to a user-supplied Hessian multiply function. Ignored when |
|
optimoptions only. For optimset , use HessMult
|
Heuristics
|
Algorithm for searching for feasible points (see Heuristics for Finding Feasible Solutions):
|
intlinprog
|
optimoptions only
|
HeuristicsMaxNodes
|
Strictly positive integer that bounds the number of nodes intlinprog can explore in its branch-and-bound search for feasible points. See Heuristics for Finding Feasible Solutions.
|
intlinprog
|
optimoptions only
|
HonorBounds
|
The default |
fmincon
|
optimoptions only. For optimset , use AlwaysHonorConstraints
|
IntegerPreprocess
|
Types of integer preprocessing (see Mixed-Integer Program Preprocessing):
|
intlinprog
|
optimoptions only
|
IntegerTolerance
|
Real from 1e-6 through 1e-3 , where the maximum deviation from integer that a component of the solution x can have and still be considered an integer. IntegerTolerance is not a stopping criterion.
|
intlinprog
|
optimoptions only
|
JacobianMultiplyFcn
|
User-defined Jacobian multiply function. Ignored unless |
|
|
LPMaxIterations
|
Strictly positive integer, the maximum number of simplex algorithm iterations per node during the branch-and-bound process. |
intlinprog
|
optimoptions only
|
LPOptimalityTolerance
|
Nonnegative real where reduced costs must exceed LPOptimalityTolerance for a variable to be taken into the basis.
|
intlinprog
|
optimoptions only
|
MaxFunctionEvaluations
|
Maximum number of function evaluations allowed. |
|
optimoptions only. For optimset , use MaxFunEvals
|
MaxIterations
|
Maximum number of iterations allowed. |
All but |
optimoptions only. For optimset , use MaxIter
|
MaxFeasiblePoints
|
Strictly positive integer. intlinprog stops if it finds MaxFeasiblePoints integer feasible points.
|
intlinprog
|
optimoptions only
|
MaxNodes
|
Strictly positive integer that is the maximum number of nodes the solver explores in its branch-and-bound process. |
|
|
MaxTime
|
Maximum amount of time in seconds allowed for the algorithm. |
|
|
NodeSelection
|
Choose the node to explore next.
|
intlinprog
|
optimoptions only
|
ObjectiveCutOff
|
Real greater than -Inf . The default is Inf .
|
intlinprog
|
optimoptions only
|
ObjectiveImprovementThreshold
|
Nonnegative real. intlinprog changes the current feasible solution only when it locates another with an objective function value that is at least ObjectiveImprovementThreshold lower: (fold – fnew)/(1 + fold) > ObjectiveImprovementThreshold.
|
intlinprog
|
optimoptions only
|
ObjectiveLimit
|
If the objective function value goes below |
fmincon , fminunc , quadprog
|
|
OptimalityTolerance
|
Termination tolerance on the first-order optimality. |
|
optimoptions only. For optimset , use TolFun
|
OutputFcn
|
Specify one or more user-defined functions that the optimization function calls at each iteration. See Output Function or intlinprog Output Functions and Plot Functions. |
|
|
PlotFcn
|
Plots various measures of progress while the algorithm executes. Select from predefined plots or write your own.
See Plot Functions or intlinprog Output Functions and Plot Functions. |
|
optimoptions only. For optimset , use PlotFcns
|
RelativeGapTolerance
|
Real from
tolerance = |
intlinprog
|
optimoptions only
|
RootLPAlgorithm
|
Algorithm for solving linear programs:
|
intlinprog
|
optimoptions only
|
RootLPMaxIterations
|
Nonnegative integer that is the maximum number of simplex algorithm iterations to solve the initial linear programming problem. |
intlinprog
|
optimoptions only
|
ScaleProblem
|
For |
fmincon
|
|
Use |
If |
|
optimset only
|
SpecifyConstraintGradient
|
User-defined gradients for the nonlinear constraints. |
|
optimoptions only. For optimset , use GradConstr
|
SpecifyObjectiveGradient
|
User-defined gradients or Jacobians for the objective functions. |
|
optimoptions only. For optimset , use GradObj or Jacobian
|
StepTolerance
|
Termination tolerance on x. |
All functions except |
optimoptions only. For optimset , use TolX
|
SubproblemAlgorithm
|
Determines how the iteration step is calculated. |
fmincon
|
|
TypicalX
|
Array that specifies typical magnitude of array of parameters |
|
|
UseParallel
|
When |
|
Hidden Options
optimoptions
“hides” some options, meaning it does not display their values. To learn how to view these options, and why they are hidden, see View Options.
Function reference pages list these options in italics.
Hidden Optimization Toolbox Options
Hidden Global Optimization Toolbox Options
Hidden Optimization Toolbox Options
This table lists the hidden Optimization Toolbox™ options.
Options that optimoptions
Hides
Option Name | Description | Used by Functions | Restrictions |
---|---|---|---|
Diagnostics |
Display diagnostic information about the function to be minimized or solved. |
All but |
|
DiffMaxChange |
Maximum change in variables for finite differencing. |
|
|
DiffMinChange |
Minimum change in variables for finite differencing. |
|
|
FunValCheck |
Check whether objective function and constraints values are valid. Note
|
|
|
HessPattern |
Sparsity pattern of the Hessian for finite differencing. The size of the matrix is n-by-n, where n is the number of elements in |
|
|
HessUpdate |
Quasi-Newton updating scheme. |
|
|
InitBarrierParam |
Initial barrier value. |
fmincon
|
|
InitDamping |
Initial Levenberg-Marquardt parameter. |
fsolve , lsqcurvefit , lsqnonlin
|
optimoptions only
|
InitTrustRegionRadius |
Initial radius of the trust region. |
fmincon
|
|
JacobPattern |
Sparsity pattern of the Jacobian for finite differencing. The size of the matrix is |
|
|
LPPreprocess |
Type of preprocessing for the solution to the relaxed linear program (see Linear Program Preprocessing):
|
intlinprog
|
optimoptions only
|
MaxPCGIter |
Maximum number of iterations of preconditioned conjugate gradients method allowed. |
|
|
MaxProjCGIter |
A tolerance for the number of projected conjugate gradient iterations; this is an inner iteration, not the number of iterations of the algorithm. |
fmincon
|
|
MaxSQPIter |
Maximum number of iterations of sequential quadratic programming method allowed. |
|
|
MeritFunction |
Use goal attainment/minimax merit function (multiobjective) vs. |
|
|
PrecondBandWidth |
Upper bandwidth of preconditioner for PCG. Setting to |
|
|
Preprocess |
Level of LP preprocessing prior to simplex or dual simplex algorithm iterations. |
|
optimoptions only
|
RelLineSrchBnd |
Relative bound on line search step length. |
|
|
RelLineSrchBndDuration |
Number of iterations for which the bound specified in |
|
|
ScaleProblem |
When using the |
fsolve , lsqcurvefit , lsqnonlin
|
|
TolConSQP |
Constraint violation tolerance for the inner SQP iteration. |
fgoalattain , fmincon , fminimax , fseminf
|
|
TolPCG |
Termination tolerance on the PCG iteration. |
|
|
TolProjCG |
A relative tolerance for projected conjugate gradient algorithm; this is for an inner iteration, not the algorithm iteration. |
fmincon
|
|
TolProjCGAbs |
Absolute tolerance for projected conjugate gradient algorithm; this is for an inner iteration, not the algorithm iteration. |
fmincon
|
Hidden Global Optimization Toolbox Options
For the reasons these options are hidden, see Options that optimoptions Hides (Global Optimization Toolbox).
Options that optimoptions
Hides
Option Name | Used by Functions |
---|---|
Cache |
|
CacheSize |
|
CacheTol |
|
DisplayInterval |
|
FunValCheck |
|
HybridInterval |
|
InitialPenalty |
|
MaxMeshSize |
|
MeshRotate |
|
MigrationDirection |
|
MigrationFraction |
|
MigrationInterval |
|
PenaltyFactor |
|
PlotInterval |
|
StallTest |
|
TolBind |
patternsearch
|
Optimization Options Reference相关推荐
- Matlab线性/非线性规划优化算法(1)
在Matlab中解形如下式的线性规划问题: 其中包括优化对象 f' * x, 不等式约束,等式约束,以及约束变量的上下界. 在Matlab中提供了linprog函数进行线性优化的求解: eg: [x, ...
- MATLAB-fsolve函数帮助文档翻译与补充
fsolve 解非线性方程组 非线性系统解算器 解决指定的问题 F(x)= 0 对于x, F(x)是一个返回向量值的函数. x是一个向量或者一个矩阵;看矩阵参数. 语法: x = fsolve(fun ...
- SAP EWM 性能优化(一)
http://www.cnblogs.com/byfhd/archive/2012/09/28/2706557.html EWM是SAP较新的SCM下的产品,实际磨练比不上SAP ERP系列,仓库系统 ...
- GCC优化选项:一般的文档里不容易找到的-Os
From: http://hi.baidu.com/ah__fu/item/9287dd5227227c908d12ed50 在研究编译驱动的makefile的时候,发现GCC的命令行里面有一个-Os ...
- 【三维深度学习】多视角立体视觉 MVSNet代码解读
MVSNet通过将相机几何参数编码到网络中,实现了端到端的多视角三维重建,并在性能和视觉效果上超越了先前算法,并在eccv2018 oral中发表. 模型主要包含四个主要步骤:图像特征抽取.多视角可微 ...
- 吴恩达机器学习练习2:optimset和fminunc函数
在练习2中使用了到了两个函数:optimset和fminunc. % Set options for fminunc options = optimset('GradObj', 'on', 'MaxI ...
- 【GCC】gcc警告选项汇总--编辑中|gcc编译选项
目录 前言 请求或取消警告选项 GCC编译选项 参考原文:https://blog.csdn.net/qq_17308321/article/details/79979514 前言 警告:不是错误的, ...
- gcc警告选项汇总 转
---------------- 原文链接:https://blog.csdn.net/qq_17308321/article/details/79979514 参考资料:https://gcc.gn ...
- android有用的命令
转载请指明出处:草帽的后花园 文件1:下载 Android Tools详解 aapt aapt即Android Asset Packaging Tool , 在SDK的platform-tools目录 ...
最新文章
- Git 最全命令总结都在这里了
- 复旦大学邱锡鹏教授等「Transformers全面综述」论文
- Android:Handler的消息机制
- VS2010没有Intellisense(智能感知)的解决办法
- cad抛物线曲线lisp_曲线的转弯半径和曲率 - AutoLISP/Visual LISP 编程技术 - CAD论坛 - 明经CAD社区 - Powered by Discuz!...
- oracle11g imp性能,怎么最快地把本机的oracle11g数据导入xe
- 配置普通用户可以运行saltstack的模块
- 基于OpenGL的三种直线生成算法
- link 和 @import 的区别
- Sliverlight MD5
- 批量画同心不同半径圆lisp_cad绘制同心圆lisp二次开发源代码
- 微信小程序-通知滚动小提示
- Dentry negativity/negative dentry
- cut out数据增强_ChIP-Seq数据分析(PE型)
- 斯诺登给普通人开发了个「反监控」的 App
- Java成员变量初始化顺序
- 百家号怎么发送链接,发送自己的链接变成文字等解答
- Untiy学习 简单的脚本方法
- 开发JAVA第一步,教你选好JSP虚拟空间
- 年底买基金的六大建议!
热门文章
- 数据挖掘(9-22):数据离散程度+数据清理+三大相关系数+数据库索引(数据库面试常问)+P值含义及理解
- Excel-函数-拆分和组合函数
- 微店和有赞的区别_微店和有赞那个好_陕南赤子_新浪博客
- Python bytes 反斜杠转义问题解决方法
- STM32 C语言编写环形存储区
- 互联网、云大数据相关书籍推荐
- mysql如何直接打开表_Navicat for MySQL:如何打开 MySQL 表,需要技巧
- 我们奔三了 说好了,只能看,不许哭啊。 谨此献给“1980~1989”出生的人
- Netty基础,Netty实现群聊系统
- 使用Bigemap计算挖填土石方量