From: <sla...@us...> - 2012-03-15 02:49:21
|
Revision: 9902 http://octave.svn.sourceforge.net/octave/?rev=9902&view=rev Author: slackydeb Date: 2012-03-15 02:49:14 +0000 (Thu, 15 Mar 2012) Log Message: ----------- ga: avoid printing test output 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-15 02:27:43 UTC (rev 9901) +++ trunk/octave-forge/main/ga/inst/ga.m 2012-03-15 02:49:14 UTC (rev 9902) @@ -119,9 +119,9 @@ ## type of arguments -%!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", 1000))); -%!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))) +%!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))); ## nvars == 1 and min == zeros (1, nvars) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |