PlatEMO icon indicating copy to clipboard operation
PlatEMO copied to clipboard

Bug running SLMEA for SMOP2 and SMOP7

Open kroppian opened this issue 2 years ago • 1 comments

Hello all,

SLMEA is resulting in an error when trying to solve the following scenario:

% Change to your own local path
addpath("/Path/to/PlatEMO");

platemo(                                             ...
          'algorithm',  @SLMEA                     , ...
          'problem'  ,  {@SMOP2, 0.9}              , ...
          'maxFE'    ,  20000                      , ...
          'N'        ,  100                        , ...
          'M'        ,  2                          , ...
          'D'        ,  100                        , ...
          'save'     ,  20000);

This results in the following error:

Error using ones
NaN and Inf not allowed.

Error in CpuGroup (line 17)
        B      = ones(1,varsPerGroup*numberOfGroups);

Error in Operator (line 41)
               [index,MAX] = CpuGroup(numGroup,Fitness,length(Mix));

Error in SLMEA/main (line 71)
                [OffDec,OffMask,long,numGroup] = Operator(Dec(MatingPool,:),Mask(MatingPool,:),REAL,Fitness,Mix,P,T,Zero,One,Upper,Lower,RC,numGroup,useGPU,GlobalGen);

Error in ALGORITHM/Solve (line 77)
                tic; obj.main(PROBLEM.Current(obj.pro));

Error in platemo (line 85)
            Algorithm.Solve(Problem);

Error in testSLMEA (line 7)
platemo(                                             ...

My computer has the following configuration:

  • MacOS (similar error arises in Ubuntu)
  • MATLAB 2022a
  • PlatEMO release 3.5

Let me know if any further information is needed.

kroppian avatar May 27 '22 19:05 kroppian

Hello, there is no way to solve this problem at present. This algorithm involves calling the GPU, which is more troublesome. But we will do our best to deal with it as soon as possible.

DestinyMy avatar Jun 15 '22 07:06 DestinyMy