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

Hilbert(x)
function r = Hilbert(x)
n = length(x);
% n=101;
x = x(:);


persistent A b
if isempty(b) || length(b) ~= n
    A = hilb(n);
    b = sum(A);
end
    
r = 0.5 * (x' * A * x) - b * x;

Contact us