Question: what is fmincon in matlab?
Answer: Function to minimize, specified as a function handle or function name. fun is a function that accepts a vector or array x and returns a real scalar f , the objective function evaluated at x . Specify fun as a function handle for a file: x = fmincon(@myfun,x0,A,b) where myfun is a MATLAB® function such as.