From: <sla...@us...> - 2012-03-23 01:58:54
|
Revision: 10014 http://octave.svn.sourceforge.net/octave/?rev=10014&view=rev Author: slackydeb Date: 2012-03-23 01:58:48 +0000 (Fri, 23 Mar 2012) Log Message: ----------- ga: add TODO comment in ga 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:36 UTC (rev 10013) +++ trunk/octave-forge/main/ga/inst/ga.m 2012-03-23 01:58:48 UTC (rev 10014) @@ -255,6 +255,7 @@ %!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 ())); +# TODO: convert to simple xtests ## nvars == 1 and min == zeros (1, nvars) %!test assert (ga (@(x) x ** 2, 1), 0, 1e-3); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |