Skip to main content
1 of 7
Mo Moallim
  • 311
  • 3
  • 11

Implementing genetic Algorithm to solve ( Diophantine Equation )

I am trying to implement a genetic algorithm to solve (Diophantine Equation),i.e, a+2b+3c+4d=90 where a,b,c,d are positive integers. After reading some books and following tutorials, I finally wrote this code but as I am new to programming and GA, I don't know if this is a good implementation. So I need your feedback.

You can view the code here

Mo Moallim
  • 311
  • 3
  • 11