Optimoptions matlab error. The objecive function f is evaluated for minimal output.