pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/winpython/GeneticAlgorithmPython/commit/5ed45bd8e6e01f1f7e72c92a132b0f3c292f44b9

origen="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-10539fe0effdbc74.css" /> Prevent duplicates in the genes · winpython/GeneticAlgorithmPython@5ed45bd · GitHub
Skip to content

Commit 5ed45bd

Browse files
authored
Prevent duplicates in the genes
A new bool parameter called allow_duplicate_genes is supported. If True, then a solution/chromosome may have duplicate gene values. If False, then each gene will have a unique value in its solution. This behavior is not guaranteed when a gene is assigned a dict in the gene_space parameter. For example, the last gene here (gene_space=[[7, 8, 9], [9, 8, 7], {"low": 7, "high": 10}]) is assigned a dictionary. As a result, it may have duplicate values even if allow_duplicate_genes=False.
1 parent 992ba51 commit 5ed45bd

1 file changed

Lines changed: 268 additions & 29 deletions

File tree

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy