최적화 옵션 보기
optimoptions는 일부 최적화 옵션을 “숨깁니다”. 즉, 해당 값을 표시하지 않습니다. 예를 들어, DiffMinChange 옵션을 숨깁니다.
options = optimoptions('fsolve','DiffMinChange',1e-3)
options =
fsolve options:
Options used by current Algorithm ('trust-region-dogleg'):
(Other available algorithms: 'levenberg-marquardt', 'trust-region')
Set properties:
No options set.
Default properties:
Algorithm: 'trust-region-dogleg'
CheckGradients: 0
Display: 'final'
FiniteDifferenceStepSize: 'sqrt(eps)'
FiniteDifferenceType: 'forward'
FunctionTolerance: 1.0000e-06
MaxFunctionEvaluations: '100*numberOfVariables'
MaxIterations: 400
OptimalityTolerance: 1.0000e-06
OutputFcn: []
PlotFcn: []
SpecifyObjectiveGradient: 0
StepTolerance: 1.0000e-06
TypicalX: 'ones(numberOfVariables,1)'
UseParallel: 0
Show options not used by current Algorithm ('trust-region-dogleg')점 표기법을 사용하여 “숨겨진” 옵션을 포함하여 모든 옵션의 값을 볼 수 있습니다. 예를 들면 다음을 입력합니다.
options.DiffMinChange
ans = 1.0000e-03
솔버 도움말 페이지에서 “숨겨진” 옵션은 기울임꼴로 나열되어 있습니다.
일부 옵션이 “숨겨진” 이유에는 두 가지가 있습니다.
더 좋은 방법이 있기 때문입니다. 예를 들어,
FiniteDifferenceStepSize옵션은DiffMinChange및DiffMaxChange옵션을 모두 대체합니다. 따라서,DiffMinChange와DiffMaxChange는 모두 “숨겨져” 있습니다.이들 옵션이 거의 사용되지 않거나, 적절하게 설정하기 어렵기 때문입니다. 예를 들어,
fmincon의MaxSQPIter옵션은 잘 알려져 있지 않아 선택하기 어려우므로 “숨겨져” 있습니다.숨겨진 옵션의 목록은 숨겨진 옵션 항목을 참조하십시오.