UM-LPM/EARS

DoubleMOTask task problem

Opened this issue · 0 comments

  • Error example 1
    import org.um.feri.ears.algorithms.moo.demo.D_DEMO
    ...
    val moead = new D_MOEAD(1000)
    val demo = new D_DEMO(1000, 1)
    ...
    val task = new DoubleMOTask(EnumStopCriteria.ITERATIONS, 10000, 10000, 10000, 0.000001, myProblem);
    ...
    val r_moead = moead.execute(task)
    val r_demo = demo.execute(task)
    
    Returns:
    Exception in thread "main" java.lang.NullPointerException
      at org.um.feri.ears.util.Ranking.<init>(Ranking.java:71)
      at org.um.feri.ears.algorithms.MOAlgorithm.execute(MOAlgorithm.java:188)
    
  • Error example 2
    import org.um.feri.ears.algorithms.moo.demo.D_DEMO
    ...
    val moead = new D_MOEAD(1000)
    val demo = new D_DEMO(1000, 1)
    ...
    val task = new DoubleMOTask(EnumStopCriteria.ITERATIONS, 10000, 10000, 10000, 0.000001, myProblem);
    ...
    val r_demo = demo.execute(task)
    val r_moead = moead.execute(task)
    
    Returns:
    Exception in thread "main" java.lang.IndexOutOfBoundsException: Index out of Bound 928
      at org.um.feri.ears.problems.moo.ParetoSolution.get(ParetoSolution.java:155)
      at org.um.feri.ears.algorithms.moo.moead.MOEAD.start(MOEAD.java:208)
      at org.um.feri.ears.algorithms.moo.moead.D_MOEAD.start(D_MOEAD.java:28)
      at org.um.feri.ears.algorithms.MOAlgorithm.execute(MOAlgorithm.java:184)