From: <sla...@us...> - 2012-03-23 01:59:06
|
Revision: 10015 http://octave.svn.sourceforge.net/octave/?rev=10015&view=rev Author: slackydeb Date: 2012-03-23 01:59:00 +0000 (Fri, 23 Mar 2012) Log Message: ----------- ga: use random value in unit test 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-23 01:58:48 UTC (rev 10014) +++ trunk/octave-forge/main/ga/inst/ga.m 2012-03-23 01:59:00 UTC (rev 10015) @@ -186,7 +186,7 @@ %! options = gaoptimset ("CrossoverFcn", @crossoverscattered); %! x = ga (f, nvars, [], [], [], [], [], [], @nonlcon, options); %!test -%! options = gaoptimset ("CrossoverFraction", 0.6); +%! options = gaoptimset ("CrossoverFraction", rand); %! x = ga (f, nvars, [], [], [], [], [], [], @nonlcon, options); %!test %! options = gaoptimset ("EliteCount", 5); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |