From: <sla...@us...> - 2012-03-19 00:54:19
|
Revision: 9962 http://octave.svn.sourceforge.net/octave/?rev=9962&view=rev Author: slackydeb Date: 2012-03-19 00:54:13 +0000 (Mon, 19 Mar 2012) Log Message: ----------- ga: reduce number of generations in a test of ga The high number of generations does not look strictly needed. Modified Paths: -------------- trunk/octave-forge/main/ga/inst/ga.m Modified: trunk/octave-forge/main/ga/inst/ga.m =================================================================== --- trunk/octave-forge/main/ga/inst/ga.m 2012-03-19 00:54:00 UTC (rev 9961) +++ trunk/octave-forge/main/ga/inst/ga.m 2012-03-19 00:54:13 UTC (rev 9962) @@ -159,7 +159,7 @@ # TODO: structure/add tests below -%!test x = ga (struct ("fitnessfcn", @rastriginsfcn, "nvars", 2, "options", gaoptimset ("FitnessLimit", 1e-7, "Generations", 1000))); +%!test x = ga (struct ("fitnessfcn", @rastriginsfcn, "nvars", 2, "options", gaoptimset ("FitnessLimit", 1e-7, "Generations", 200))); %!test x = ga (struct ("fitnessfcn", @(x) rastriginsfcn (x(1:2)) + ((x(3) ** 2) - (cos (2 * pi * x(3))) + 1) + (x(4) ** 2), "nvars", 4, "options", gaoptimset ("EliteCount", 5, "FitnessLimit", 1e-7, "PopInitRange", [-2; 2], "PopulationSize", 200))); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |