Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/03/19 17:43:11 (5 years ago)
Author:
abeham
Message:

#2521: Refactored maximization property for multi-objective problems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Algorithms.MOCMAEvolutionStrategy/3.3/MOCMAEvolutionStrategy.cs

    r17261 r17309  
    376376      var bkf = problem.BestKnownFront == null ? null : problem.BestKnownFront.ToArray();
    377377      if (bkf != null && problem.ReferencePoint != null) {
    378         ResultsBestKnownHypervolume = HypervolumeCalculator.CalculateHypervolume(bkf, problem.ReferencePoint, Problem.Maximization);
     378        ResultsBestKnownHypervolume = HypervolumeCalculator.CalculateHypervolume(bkf, problem.ReferencePoint, Problem.Maximization.CloneAsArray());
    379379        ResultsDifferenceBestKnownHypervolume = ResultsBestKnownHypervolume;
    380380      }
     
    456456      //perform a non-dominated sort to assign the rank to every element
    457457      int[] ranks;
    458       var fronts = DominationCalculator.CalculateAllParetoFronts(parents.ToArray(), parents.Select(i => i.PenalizedFitness).ToArray(), Problem.Maximization, out ranks);
     458      var fronts = DominationCalculator.CalculateAllParetoFronts(parents.ToArray(), parents.Select(i => i.PenalizedFitness).ToArray(), Problem.Maximization.CloneAsArray(), out ranks);
    459459
    460460      //deselect the highest rank fronts until we would end up with less or equal mu elements
Note: See TracChangeset for help on using the changeset viewer.