Code covered by the BSD License  

Highlights from
OpenOpt

image thumbnail

OpenOpt

by

 

25 Nov 2006 (Updated )

nonSmoothSolve (similar to fsolve), non-smooth & noisy local + some global solvers; works in Octave

stopcase(arg)
function r = stopcase(arg)

if isstruct(arg); istop = arg.istop;
else istop = arg; end

if istop>0
    r = 1;
elseif ismember(istop, [-7 -8 -9 -10])
    r = 0;
else
    r = -1;
end

Contact us