Genetic Algorithms: PHY 604: Computational Methods in Physics and Astrophysics II
Genetic Algorithms: PHY 604: Computational Methods in Physics and Astrophysics II
(Tjlafave/Wikipedia)
PHY 604: Computational Methods in Physics and Astrophysics II
Thomson Problem
code: encode_decode.py
code: chromosphere.py
(xkcd)
– Without a loss of generality, we can put the first charge at the north
pole and the second in the x-z plane
– n is the dimensionality
– use 37 bit Gray binary code (which has 237-1 values, and a precision on
[-6,6] of < 10-10)
● Sometimes even a string encoding (ABCD...) is used—for instance
with the traveling salesman problem (e.g.)