Fmincon fobj is increasing. All the iteration are feasible.

조회 수: 9 (최근 30일)
Luigi Emanuel di Grazia
Luigi Emanuel di Grazia 2020년 11월 9일
댓글: Luigi Emanuel di Grazia 2020년 12월 17일
Hi to everyone,
I'm trying to solve a non linear opt problem with fmincon.
After some iteration the optimizer keeps going up in terms of fobj value. All the constraints are satisfied.
How is this possible?
Also, I have 2009 variables to optimize, and severals non linear constraints. Is there a different solver to use in order to speed up the convergence? Both
@fobj and @nlcon are at their minimun in terms of time.
Thanks in advance

답변 (1개)

Pranav Verma
Pranav Verma 2020년 12월 8일
Hi Luigi,
From your question I understand that the objective function is not converging. I would suggest you to check if you have formulated your problem in the standard format as expected by fmincon.
If your objective function is sum of least squares, I would suggest you to use lsqnonlin instead of fmincon.
Also please refer to the below discussions threads on the similar lines:
You can try to change the algorithm in the fmincon. To choose the algorithm, refer to this link.
In case you want to opt for other solvers, refer to this link which mentions all the solvers which expect non linear constraints.
Thanks
  댓글 수: 1
Luigi Emanuel di Grazia
Luigi Emanuel di Grazia 2020년 12월 17일
Thanks for your help,
The problem is well formulated.
Yes I'm using a sum of least squares as fobj, I'll try as you suggested.
Thanks also for all the previous discussions you linked.

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

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by