<?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();
?>
|