[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54316] [octave forge] (ga) Unit test in ga.m
From: |
Rafael Laboissiere |
Subject: |
[Octave-bug-tracker] [bug #54316] [octave forge] (ga) Unit test in ga.m fails randomly |
Date: |
Mon, 16 Jul 2018 08:13:48 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?54316>
Summary: [octave forge] (ga) Unit test in ga.m fails randomly
Project: GNU Octave
Submitted by: rlaboiss
Submitted on: Mon 16 Jul 2018 12:13:46 PM UTC
Category: Octave Forge Package
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: other
Operating System: Any
_______________________________________________________
Details:
One of the unit tests in file ga.m fails randomly. This is a way of
triggering the bug:
$ octave-cli -q
octave:1> pkg load ga
octave:2> f = @rastriginsfcn;
octave:3> nvars = 2;
octave:4> default_options = gaoptimset ();
octave:5> ps = getfield (default_options, "PopulationSize");
octave:6> function [C, Ceq] = nonlcon (x)
C = [];
Ceq = [];
endfunction
octave:7> while 1
options = gaoptimset ("EliteCount", randi ([0, ps]));
x = ga (f, nvars, [], [], [], [], [], [], @nonlcon, options);
endwhile
error: value on right hand side of assignment is undefined
error: called from
__ga_selectionfcn__ at line 20 column 26
__ga_problem__ at line 55 column 42
ga at line 113 column 47
There are other unit tests that also use the randi() function. they may be
affected, but I did not do extensive investigation on the issue.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?54316>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #54316] [octave forge] (ga) Unit test in ga.m fails randomly,
Rafael Laboissiere <=