Quantcast
Channel: MATLAB Central Newsreader Recent Posts
Viewing all articles
Browse latest Browse all 19628

Re: fmincon function error

$
0
0
Unfortunately I have an earlier version without classifyBoundsOnVars in fmincon, but I'll do my best:
I am a little puzzled since
nLinCons
evaluates a variable T but that variable is not among the input parameters, so where does it come from?
My guess is that your nonlinear constraining function is messed up.

Otherwise you may want to check the values of u, l and sizes.nVar being passed at
xIndices = classifyBoundsOnVars(l,u,sizes.nVar,false);
inside fmincon, since this is were the problem arises, and see if they match what you expect. For instance try placing a breakpoint at that line and check the values of u,l, etc

Viewing all articles
Browse latest Browse all 19628

Trending Articles