Is it possible to store the evaluation of the fitness function using generatic algorithm

1 view (last 30 days)
I have defined a fitness function and I want to pass it to MATLAB Genetic Algorithm solver to find the best combination of parameters. Is it possible to store the fitness values and paramenters for each evaluation of the fitness function within the execution of the genetic algorithm?
  1 Comment
Geoff Hayes
Geoff Hayes on 1 Feb 2022
@Jaime Trivino - according to ga function output params, the output, is a structure that contains output from each generation and other information about the performance of the algorithm. However, other documentation on the same page, at output, says something slightly different. I don't have the Optimization Toolbox so can't comment for sure what is actually returned...though at one time I did think that the output for all generations could be captured.

Sign in to comment.

Answers (0)

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!