can we plot a graph in genetic algorithm solver

can we plot a graph showing fitness value vs the variable in genetic algorithm. can anyone show me the syntax for this plot

回答 (1 件)

Alan Weiss
Alan Weiss 2013 年 10 月 21 日

0 投票

I am not sure what you are asking. Do you want to see the fitness as a function of the iteration number in the genetic algorithm solution? There is a plot function that does that. You can even create a custom plot function to plot anything you like as the algorithm progresses.
But if you are asking how can you plot your fitness function as a function of all the problem variables, that is a general plotting question about MATLAB.
Alan Weiss
MATLAB mathematical toolbox documentation

カテゴリ

質問済み:

2013 年 10 月 21 日

回答済み:

2013 年 10 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by