#include <galsample.h>
Public Attributes | |
| int | nrGenerations |
| Nr of generations. | |
| int | nrMembers |
| Nr of strings per generation. | |
| int | len |
| Length of each bitstring. | |
| char | outputfilename [80] |
| Output filename. | |
| int | nrElite |
| Nr of elite members (set to 0 to turn off elitism). | |
| double | mutationprob |
| Probability of mutation for a gene. | |
| double | crossoverprob |
| Probability of crossover for a string. | |
| int | printgenerations |
| Print to screen? 1=yes 0=no. | |
| int | fprintgenerations |
| Print chromosome data to file? 1=yes 0=no. | |
| int | fprintobjvals |
| Print objective values to file 1=yes 0=no. | |
| double | rmin |
| Min value for real (fl.point) parameter. | |
| double | rmax |
| Max value for real (fl.point) parameter. | |
| int | nrDim |
| Search space dimension. | |
| int | nrPoints |
| Nr of points in n-space. | |
| int | convergencethreshold |
| Convergence if max fitness is equal for this nr of generations. | |
Parameters are generally read from file.
1.3.9.1