How to fix TolX in fmincon?

1 view (last 30 days)
J T
J T on 28 Jun 2012
Holle, I have some problem associated with fmincon. Thank you for helping.
(1). The feedback is "Optimization terminated: no feasible solution found. Magnitude of search direction less than 2*options. TolX but constraints are not satisfied" If I try to adjust the value of TolX by setting optimset, the results can not be proved. So, do you have some experience?
(2). I tried to track the iterative values of design variables, following the instruction of
options=optimset('outputfcn',@outfun,)
and
function stop = outfun(x,optimValues,state,)
the feedback is given as
"At compilation, "history" was determined to be a variable and this
variable is uninitialized. "history" is also a function name and previous versions of MATLAB would have called the function.
However, MATLAB 7 forbids the use of the same name in the same
context as both a function and a variable."
How can I fix the problem to obtain iterative results?
  2 Comments
Walter Roberson
Walter Roberson on 28 Jun 2012
? Which MATLAB version are you using? And could you show us how you are calling fmincon? Is "history" something that occurs in your code, or is it complaining about some Mathworks-provided code?
Sargondjani
Sargondjani on 28 Jun 2012
about the feasibility: there is a recent discussion in the newsgroup on feasibility. check it. if you have an initial poitn that is feasible, than you should get a feasible solution... but i guess there is no (trivial?) solution for your problem

Sign in to comment.

Answers (0)

Categories

Find more on Linear Programming and Mixed-Integer Linear Programming in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!