Code covered by the BSD License  

Highlights from
fminconCSD

from fminconCSD by Yi Cao
A wrap of fmincon using complex step differentiation to calculate gradient

fminconCSD_example.m
a1 = 2; a2 = 1.5;
options = optimset('LargeScale','off','Display','iter');
x = fminconCSD(@(x)myfun0(x,a1),[1;2],[],[],[],[],[],[],@(x)mycon(x,a2),options);

Contact us at files@mathworks.com