<? // -*-Mode: c++;-*-
/*
PhpGa - PHP Genetic Algorithm Class Library
Copyright (C) 2000 Bill C. White
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/*
PhpGaLimits.inc - Bill White - 8/3/00
These limits were needed by more than one source file, so I moved them here
from PhpGa.inc. Not desirable since PhpGa.inc would also include the base class
GA implementation.
*/
if(defined("_Php_Ga_Limits_inc_"))
return;
define("_Php_Ga_Limits_inc_", 1);
// limits
define(MIN_STRING_LENGTH, 1);
define(MAX_STRING_LENGTH, 32);
define(MIN_P_CROSSOVER, 0.0);
define(MAX_P_CROSSOVER, 1.0);
define(MIN_POP_SIZE, 2);
define(MAX_POP_SIZE, 50);
define(MIN_GEN_COUNT, 2);
define(MAX_GEN_COUNT, 50);
?>