新旧のオプション名
R2016a では、多くのオプション名が変更されました。optimset には、レガシ オプション名のみを使用できます。optimoptions には、レガシと現在の両方の名前を使用できます。ただし、optimoptions でレガシ名と値のペアを使ってオプションを設定すると、現在の等価な値が表示されます。たとえば、レガシ オプション TolX は現在のオプション StepTolerance と等価です。
options = optimoptions("fsolve",TolX=1e-4)options =
fsolve options:
Options used by current Algorithm ('trust-region-dogleg'):
(Other available algorithms: 'levenberg-marquardt', 'trust-region')
Set properties:
StepTolerance: 1.0000e-04
Default properties:
Algorithm: 'trust-region-dogleg'
Display: 'final'
FiniteDifferenceStepSize: 'sqrt(eps)'
FiniteDifferenceType: 'forward'
FunctionTolerance: 1.0000e-06
MaxFunctionEvaluations: '100*numberOfVariables'
MaxIterations: 400
OptimalityTolerance: 1.0000e-06
OutputFcn: []
PlotFcn: []
SpecifyObjectiveGradient: 0
TypicalX: 'ones(numberOfVariables,1)'
UseParallel: 0
Show options not used by current Algorithm ('trust-region-dogleg')次の表は、同じ情報を示しています。1 つ目の表にはレガシ オプション名のアルファベット順に、2 つ目の表には現在のオプション名のアルファベット順にオプションが列挙されています。各表には、変更された名前または値が異なる名前のみが含まれ、値はレガシと現在で異なる場合のみ表示されます。Global Optimization Toolbox のソルバーの変更については、R2016aのオプション変更 (Global Optimization Toolbox)を参照してください。
オプション名 (レガシの順序)
| レガシ名 | 現在の名前 | レガシ値 | 現在の値 |
|---|---|---|---|
AlwaysHonorConstraints | HonorBounds | "bounds", "none" | true, false |
FinDiffRelStep | FiniteDifferenceStepSize | ||
FinDiffType | FiniteDifferenceType | ||
GoalsExactAchieve | EqualityGoalCount | ||
GradConstr | SpecifyConstraintGradient | "on", "off" | true, false |
GradObj | SpecifyObjectiveGradient | "on", "off" | true, false |
Hessian | HessianApproximation | "user-supplied", "bfgs", "lbfgs", "fin-diff-grads", "on", "off" |
|
HessFcn | HessianFcn | ||
HessMult | HessianMultiplyFcn | ||
HessUpdate (fminunc 用に R2022a で変更) | HessianApproximation | "bfgs", "lbfgs", {"lbfgs",Positive Integer}, "dfp", "steepdesc" | "bfgs", "lbfgs", {"lbfgs",Positive Integer} |
Jacobian | SpecifyObjectiveGradient | ||
JacobMult | JacobianMultiplyFcn | ||
MaxFunEvals | MaxFunctionEvaluations | ||
MaxIter | MaxIterations | ||
MinAbsMax | AbsoluteMaxObjectiveCount | ||
PlotFcns | PlotFcn | ||
ScaleProblem | ScaleProblem | "obj-and-constr", "none" | true, false |
SubproblemAlgorithm | SubproblemAlgorithm | "cg", "ldl-factorization" | "cg", "factorization" |
TolCon | ConstraintTolerance | ||
TolFun (使用方法 1) | OptimalityTolerance | ||
TolFun (使用方法 2) | FunctionTolerance | ||
TolGapAbs | AbsoluteGapTolerance | ||
TolGapRel | RelativeGapTolerance | ||
TolX | StepTolerance |
オプション名 (現在の順序)
| 現在の名前 | レガシ名 | 現在の値 | レガシ値 |
|---|---|---|---|
AbsoluteGapTolerance | TolGapAbs | ||
AbsoluteMaxObjectiveCount | MinAbsMax | ||
ConstraintTolerance | TolCon | ||
EqualityGoalCount | GoalsExactAchieve | ||
FiniteDifferenceStepSize | FinDiffRelStep | ||
FiniteDifferenceType | FinDiffType | ||
FunctionTolerance | TolFun (使用方法 2) | ||
HessianApproximation (fmincon 用) | Hessian |
| "user-supplied", "bfgs", "lbfgs", "fin-diff-grads", "on", "off" |
HessianApproximation (fminunc 用)(fminunc 用に R2022a で変更) | HessUpdate |
| "bfgs", "lbfgs", {"lbfgs",Positive Integer}, "dfp", "steepdesc" |
HessianFcn | HessFcn | ||
HessianMultiplyFcn | HessMult | ||
HonorBounds | AlwaysHonorConstraints | true, false | "bounds", "none" |
JacobianMultiplyFcn | JacobMult | ||
MaxFunctionEvaluations | MaxFunEvals | ||
MaxIterations | MaxIter | ||
OptimalityTolerance | TolFun (使用方法 1) | ||
PlotFcn | PlotFcns | ||
RelativeGapTolerance | TolGapRel | ||
ScaleProblem | ScaleProblem | true, false | "obj-and-constr", "none" |
SpecifyConstraintGradient | GradConstr | true, false | "on", "off" |
SpecifyObjectiveGradient | GradObj または Jacobian | true, false | "on", "off" |
StepTolerance | TolX | ||
SubproblemAlgorithm | SubproblemAlgorithm | "cg", "factorization" | "cg", "ldl-factorization" |