Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Problem with Genetic Algorithm

Asked by MHz on 29 Mar 2013

I use Genetic Algorithm for optimization of 6 parameters and they limited between 0-100 with Lower and Upper bounds in constrains but in running time it's also setting a negetive number(out of that range)!Why it's occure?

0 Comments

MHz

Products

No products are associated with this question.

1 Answer

Answer by Alan Weiss on 29 Mar 2013
Accepted answer

It is possible that you aren't setting bounds on all components. See the documentation of bounds.

For example, your lower bounds should be zeros(6,1), and your upper bounds should be 100*ones(6,1).

Alan Weiss

MATLAB mathematical toolbox documentation

0 Comments

Alan Weiss

Contact us