Closed martinwholtmon closed 1 year ago
Start with 2. A population of n nurses where each value represent whether to visit a patient or not (binary) (one feasible solution per generation):
[
[0,0,0,1,...,1], // Nurse 1
[1,1,0,0,...,0], // Nurse 2
...
]
Will have two populations, one feasible that satisfies the constraints and one unfeasible.
Might have to rethink this one. Probably best to select 1 to have a population of multiple solutions (individuals)
How a solution should be represented to make it feasable to check for the constraints