Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
fmincon output

Subject: fmincon output

From: John Smith

Date: 9 Aug, 2011 22:34:28

Message: 1 of 2

Why does fmincon return the initial guess if the constraints are not compatible? It is extremely frustrating because if one wants to use fmincon over a loop, I cannot think of a way to distinguish between solutions found that fit the constraints and the "solution" given which is just the initial guess. If I could find a way to distinguish then that would be great!

Subject: fmincon output

From: Matt J

Date: 10 Aug, 2011 00:02:10

Message: 2 of 2

"John Smith" <johnps@gmail.com> wrote in message <j1sclk$8ck$1@newscl01ah.mathworks.com>...
> Why does fmincon return the initial guess if the constraints are not compatible? It is extremely frustrating because if one wants to use fmincon over a loop, I cannot think of a way to distinguish between solutions found that fit the constraints and the "solution" given which is just the initial guess. If I could find a way to distinguish then that would be great!
===============

Use the exitflag output to determine why FMINCON stopped

[x,fval,exitflag]=fmincon(...)

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us