Login   Register  
PHP Classes
elePHPant
Icontem

File: set.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Afshin Safarpour  >  Evolutionary Programming  >  set.php  >  Download  
File: set.php
Role: Example script
Content type: text/plain
Description: set variables
Class: Evolutionary Programming
Evolutionary programming algorithm implementation
Author: By
Last change:
Date: 2008-05-08 06:12
Size: 591 bytes
 

Contents

Class file image Download
<?php
require_once('ep.class.php');

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

$ep = new EP();

$ep->fitnessFunction    $fitness_function;
$ep->totalGeneration     $generation;
$ep->population            $population;
$ep->stepSize            $step_size;
$ep->lowerBound            $lower_bound;
$ep->upperBound            $upper_bound ;
$ep->file_name            'ep_results.txt';

$ep->debug();
?>