Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/05/17 00:32:43 (8 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
Location:
branches/MemPRAlgorithm/HeuristicLab.Algorithms.MemPR/3.3/LinearLinkage/SolutionModel/Univariate
Files:
3 edited

Legend:

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

    r14466 r14544  
    2323using HeuristicLab.Algorithms.MemPR.Interfaces;
    2424using HeuristicLab.Core;
     25using HeuristicLab.Encodings.LinearLinkageEncoding;
    2526
    26 namespace HeuristicLab.Algorithms.MemPR.LinearLinkage.SolutionModel.Univariate {
     27namespace HeuristicLab.Algorithms.MemPR.Grouping.SolutionModel.Univariate {
    2728  public static class Trainer {
    2829
    29     public static ISolutionModel<Encodings.LinearLinkageEncoding.LinearLinkage> Train(IRandom random,
    30         IEnumerable<Encodings.LinearLinkageEncoding.LinearLinkage> pop) {
     30    public static ISolutionModel<LinearLinkage> Train(IRandom random,
     31        IEnumerable<LinearLinkage> pop) {
    3132      return UnivariateModel.Create(random, pop);
    3233    }
  • branches/MemPRAlgorithm/HeuristicLab.Algorithms.MemPR/3.3/LinearLinkage/SolutionModel/Univariate/UnbiasedModelTrainer.cs

    r14466 r14544  
    2424using HeuristicLab.Common;
    2525using HeuristicLab.Core;
     26using HeuristicLab.Encodings.LinearLinkageEncoding;
    2627using HeuristicLab.Optimization;
    2728using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2829
    29 namespace HeuristicLab.Algorithms.MemPR.LinearLinkage.SolutionModel.Univariate {
     30namespace HeuristicLab.Algorithms.MemPR.Grouping.SolutionModel.Univariate {
    3031  [Item("Unbiased Univariate Model Trainer (linear linkage)", "", ExcludeGenericTypeInfo = true)]
    3132  [StorableClass]
    3233  public class UniasedModelTrainer<TContext> : NamedItem, ISolutionModelTrainer<TContext>
    33     where TContext : IPopulationBasedHeuristicAlgorithmContext<SingleObjectiveBasicProblem<Encodings.LinearLinkageEncoding.LinearLinkageEncoding>, Encodings.LinearLinkageEncoding.LinearLinkage>, ISolutionModelContext<Encodings.LinearLinkageEncoding.LinearLinkage> {
     34    where TContext : IPopulationBasedHeuristicAlgorithmContext<SingleObjectiveBasicProblem<LinearLinkageEncoding>, LinearLinkage>, ISolutionModelContext<LinearLinkage> {
    3435   
    3536    [StorableConstructor]
  • 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.