changeset 9716:61e87dd2d3d4 octave-forge

ga: avoid printing test output
author slackydeb
date Thu, 15 Mar 2012 02:49:14 +0000
parents e64a80eab168
children a38fbe3443b2
files main/ga/inst/ga.m
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/main/ga/inst/ga.m	Thu Mar 15 02:27:43 2012 +0000
+++ b/main/ga/inst/ga.m	Thu Mar 15 02:49:14 2012 +0000
@@ -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)