Genetic generators
xopt.generators.ga.cnsga.CNSGAGenerator ¶
CNSGAGenerator(**kwargs)
Bases: Generator
Source code in xopt/generators/ga/cnsga.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
|
Attributes¶
xopt.generators.ga.cnsga.CNSGAGenerator.n_pop
property
¶
n_pop
Convenience name for options.population_size
Functions¶
xopt.generators.ga.cnsga.CNSGAGenerator.generate ¶
generate(n_candidates)
generate n_candidates
candidates
Source code in xopt/generators/ga/cnsga.py
103 104 105 106 107 108 109 110 111 112 113 |
|
xopt.generators.ga.cnsga.CNSGAGenerator.load_population_csv ¶
load_population_csv(filename)
Read a population from a CSV file. These will be reverted back to children for re-evaluation.
Source code in xopt/generators/ga/cnsga.py
149 150 151 152 153 154 155 156 157 158 159 160 |
|
xopt.generators.ga.cnsga.CNSGAGenerator.write_offspring ¶
write_offspring(filename=None)
Write the current offspring to a CSV file.
Similar to write_population
Source code in xopt/generators/ga/cnsga.py
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 |
|
xopt.generators.ga.cnsga.CNSGAGenerator.write_population ¶
write_population(filename=None)
Write the current population to a CSV file.
Similar to write_offspring
Source code in xopt/generators/ga/cnsga.py
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 |
|