Hi,
when building ga 0.9.4 with Octave 3.0.3, the following errors occur:
=====================================================================
Checking package...
[fitscalingrank]
PASSES 3 out of 3 tests
[__ga_initial_population__]
PASSES 2 out of 2 tests
[ga]
warning: __ga_problem_return_variables__: some elements in list of return
values are undefined
***** xtest
min = [-1, 2];
assert (ga (struct ("fitnessfcn", @(x) rastriginsfcn (x - min), "nvars", 2,
"options", gaoptimset ("FitnessLimit", 1e-7, "Generations", 1000,
"PopInitRange", [-5; 5], "PopulationSize", 200))), min, 1e-6)
!!!!! known failure
error: assert (ga (struct ("fitnessfcn", @(x) rastriginsfcn (x - min);
, "nvars", 2, "options", gaoptimset ("FitnessLimit", 1e-7, "Generations", 1000,
"PopInitRange", [-5; 5], "PopulationSize", 200))),min,1e-6) expected
-1 2
but got
-0.99999 2.00000
maximum absolute error 7.67953e-06 exceeds tolerance 1e-06
warning: __ga_problem_return_variables__: some elements in list of return
values are undefined
warning: __ga_problem_return_variables__: some elements in list of return
values are undefined
warning: __ga_problem_return_variables__: some elements in list of return
values are undefined
warning: __ga_problem_return_variables__: some elements in list of return
values are undefined
***** xtest assert (ga (struct ("fitnessfcn", @rastriginsfcn, "nvars", 2,
"options", gaoptimset ("FitnessLimit", 1e-7, "Generations", 1000))), zeros (1,
2), 1e-6)
!!!!! known failure
error: assert (ga (struct ("fitnessfcn", @rastriginsfcn, "nvars", 2, "options",
gaoptimset ("FitnessLimit", 1e-7, "Generations", 1000))),zeros (1, 2),1e-6)
expected
0 0
but got
9.9496e-01 -3.5461e-10
maximum absolute error 0.994959 exceeds tolerance 1e-06
warning: __ga_problem_return_variables__: some elements in list of return
values are undefined
***** xtest assert (ga (struct ("fitnessfcn", @rastriginsfcn, "nvars", 2,
"options", gaoptimset ("FitnessLimit", 1e-7, "PopulationSize", 200))), zeros
(1, 2), 1e-6)
!!!!! known failure
error: assert (ga (struct ("fitnessfcn", @rastriginsfcn, "nvars", 2, "options",
gaoptimset ("FitnessLimit", 1e-7, "PopulationSize", 200))),zeros (1, 2),1e-6)
expected
0 0
but got
7.2191e-06 6.7790e-06
maximum absolute error 7.21906e-06 exceeds tolerance 1e-06
warning: __ga_problem_return_variables__: some elements in list of return
values are undefined
***** xtest assert (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))), zeros (1, 4), 1e-6)
!!!!! known failure
error: assert (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))),zeros (1, 4),1e-6) expected
0 0 0 0
but got
2.1638e-05 -2.5169e-05 1.0871e-04 -1.8070e-02
maximum absolute error 0.0180704 exceeds tolerance 1e-06
PASSES 7 out of 7 tests (4 expected failures)
[rastriginsfcn]
PASSES 1 out of 1 tests
[crossoversinglepoint]
***** shared nvars, xoverKids
parents = [3.2 -34 51 64.21; 3.2 -34 51 64.21];
options = gaoptimset ();
nvars = 4;
FitnessFcn = false; ## this parameter is unused in the current implementation
unused = false;
thisPopulation = false; ## this parameter is unused in the current
implementation
xoverKids = crossoverscattered (parents, options, nvars, FitnessFcn, unused,
thisPopulation);
!!!!! test failed
error: expecting integer index, found 3.200000
shared variables {
nvars = [](0x0)
xoverKids = [](0x0)
}
[__bin2num__]
PASSES 2 out of 2 tests
[__bin2hex__]
***** assert (__bin2hex__ (["1101110"; "1110"]), ["6E"; "E"])
!!!!! test failed
error: assert (__bin2hex__ (["1101110"; "1110"]),["6E"; "E"]) expected
6E
E
but got
6E
0E
[__num2bin__]
PASSES 2 out of 2 tests
[__hex2bin__]
PASSES 2 out of 2 tests
=====================================================================
Are all of these to be expected?
Thomas
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev