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

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

[Octave-bug-tracker] [bug #52177] possible bug is found in mutationgauss


From: sajish
Subject: [Octave-bug-tracker] [bug #52177] possible bug is found in mutationgaussian function of GA package
Date: Fri, 6 Oct 2017 09:58:39 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?52177>

                 Summary: possible bug is found in mutationgaussian function
of GA package
                 Project: GNU Octave
            Submitted by: sajish
            Submitted on: Fri 06 Oct 2017 01:58:38 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Build Failure
                  Status: None
             Assigned to: None
         Originator Name: sajish
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.1
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

error: scalar cannot be indexed with .
error: called from
    mutationgaussian at line 23 column 8
    mutationgaussian at line 25 column 1
    __ga_mutationfcn__ at line 22 column 52
    __ga_problem__ at line 70 column 65
    ga at line 111 column 47
    ga_cantilever at line 18 column 8.



The corresponding function file is shown below for your  reference.


function mutationChildren = ....
      mutationgaussian (parents, options,nvars, FitnessFcn,
                        state, thisScore, thisPopulation);            
#[LB(1, 1:nvars) UB(1, 1:nvars)] =.....
#    __ga_popinitrange__ (options.PopInitRange, nvars);
[LB UB] = __ga_popinitrange__(options.PopInitRange, nvars);
## start mutationgaussian logic
options.MutationFcn(1, 2)
Scale = options.MutationFcn(1, 2);
#scale=1;
  #assert (size (Scale), [1 1]); ## DEBUG
Shrink = options.MutationFcn(1, 3);


I have checked that all the variables are passed to the function by list each
variable separately. Still I am getting this error message. 




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri 06 Oct 2017 01:58:38 PM UTC  Name: mutationgaussian.m  Size: 2KiB  
By: sajish

<http://savannah.gnu.org/bugs/download.php?file_id=42072>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?52177>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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