how to change the step tolerance or constraint tolerance in fmincon?

조회 수: 82 (최근 30일)
I am working with fmincon and my work is to minimize the cost for t= 24 when i run my code it work for t=1 to t=17 but after that it show me the following error:
"No feasible solution found.
fmincon stopped because the size of the current search direction is less than
twice the default value of the step size tolerance but constraints are not
satisfied to within the default value of the constraint tolerance. "
how i resolve this problem please help me.....
Thank You!!!!

채택된 답변

Sai Bhargav Avula
Sai Bhargav Avula 2020년 5월 17일
편집: Sai Bhargav Avula 2020년 5월 17일
Hi,
The answer to why this occurs is explained in the following link 3rd part
You can use the optimoptions function to change the tolerance values like
options = optimset('fmincon','StepTolerance',1e-10);
fmincon(....., options);
Hope this helps!
  댓글 수: 3
Sai Bhargav Avula
Sai Bhargav Avula 2020년 5월 17일
I have updated the answers for better understanding. Kindly check that

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

제품


릴리스

R2011a

Community Treasure Hunt

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

Start Hunting!

Translated by