Ignore:
Timestamp:
01/05/17 00:32:43 (3 years ago)
Author:
abeham
Message:

#2701:

  • LLE: Added equality comparer
  • MemPR:
    • Added GPR to learn about heuristic performance
    • Changed Breeding to do more exhaustive search on crossover
    • Added Delinking separately to Relinking
    • Rewrote d/relinking for LLE
    • Reduce usage of local search
    • Renamed TabuWalk to AdaptiveWalk
    • Rewrote adaptive walk for binary problems
    • Renamed LLE namespace to Grouping to avoid namespace clashes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/MemPRAlgorithm/HeuristicLab.Algorithms.MemPR/3.3/LinearLinkage/SolutionModel/Univariate/UnivariateSolutionModel.cs

    r14487 r14544  
    2626using HeuristicLab.Core;
    2727using HeuristicLab.Data;
     28using HeuristicLab.Encodings.LinearLinkageEncoding;
    2829using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2930
    30 namespace HeuristicLab.Algorithms.MemPR.LinearLinkage.SolutionModel.Univariate {
     31namespace HeuristicLab.Algorithms.MemPR.Grouping.SolutionModel.Univariate {
    3132  [Item("Univariate solution model (linear linkage)", "")]
    3233  [StorableClass]
    33   public sealed class UnivariateModel : Item, ISolutionModel<Encodings.LinearLinkageEncoding.LinearLinkage> {
     34  public sealed class UnivariateModel : Item, ISolutionModel<LinearLinkage> {
    3435    [Storable]
    3536    public IntMatrix Frequencies { get; set; }
     
    6162    }
    6263
    63     public Encodings.LinearLinkageEncoding.LinearLinkage Sample() {
     64    public LinearLinkage Sample() {
    6465      var N = Frequencies.Rows;
    65       var centroid = Encodings.LinearLinkageEncoding.LinearLinkage.SingleElementGroups(N);
     66      var centroid = LinearLinkage.SingleElementGroups(N);
    6667      var dict = new Dictionary<int, int>();
    6768      for (var i = N - 1; i >= 0; i--) {
     
    8788    }
    8889
    89     public static ISolutionModel<Encodings.LinearLinkageEncoding.LinearLinkage> Create(IRandom random, IEnumerable<Encodings.LinearLinkageEncoding.LinearLinkage> population) {
     90    public static ISolutionModel<LinearLinkage> Create(IRandom random, IEnumerable<LinearLinkage> population) {
    9091      var iter = population.GetEnumerator();
    9192      if (!iter.MoveNext()) throw new ArgumentException("Cannot create solution model from empty population.");
Note: See TracChangeset for help on using the changeset viewer.