Candidate ID #211
-
I would like to know does pymoo have a unique ID for each candidate within a population? For my problem I have a pool of candidates and I would like to uniquely identify these and understand at which generation a candidate was produced. For instance if a candidate solution was produced at generation 10 say and this survives to the next gen, how could I differentiate between these 2 candidates? I am saving every candidate from each generation to a csv. I understand I could do this manually by checking candidate parameters but I just wondered if pymoo assigns something like a UID and if this is preserved for generation to generation. For reference I am using version 0.5.0 and NSGA-III Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
you can use the Python |
Beta Was this translation helpful? Give feedback.
-
Yes! Check out |
Beta Was this translation helpful? Give feedback.
-
If you want to keep the 40 best candidates then you have to set So I would use |
Beta Was this translation helpful? Give feedback.
-
if |
Beta Was this translation helpful? Give feedback.
you can use the Python
id
method. So for each individuali
doid(algorithm.pop[i])
which gives you an id. You can append this to your CSV data and then reconstruct the run.Does that work for you?