On 12/26/2012 4:27 PM, email@example.com wrote: > I have a problem with ten variables. > I have lower and upper boundaries for each variable. During the optimization process (e.g 2nd iteration), the fmincon uses input variables violating the boundaries. This behavior leads an error in my function, because it loses its consistency. > > Why does fmincon violate the imposed boundaries, lb and ub ?