Code covered by the BSD License  

Highlights from
FMINLBFGS: Fast Limited Memory Optimizer

from FMINLBFGS: Fast Limited Memory Optimizer by Dirk-Jan Kroon
Quasi newton limited memory BFGS and Steepest decent optimizer for large amount of unknowns

myfun(x)
% where myfun is a MATLAB function such as:
function [f,g] = myfun(x)
f = sum(sin(x) + 3);
if ( nargout > 1 ), g = cos(x); end

Contact us at files@mathworks.com