| MULTIBODY SIMULATION SOFTWARE - API documentation |
#include <CHsolvmin.h>


Public Member Functions | |
| virtual void | Copy (ChOptimizerGenetic *source) |
| virtual int | DoOptimize () |
| int | CreatePopulation (ChGenotype **&my_population, int my_popsize) |
| int | DeletePopulation (ChGenotype **&my_population, int my_popsize) |
| ChGenotype * | Select_roulette (ChGenotype **my_population) |
| ChGenotype * | Select_best (ChGenotype **my_population) |
| ChGenotype * | Select_worst (ChGenotype **my_population) |
| double | Get_fitness_interval (ChGenotype **my_population) |
| double | ComputeFitness (ChGenotype *) |
| int | ApplyCrossover (ChGenotype *par1, ChGenotype *par2, ChGenotype &child1, ChGenotype &child2) |
| int | InitializePopulation () |
| int | ComputeAllFitness () |
| int | Selection () |
| int | Crossover () |
| int | Mutation () |
| int | PopulationStats (double &average, double &max, double &min, double &stdeviation) |
| int | LogOut (int filelog) |
Public Attributes | |
| int | popsize |
| ChGenotype ** | population |
| ChGenotype * | best_indiv |
| int | max_generations |
| int | selection |
| int | crossover |
| int | mutation |
| int | elite |
| int | crossv_change |
| int | crossv_changeto |
| long | crossv_changewhen |
| double | mutation_prob |
| double | crossover_prob |
| int | speciation_mating |
| int | incest_taboo |
| int | replacement |
| double | eugenetics |
| int | stop_by_stdeviation |
| double | stop_stdeviation |
| int | stop_by_fitness |
| double | stop_fitness |
| double | average |
| double | stdeviation |
| double | min_fitness |
| double | max_fitness |
| long | generations_done |
| long | mutants |
| ChMatrix * | his_average |
| ChMatrix * | his_stdeviation |
| ChMatrix * | his_maxfitness |
| ChMatrix * | his_minfitness |
Inherited class for global optimization with the genetic method (evolutive simulation).
| int chrono::ChOptimizerGenetic::Crossover | ( | ) |
if (par1->genes->Equals(par2->genes)) /cout << "\n --incest";
CHRONO::ENGINE