Mercurial > forge
changeset 9770:0e500a2d5270 octave-forge
ga: add comments to ga unit tests
author | slackydeb |
---|---|
date | Mon, 19 Mar 2012 00:33:47 +0000 |
parents | de065ffae804 |
children | fc54c6a841ef |
files | main/ga/inst/ga.m |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/main/ga/inst/ga.m Mon Mar 19 00:33:34 2012 +0000 +++ b/main/ga/inst/ga.m Mon Mar 19 00:33:47 2012 +0000 @@ -130,6 +130,7 @@ ## type of arguments # TODO +## flawless execution with right arguments %!shared f, nvars %! f = @rastriginsfcn; %! nvars = 2; @@ -147,6 +148,7 @@ %!test x = ga (f, nvars, [], [], [], [], [], [], @(x) [[], []]); %!test x = ga (f, nvars, [], [], [], [], [], [], @nonlcon); %!test x = ga (f, nvars, [], [], [], [], [], [], @(x) [[], []], gaoptimset ()); +# TODO: %!test x = ga (problem); %!test x = ga (struct ("fitnessfcn", @rastriginsfcn, "nvars", 2, "options", gaoptimset ("FitnessLimit", 1e-7, "Generations", 1000)));