/CM_GA_exer

Primary LanguageJupyter Notebook

genetic-algorithm

1. Genetic Algorithm for Classical Mechanics

This is a simple genetic algorithm with symbolic regression method. There is 'exer' folder. Don't open a 'dummy' folder, there is nothing. The main codes are in 'End' folder. The codes are written by ipynb.(jupyter notebook)

1) Simple Harmonic Oscillation

  • data generate code >> csv file
    • Code generate some function data(_r, _rr) and with error.
  • symbolic regression code find data function >> symbolic output + graph
  • sympy change the symbolic output to simple function

a) Ipython Files

  • exer_os : using 1D SHO data (os and os_r)
  • exer_2d : using 2D SHO data (os_2d and os_rr)
    • But, NOT dependent of 'x', 'y'
  • exer_os(p) : using Earth orbit 'x' data (data.csv)
  • exer_os(p)_2d : using Earth orbit 'x' and 'y' data (data.csv)
    • But, NOT dependent of 'x', 'y'

2) 2D Data

3) Find potential energy about given kinetic energy