Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/19/10 14:26:38 (14 years ago)
Author:
svonolfe
Message:

partly reverted r4851 (#1236)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Analyzers/BestVRPSolutionAnalyzer.cs

    r4851 r4852  
    8484      get { return (LookupParameter<DoubleValue>)Parameters["BestKnownQuality"]; }
    8585    }
    86     public LookupParameter<VRPSolution> BestKnownSolutionParameter {
    87       get { return (LookupParameter<VRPSolution>)Parameters["BestKnownSolution"]; }
     86    public LookupParameter<IVRPEncoding> BestKnownSolutionParameter {
     87      get { return (LookupParameter<IVRPEncoding>)Parameters["BestKnownSolution"]; }
    8888    }
    8989
     
    104104
    105105      Parameters.Add(new LookupParameter<DoubleValue>("BestKnownQuality", "The quality of the best known solution of this VRP instance."));
    106       Parameters.Add(new LookupParameter<VRPSolution>("BestKnownSolution", "The best known solution of this VRP instance."));
     106      Parameters.Add(new LookupParameter<IVRPEncoding>("BestKnownSolution", "The best known solution of this VRP instance."));
    107107
    108108      Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The qualities of the VRP solutions which should be analyzed."));
     
    127127      }
    128128      if (!Parameters.ContainsKey("BestKnownSolution")) {
    129         Parameters.Add(new LookupParameter<VRPSolution>("BestKnownSolution", "The best known solution of this VRP instance."));
     129        Parameters.Add(new LookupParameter<IVRPEncoding>("BestKnownSolution", "The best known solution of this VRP instance."));
    130130      }
    131131      #endregion
     
    185185          qualities[i].Value < bestKnownQuality.Value) {
    186186        BestKnownQualityParameter.ActualValue = new DoubleValue(qualities[i].Value);
    187         BestKnownSolutionParameter.ActualValue = (VRPSolution)solution.Clone();
     187        BestKnownSolutionParameter.ActualValue = (IVRPEncoding)best.Clone();
    188188      }
    189189
Note: See TracChangeset for help on using the changeset viewer.