Genetic algorithm plots penalty instead of Fitness

4 Ansichten (letzte 30 Tage)
alaa zarif
alaa zarif am 7 Okt. 2019
Bearbeitet: Alan Weiss am 10 Okt. 2019
Im using the GA toolbox to solve an unconstrained problem.. however the genetic algorithm is producing the graph of penalty vs generations instead of fitness vs generations.. why do i have this?

Akzeptierte Antwort

Alan Weiss
Alan Weiss am 7 Okt. 2019
Perhaps you have some integer constraints.
If not, please show us your options and ga call.
Alan Weiss
MATLAB mathematical toolbox documentation
  2 Kommentare
alaa zarif
alaa zarif am 10 Okt. 2019
I do have IntCon for my variables, I didnt know they will cause it to plot penalty vs generations!
Can you explain to me how does the matlab penalty vs generation work as i dont understand the figure attached.. the sudden drop in penalty then increases however it hasnt taken the lowest value on graph to be the best ?
Alan Weiss
Alan Weiss am 10 Okt. 2019
Bearbeitet: Alan Weiss am 10 Okt. 2019
I would guess that you set some options improperly, like EliteCount = 0 or some such thing. Or despite your statement to the contrary, you have a nonlinear constraint. For further help, please report all of your options and give your ga call.
Alan Weiss
MATLAB mathematical toolbox documentation

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by