Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/20/10 20:16:18 (14 years ago)
Author:
abeham
Message:

fixed some things in trajectory based algorithms #933

Location:
trunk/sources/HeuristicLab.Algorithms.TabuSearch/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.TabuSearch/3.3/TabuSearch.cs

    r3141 r3145  
    128128
    129129    [StorableConstructor]
    130     public TabuSearch(bool deserializing) : base() { }
     130    private TabuSearch(bool deserializing) : base() { }
    131131    public TabuSearch()
    132132      : base() {
  • trunk/sources/HeuristicLab.Algorithms.TabuSearch/3.3/TabuSearchMainLoop.cs

    r3143 r3145  
    8686    #endregion
    8787
     88    [StorableConstructor]
     89    private TabuSearchMainLoop(bool deserializing) : base() { }
    8890    public TabuSearchMainLoop()
    8991      : base() {
     92      Initialize();
     93    }
     94
     95    private void Initialize() {
    9096      #region Create parameters
    9197      Parameters.Add(new ValueLookupParameter<IRandom>("Random", "A pseudo random number generator."));
     
    97103      Parameters.Add(new ValueLookupParameter<IntValue>("MaximumIterations", "The maximum number of generations which should be processed."));
    98104      Parameters.Add(new ValueLookupParameter<IntValue>("TabuTenure", "The length of the tabu list, and also means the number of iterations a move is kept tabu"));
    99      
     105
    100106      Parameters.Add(new ValueLookupParameter<IOperator>("MoveGenerator", "The operator that generates the moves."));
    101107      Parameters.Add(new ValueLookupParameter<IOperator>("MoveMaker", "The operator that performs a move and updates the quality."));
     
    192198      bestAverageWorstMoveQualityCalculator.QualityParameter.ActualName = MoveQualityParameter.Name;
    193199      bestAverageWorstMoveQualityCalculator.WorstQualityParameter.ActualName = "Worst Move Quality";
    194      
     200
    195201      valuesCollector.CollectedValues.Add(new LookupParameter<DoubleValue>("Best Move Quality"));
    196202      valuesCollector.CollectedValues.Add(new LookupParameter<DoubleValue>("Average Move Quality"));
Note: See TracChangeset for help on using the changeset viewer.