x0 = [0.5;0.5;0.5;0.5;0.5]; LB = [0;0;0;0;0]; UB = [1;1;1;1;1]; [x, obj, info, iter, nf, lambda] = sqp (x0, @fungreg, [], [], LB, UB)