From: <sla...@us...> - 2012-03-24 16:33:20
|
Revision: 10029 http://octave.svn.sourceforge.net/octave/?rev=10029&view=rev Author: slackydeb Date: 2012-03-24 16:33:14 +0000 (Sat, 24 Mar 2012) Log Message: ----------- ga: style fix 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-24 16:33:02 UTC (rev 10028) +++ trunk/octave-forge/main/ga/inst/ga.m 2012-03-24 16:33:14 UTC (rev 10029) @@ -133,6 +133,7 @@ # TODO # TODO: test that each field in the user-specified "problem" structure is checked + ## flawless execution with right arguments %!shared f, nvars %! f = @rastriginsfcn; @@ -264,6 +265,7 @@ %! options = gaoptimset ("Vectorized", "on"); %! x = ga (f, nvars, [], [], [], [], [], [], @nonlcon, options); + ## error with conflicting optimization parameters: population size et al. %!shared f, nvars %! f = @rastriginsfcn; @@ -335,6 +337,7 @@ %! "Vectorized", "garbage"); %! x = ga (f, nvars, [], [], [], [], [], [], @nonlcon, bad_options); + # TODO: structure/add tests below %!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 ())); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |