Defining a stopping criterion for fmincon

조회 수: 8 (최근 30일)
Matthew Hunt
Matthew Hunt 2020년 3월 4일
답변: Sai Bhargav Avula 2020년 3월 26일
I am looking at an optimisation problem with the following objective function:
Here, is some data and and is a function which I want to find the values of X for which I is a minimum. Now I thought I would have to set the following:
options = optimset('TolFun',1e-3);
problem = createOptimProblem('fmincon','x0',X_old,'objective',fun,'lb',LB,'ub',UB,'options',options);
Is this the right thing to do?

채택된 답변

Sai Bhargav Avula
Sai Bhargav Avula 2020년 3월 26일
Hi,
Yes, you can use optimset. You can directly use fmincon istead of createOptimProblem(but both work the same).
Hope this helps!

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with Optimization Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by