/evogo

Genetic Algoritm framework written in go

Primary LanguageGoMIT LicenseMIT

evogo

Genetic Algoritm framework written in go

Install Package

$ go get github.com/stealthycoin/evogo

Install example program

$ go install github.com/stealthycoin/evogo/examples/hello_world

Sample run of the provided hello_world example

$ hello_world
Generation 1... Strongest Candidate: -180 FOfTl!Nztp]^$
Generation 2... Strongest Candidate: -142 OpZjV& fwufC)
Generation 3... Strongest Candidate: -95 EdglYI,VpmlT!
Generation 4... Strongest Candidate: -50 Mmnnl.!Vpsqj.
Generation 5... Strongest Candidate: -38 Edknl.!ZpmlT!
Generation 6... Strongest Candidate: -28 Edknl.!Vpsqj
Generation 7... Strongest Candidate: -22 Hakll.!Vpona
Generation 8... Strongest Candidate: -18 Edknl.!Zpsld!
Generation 9... Strongest Candidate: -16 Edknl.!Vpsld!
Generation 10... Strongest Candidate: -13 Hdknl.!Vpsld!
Generation 11... Strongest Candidate: -11 Hfkll.!Vpsld!
Generation 12... Strongest Candidate: -8 Hfkll. Wprld!
Generation 13... Strongest Candidate: -7 Hdkkn. Wprld!
Generation 14... Strongest Candidate: -6 Hdkln. Wprld!
Generation 15... Strongest Candidate: -5 Hdkkn, Wprld!
Generation 16... Strongest Candidate: -4 Hfkln, Wprld!
Generation 17... Strongest Candidate: -2 Hdlln, World!
Generation 18... Strongest Candidate: -2 Hdlln, World!
Generation 19... Strongest Candidate: -2 Hdlln, World!
Generation 20... Strongest Candidate: -1 Helln, World!
Generation 21... Strongest Candidate: -1 Helln, World!
Generation 22... Strongest Candidate: 0 Hello, World!
Took 172.172056ms