MATLAB: Fminunc for upper and lower bound variable definition

MATLABoptimization

Isn't it possible to give upper and lower bound for the variables in the objective function while using fminunc ?
Thank you.

Best Answer

No, fminunc() is for unconstrained optimization. If you want to do constrained optimization, then use fmincon().