PHP Classes

PHP Genetic Algorithm Class: Optimize order of sequences with Genetic algorithm

Recommend this page to a friend!
  Info   View files Example   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 414 All time: 6,426 This week: 129Up
Version License PHP version Categories
galgo 1.0GNU General Publi...5.0Algorithms, PHP 5, Artificial intelli...
Description 

Author

This class can be used to optimize order of sequences with Genetic algorithm.

It can take an array with a sequence of objects to optimize and it applies genetic algorithm to evolve the sequence.

The class applies a given number of generations to perform elitistic selection with a given fitness function, applies cross-over and mutation.

The resulting sequence of objects is stored as an array class variable.

An example is provided to optimize a sequence of cities to travel.

Picture of Ravindu Taveesha
  Performance   Level  
Name: Ravindu Taveesha <contact>
Classes: 3 packages by
Country: Sri Lanka Sri Lanka
Age: 32
All time rank: 26804 in Sri Lanka Sri Lanka
Week rank: 310 Up1 in Sri Lanka Sri Lanka Up
Innovation award
Innovation award
Nominee: 1x

Details

Requirements

PHP 5 or heigher apache server or WAMP/XAMPP server

Installation

add these two files into www floder which is in your C:/ drive to run script, open your browser and enter your 'localhost/yourflodername' url

Modification

you are free to change modifications, if you find any bug please inform it to this email thaveesha.ravindu2@gmail.com

Thank you.

  Files folder image Files  
File Role Description
Plain text file galgo.php Class the main class
Accessible without login Plain text file readme Doc. read me
Accessible without login Plain text file travel.php Example travel example

 Version Control Unique User Downloads Download Rankings  
 0%
Total:414
This week:0
All time:6,426
This week:129Up