benjimaclellan / aesop

Inverse design framework for photonic systems
Apache License 2.0
4 stars 1 forks source link

Genetic Algorithm doesn't respect upper/lower bounds and discrete values #1

Closed kalebruscitti closed 5 years ago

kalebruscitti commented 5 years ago

Running the inner algorithm with a discrete valued component (waveshaper) gives a result that is not discete and doesn't respect the bounds.

kalebruscitti commented 5 years ago

Tested the algorithm with crossover and mutation probabilities 0 and still had the issue, could it be caused in the initial population generation??

kalebruscitti commented 5 years ago

bug fixed by benjamin