[nextx, mEI, exitflag] = ga(opt.crit, 4, , , , , [0.6 0.6 0.6 0.6], [6 6 6 6]);
I was running GA with only box constraint on the design variables. But I got the following error message:
Optimization terminated: average change in the fitness value less than options.FunctionTolerance.
Linear constraints are not satisfied within constraint tolerance.
For problems without integer constraints, the genetic algorithm solver handles linear constraints and bounds differently from nonlinear constraints. All the linear constraints and bounds are satisfied throughout the optimization.
Apparently, the bounds are not satisfied.