Code covered by the BSD License  

Highlights from
INTSOLVER: An interval based solver for Global Optimization

from INTSOLVER: An interval based solver for Global Optimization by Tiago Montanher
Interval based functions to solve small global optimization problems with guaranteed bounds.

evrosenbrock(x)
function y = evrosenbrock(x)

% Name: Rosenbrock
% Reference: 
% Testing Unconstrained Optimization. Moré J. J., Garbow B. S., Hillstrom
% K. E., 1981. ACM Trans. Math. Software, 136 - 140.
% Variables: n
% Initial Point/ Initial Interval: [(-1.2,...,-1.2)] /([-5,10],...,[-5,10])
% Reported Solution: (1,1,....,1)
% Minima: 0
% Matlab Code by A. Hedar (Nov. 23, 2005).


n = length(x);
sum = 0;

for j = 1:n-1;
    sum = sum + 100 * (x(j)^2-x(j+1))^2 + (x(j)-1)^2;
end

y = sum;

Contact us at files@mathworks.com