Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/20/20 17:31:31 (4 years ago)
Author:
abeham
Message:

#2521: Worked on ResultParameter for Problem and Algorithms

  • Add ResultParameter to TSP, BinaryVectorProblem, and HillClimber
  • Refactor ResultParameter to allow presetting the ResultCollection instead of having to discover it (e.g. for use in BasicAlgorithms)
  • Unify Results property among EngineAlgorithm and BasicAlgorithm
    • There is now only a single instance which is storable
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Clients.OKB/3.3/RunCreation/EmptyAlgorithm.cs

    r17226 r17517  
    2121
    2222using System;
     23using HEAL.Attic;
    2324using HeuristicLab.Common;
    2425using HeuristicLab.Core;
    25 using HeuristicLab.Optimization;
    26 using HEAL.Attic;
    2726using HeuristicLab.PluginInfrastructure;
    2827
     
    4140    }
    4241
    43     private ResultCollection results;
    44     public override Optimization.ResultCollection Results {
    45       get { return results; }
    46     }
    47 
    4842    #region Persistence Properties
    4943    [Storable(Name = "ExceptionMessage")]
     
    5650    [StorableConstructor]
    5751    private EmptyAlgorithm(StorableConstructorFlag _) : base(_) {
    58       this.results = new ResultCollection();
    5952    }
    6053    private EmptyAlgorithm(EmptyAlgorithm original, Cloner cloner)
    6154      : base(original, cloner) {
    6255      this.exceptionMessage = original.exceptionMessage;
    63       this.results = new ResultCollection();
    6456    }
    6557    public EmptyAlgorithm()
    6658      : base() {
    67       results = new ResultCollection();
    6859    }
    6960    public EmptyAlgorithm(string exceptionMessage)
Note: See TracChangeset for help on using the changeset viewer.