Genetic algorithms¶
The sequential calibration has substantial limitations: (i) it cannot automatically choose the pressure levels and temporal windows (hour of the day) for a given meteorological variable, (ii) it cannot handle dependencies between parameters, and (iii) it cannot easily handle new degrees of freedom. For this reason, genetic algorithms (GAs) were implemented in AtmoSwing Optimizer to perform a global optimization of AMs. It allows for the optimization of all parameters jointly in a fully automatic and objective way. See more details in [Horton2017].
Genetic algorithms are powerful but very demanding in terms of computational capacity. They require thousands of assessments to evolve towards the global optimum and thus should be used on a cluster rather than a single computer.
Many options and operator variants are available for genetic algorithms. Based on systematic tests detailed in [Horton2017], some presets were established in order to ease the use of genetic algorithms in AtmoSwing. These presets are listed below, and all options are provided further down.
Options presets¶
Many options and operator variants control the optimization by genetic algorithms. Recommended configurations were predefined in presets.
--ga-config=<1-5> | |
Operators presets |
For all presets, the following options are identical: --ga-conv-steps=30
--ga-pop-size=500
--ga-interm-gen=0.5
--ga-ope-nat-sel=0
--ga-ope-coup-sel=2
--ga-ope-cross=7
--ga-cross-bin-pt-nb=2
--ga-cross-bin-share-b=1
The difference between the presets concerns the mutation operator. Providing the following numbers (1-5) to the option ga-config is equivalent to these corresponding presets:
- Chromosome of adaptive search radius:
--ga-ope-mut=8
- Multiscale mutation:
--ga-ope-mut=9
--ga-mut-multi-scale-p=0.1
- Nonuniform mutation (pmut=0.1, Gmr=50, w=0.1):
--ga-ope-mut=4
--ga-mut-non-uni-p=0.1
--ga-mut-non-uni-gens=50
--ga-mut-non-uni-min-r=0.1
- Nonuniform mutation (pmut=0.1, Gmr=100, w=0.1):
--ga-ope-mut=4
--ga-mut-non-uni-p=0.1
--ga-mut-non-uni-gens=100
--ga-mut-non-uni-min-r=0.1
- Nonuniform mutation (pmut=0.2, Gmr=100, w=0.1):
--ga-ope-mut=4
--ga-mut-non-uni-p=0.2
--ga-mut-non-uni-gens=100
--ga-mut-non-uni-min-r=0.1
Any of these options can be overridden by specifying it along with ga-config.
All options¶
The different operators can be controlled with the following options:
--ga-ope-nat-sel=<0-1> | |
Operator choice for natural selection:
| |
--ga-ope-coup-sel=<0-4> | |
Operator choice for couples selection:
| |
--ga-ope-cross=<0-9> | |
Operator choice for chromosome crossover:
| |
--ga-ope-mut=<0-10> | |
Operator choice for mutation:
| |
--ga-pop-size=<int> | |
Size of the population | |
--ga-conv-steps=<int> | |
Number of generations for convergence | |
--ga-interm-gen=<0-1> | |
Ratio of the intermediate generation | |
--ga-nat-sel-tour-p=<0-1> | |
Natural selection - tournament probability | |
--ga-coup-sel-tour-nb=<2/3> | |
Couples selection - tournament candidates (2/3) | |
--ga-cross-mult-pt-nb=<int> | |
Standard crossover - number of points | |
--ga-cross-blen-pt-nb=<int> | |
Blending crossover - number of points | |
--ga-cross-blen-share-b=<1/0> | |
Blending crossover - beta shared (1/0) | |
--ga-cross-lin-pt-nb=<int> | |
Linear crossover - number of points | |
--ga-cross-heur-pt-nb=<int> | |
Heuristic crossover - number of points | |
--ga-cross-heur-share-b=<1/0> | |
Heuristic crossover - beta shared (1/0) | |
--ga-cross-bin-pt-nb=<int> | |
Binary-like crossover - number of points | |
--ga-cross-bin-share-b=<1/0> | |
Binary-like crossover - beta shared (1/0) | |
--ga-mut-unif-cst-p=<0-1> | |
Uniform mutation - probability | |
--ga-mut-norm-cst-p=<0-1> | |
Normal mutation - probability | |
--ga-mut-norm-cst-dev=<sd> | |
Normal mutation - standard deviation | |
--ga-mut-unif-var-gens=<int> | |
Variable uniform mutation - generations nb | |
--ga-mut-unif-var-p-strt=<0-1> | |
Variable uniform mutation - starting probability | |
--ga-mut-unif-var-p-end=<0-1> | |
Variable uniform mutation - end probability | |
--ga-mut-norm-var-gens-p=<int> | |
Variable normal mutation - generations nb for probability | |
--ga-mut-norm-var-gens-d=<int> | |
Variable normal mutation - generations nb for std deviation | |
--ga-mut-norm-var-p-strt=<0-1> | |
Variable normal mutation - starting probability | |
--ga-mut-norm-var-p-end=<0-1> | |
Variable normal mutation - end probability | |
--ga-mut-norm-var-d-strt=<sd> | |
Variable normal mutation - starting std deviation | |
--ga-mut-norm-var-d-end=<sd> | |
Variable normal mutation - end std deviation | |
--ga-mut-non-uni-p=<0-1> | |
Non uniform mutation - probability | |
--ga-mut-non-uni-gens=<int> | |
Non uniform mutation - generations nb | |
--ga-mut-non-uni-min-r=<0-1> | |
Non uniform mutation - minimum rate | |
--ga-mut-multi-scale-p=<0-1> | |
Multi-scale mutation - probability |
[Horton2017] | (1, 2) Horton, P., Jaboyedoff, M., & Obled, C. (2017). Global Optimization of an Analog Method by Means of Genetic Algorithms. Monthly Weather Review, 145(4), 1275–1294. http://doi.org/10.1175/MWR-D-16-0093.1 |