octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #63326] Octave Forge ga package/function outpu


From: Liang Tang
Subject: [Octave-bug-tracker] [bug #63326] Octave Forge ga package/function output unbounded results
Date: Mon, 7 Nov 2022 06:16:17 -0500 (EST)

URL:
  <https://savannah.gnu.org/bugs/?63326>

                 Summary: Octave Forge ga package/function output unbounded
results 
                 Project: GNU Octave
               Submitter: lt1234
               Submitted: Mon 07 Nov 2022 11:16:14 AM UTC
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: lt1234
        Originator Email: 
             Open/Closed: Open
                 Release: 7.1.0
         Discussion Lock: Any
        Operating System: Microsoft Windows


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Mon 07 Nov 2022 11:16:14 AM UTC By: Liang Tang <lt1234>
I use Octave 7.1.0 with ga 1.10.3 on windows 10 64x.  

ga *|  0.10.3 |
C:\Octave\Octave-7.1.0\mingw64\share\octave\packages\ga-0.10.3

The one variable simple problem below gave a wrong answer. x=0 is output.  The
correct result should be x=LB.  

LB/UB appear to be ineffective.  I have not found any document to indicate if
there are limitations on ga function.  

pkg load ga
fun=@(x) x.^2
x0=1.75; LB=1; UB=2;
ga_options = gaoptimset('Generations', 100, 'PopulationSize', 30,
'InitialPopulation', x0,  'Vectorized', 'off'); 
[x, fval, exitflag, output, population, scores] = ga (fitnessfcn=fun, nvars=1,
A=[], b=[], Aeq=[], beq=[], LB, UB, nonlcon=[], ga_options);x  % x =
-1.9613e-11 or some other near zero values

Thanks,  







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63326>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]