PHP Classes

File: example_set_variables.php

Recommend this page to a friend!
  Classes of Afshin Safarpour  >  Binary GA  >  example_set_variables.php  >  Download  
File: example_set_variables.php
Role: Configuration script
Content type: text/plain
Description: set variables
Class: Binary GA
Implement genetic algorithm that use 16 genes
Author: By
Last change:
Date: 14 years ago
Size: 521 bytes


Class file image Download

$fitness_function = $_POST['fitness_function'];
$generation = $_POST['generation'];
$population = $_POST['population'];
$lower_bound = $_POST['lower_bound'];
$upper_bound = $_POST['upper_bound'];

$ga = new GA();

$ga->fitnessFunction = $fitness_function;
$ga->totalGeneration = $generation;
$ga->population = $population;
$ga->lowerBound = $lower_bound;
$ga->upperBound = $upper_bound ;
$ga->file_name = 'ga_results.txt';



For more information send a message to info at phpclasses dot org.