Changeset 17702


Ignore:
Timestamp:
07/28/20 20:08:43 (3 weeks ago)
Author:
dleko
Message:

#2825 Bugfix: Algorithm now does not crash when no best known pareto front is found for the test problem.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2825-NSGA3/HeuristicLab.Algorithms.NSGA3/3.3/NSGA3.cs

    r17701 r17702  
    280280            // todo: add BestKnownFront parameter
    281281            ResultsScatterPlot = new ParetoFrontScatterPlot(new double[0][], new double[0][], problem.BestKnownFront.ToJaggedArray(), problem.Objectives, problem.ProblemSize);
     282            if (problem.BestKnownFront == null) return;
    282283            ResultsBestKnownHypervolume = new DoubleValue(Hypervolume.Calculate(problem.BestKnownFront.ToJaggedArray(), problem.ReferencePoint.CloneAsArray(), problem.Maximization));
    283284        }
Note: See TracChangeset for help on using the changeset viewer.