which linprog
linprog(1,-1,1)
O = optimset('fmincon');O.Algorithm
Interesting,
The output is:
linprog(1,-1,1)
O = optimset('fmincon');O.Algorithm
>> which optimget
C:\Program Files\MATLAB\R2012a\toolbox\matlab\optimfun\optimget.m
\toolbox\matlab\optimfun directory to your path and see if it works then.
C:\MATLAB_R2012a\toolbox\matlab\optimfun\
C:\MATLAB_R2012a\toolbox\optim\optim\linprog.m
Optimization terminated.
ans =
-1.0000
Warning: Warning: feval on script names will not work, or may work differently,
in a future version of MATLAB. To make your code insensitive to any change
and to suppress this warning message:
- Either change the script to a function.
- Or use eval instead of feval.
The script file in question is fmincon.
> In optimset at 135
Error using optimset (line 137)
which optimset -all
which fmincon -all
fmincon('defaults')
opts=sdpsettings('debug','flag','fmincon.Algorithm','active-set');