GEATbx: Main page  Tutorial  Algorithms  M-functions  Parameter/Options  Example functions  www.geatbx.com

10 Result and run time options

Run.BestObjectiveValue

This option contains the best objective value found during optimization. If the objective function returns multiple objective values per individual (multi-objective optimization), this option contains a vector.

• Default value: none (Inf)
• Type: scalar or vector in [-Inf, Inf]
`BestResult = GeaOpt.Run.BestObjectiveValue;`
• This option can be used to get the number of individuals calculated with the objective function during an optimization run. This is a good measure for the expense of an optimization.
• Option number in previous versions: 8 (2.x and 1.x)

Run.CountObjFun

This is an internal option used to save the number of objective function evaluations (every calculated/evaluated individual counts one).

• Default value: none (0)
• Type: integer in [0, Inf]
• Example - get the number of objective function calls:
`ExpenseofRun = GeaOpt.Run.CountObjFun;`
• This option can be used to get the number of individuals evaluated/calculated with the objective function during an optimization run. This is a good measure for the expense of an optimization.
• Option number in previous versions: 10 (2.x and 1.x)

Run.Generation

This is an internal option used to save the current generation number.

• Default value: none (1)
• Type: integer in [0, Inf]
• Example - get the number of generations the run took:
`NoGenerations = GeaOpt.Run.Generation;`
• This option can be used to get the number of generations of an optimization run.

Run.DoTerminate

This is an internal option indicating, that one of the termination options was satisfied or not. It is only used inside the main function geamain2.

• Default value: none (0)
• Type: integer in {0, 1}

 GEATbx: Main page  Tutorial  Algorithms  M-functions  Parameter/Options  Example functions  www.geatbx.com

This document is part of version 3.8 of the GEATbx: Genetic and Evolutionary Algorithm Toolbox for use with Matlab - www.geatbx.com.
The Genetic and Evolutionary Algorithm Toolbox is not public domain.