MATLAB Answers

GA cannot satisfy box constraint

9 views (last 30 days)
Kai Liu
Kai Liu on 20 Oct 2017
[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.

  1 Comment

Arvind Narayanan
Arvind Narayanan on 9 Nov 2017
Did you try reducing the constraint tolerance and re-run the optimization?

Sign in to comment.

Answers (0)

Sign in to answer this question.