Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/17/19 23:10:22 (6 years ago)
Author:
mkommend
Message:

#2521: Added StorableType to FitnessFunction enum of GraphColoringProblem.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.GraphColoring/3.3/GraphColoringProblem.cs

    r16767 r16808  
    3434
    3535namespace HeuristicLab.Problems.GraphColoring {
     36  [StorableType("88078013-834F-40AC-9298-B8E1C4B393D3")]
    3637  public enum FitnessFunction { Prioritized, Penalized }
    3738  [Item("Graph Coloring Problem (GCP)", "Attempts to find a coloring using a minimal number of colors that doesn't produce a conflict.")]
     
    172173      var orderedIndividuals = lles.Zip(qualities, (i, q) => new { LLE = i, Quality = q }).OrderBy(z => z.Quality);
    173174      var best = Maximization ? orderedIndividuals.Last().LLE : orderedIndividuals.First().LLE;
    174        
     175
    175176      var llee = best.ToEndLinks();
    176177      var colors = llee.Distinct().Count();
    177178      var conflicts = CalculateConflicts(llee);
    178      
     179
    179180      IResult res;
    180181      int bestColors = int.MaxValue, bestConflicts = int.MaxValue;
Note: See TracChangeset for help on using the changeset viewer.