-
-
Notifications
You must be signed in to change notification settings - Fork 489
Commit 196a034
PyGAD 2.16.0 Documentation
A user-defined function can be passed to the mutation_type, crossover_type, and parent_selection_type parameters in the pygad.GA class to create a custom mutation, crossover, and parent selection operators. Check the User-Defined Crossover, Mutation, and Parent Selection Operators section in the documentation: https://pygad.readthedocs.io/en/latest/README_pygad_ReadTheDocs.html#user-defined-crossover-mutation-and-parent-selection-operators
The example_custom_operators.py script gives an example of building and using custom functions for the 3 operators.
#50 1 parent c4564ec commit 196a034
3 files changed
+393
-9
lines changedLines changed: 35 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
807 | 807 |
| |
808 | 808 |
| |
809 | 809 |
| |
810 | + | ||
811 | + | ||
812 | + | ||
813 | + | ||
814 | + | ||
815 | + | ||
816 | + | ||
817 | + | ||
818 | + | ||
819 | + | ||
820 | + | ||
821 | + | ||
822 | + | ||
823 | + | ||
824 | + | ||
825 | + | ||
826 | + | ||
827 | + | ||
828 | + | ||
829 | + | ||
830 | + | ||
831 | + | ||
832 | + | ||
833 | + | ||
834 | + | ||
835 | + | ||
810 | 836 |
| |
811 | 837 |
| |
812 | 838 |
| |
| |||
1274 | 1300 |
| |
1275 | 1301 |
| |
1276 | 1302 |
| |
1277 | - | ||
1278 | - | ||
1303 | + | ||
1304 | + | ||
1279 | 1305 |
| |
1280 | 1306 |
| |
1281 | 1307 |
| |
1282 | 1308 |
| |
1283 | 1309 |
| |
1284 | 1310 |
| |
1285 | - | ||
1286 | - | ||
1287 | - | ||
1288 | 1311 |
| |
1289 | 1312 |
| |
1290 | 1313 |
| |
1291 | 1314 |
| |
1315 | + | ||
1316 | + | ||
1317 | + | ||
1292 | 1318 |
| |
1293 | 1319 |
| |
1294 | 1320 |
| |
| |||
1301 | 1327 |
| |
1302 | 1328 |
| |
1303 | 1329 |
| |
1330 | + | ||
1331 | + | ||
1332 | + | ||
1333 | + | ||
1304 | 1334 |
| |
1305 | 1335 |
| |
1306 | 1336 |
| |
|
0 commit comments