PHP Classes

GA: Generic genetic algorithms base implementation

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 44%Total: 4,021 All time: 778 This week: 65Up
Version License Categories
ga 1.0.0GNU General Publi...Algorithms, Artificial intelligence


This class implements base methods to apply genetic algorithms to arbitrary subjects.

Its functions can be call instantiating a class object or called static methods.

The class can perform several types of generic algorithm operations like crossover, mutation, selection and death over populations of any objects of the same class.

It can be used as a base implementation of genetic algorithms to solve many types of problems on which the best solution may be found through natural selection.

Innovation Award
PHP Programming Innovation award winner
September 2005

Prize: One book of choice by SAMS
Genetic Algorithms are computing algorithms used to find approximate solutions to optimization problems. These problems consist in determining sequences of data that may provide better results depending on the order of the data elements.

The genetic algorithms are inspired in the evolutionary biology theories that determine that on each generation the individuals tend to evolve and address better the problems that challenge their survival.

Evolution happens after performing slight mutations to the chromosome sequence of the individuals of the current generation. The best fit individuals will survive and become the origin of the next generation.

In computing genetic algorithms can be used to optimize solutions for problems like job scheduling, artificial intelligence for computer operated game characters, compact file storage, etc..

This class can be used as a framework to implement PHP applications that can benefit of the use of genetic algorithms.

Manuel Lemos
Picture of Rafael Pinto
Name: Rafael Pinto <contact>
Classes: 4 packages by
Country: Brazil Brazil
Age: 42
All time rank: 26317 in Brazil Brazil
Week rank: 284 Down16 in Brazil Brazil Up
Innovation award
Innovation award
Nominee: 2x

Winner: 1x

  Files folder image Files  
File Role Description
Plain text file ga.php Class GA Class
Accessible without login Plain text file gaExample1.php Example GA Example 1
Accessible without login Plain text file gaExample2.php Example GA Example 2

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:778
This week:65Up
User Ratings User Comments (2)
 All time
very good
11 years ago (tayebeh)
Interesting stuff.
15 years ago (F Philip DeGeorge)