Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/03/12 10:11:07 (13 years ago)
Author:
abeham
Message:

#1614

  • fixed build
Location:
branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/Analyzers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/Analyzers/BestGQAPSolutionAnalyzer.cs

    r7438 r7444  
    9797      get { return (ILookupParameter<DoubleValue>)Parameters["BestKnownQuality"]; }
    9898    }
    99     public ILookupParameter<IntegerVector> BestKnownSolutionParameter {
    100       get { return (ILookupParameter<IntegerVector>)Parameters["BestKnownSolution"]; }
     99    public ILookupParameter<GQAPSolution> BestKnownSolutionParameter {
     100      get { return (ILookupParameter<GQAPSolution>)Parameters["BestKnownSolution"]; }
    101101    }
    102102    public ILookupParameter<GQAPAssignmentArchive> BestKnownSolutionsParameter {
     
    135135      Parameters.Add(new LookupParameter<StringArray>("LocationNames", GeneralizedQuadraticAssignmentProblem.LocationNamesDescription));
    136136      Parameters.Add(new LookupParameter<DoubleValue>("BestKnownQuality", GeneralizedQuadraticAssignmentProblem.BestKnownQualityDescription));
    137       Parameters.Add(new LookupParameter<IntegerVector>("BestKnownSolution", GeneralizedQuadraticAssignmentProblem.BestKnownSolutionDescription));
     137      Parameters.Add(new LookupParameter<GQAPSolution>("BestKnownSolution", GeneralizedQuadraticAssignmentProblem.BestKnownSolutionDescription));
    138138      Parameters.Add(new LookupParameter<GQAPAssignmentArchive>("BestKnownSolutions", GeneralizedQuadraticAssignmentProblem.BestKnownSolutionsDescription));
    139139      Parameters.Add(new LookupParameter<GQAPAssignment>("BestSolution", "The best GQAP solution found so far."));
     
    168168      if (bestKnownQuality == null || HasSolutionImproved(bestKnownQuality.Value, qualities[bestIndex].Value, maximization)) {
    169169        BestKnownQualityParameter.ActualValue = new DoubleValue(qualities[bestIndex].Value);
    170         BestKnownSolutionParameter.ActualValue = (IntegerVector)assignments[bestIndex].Clone();
     170        BestKnownSolutionParameter.ActualValue = new GQAPSolution((IntegerVector)assignments[bestIndex].Clone(), qualities[bestIndex], flowDistanceQualities[bestIndex], installationQualities[bestIndex], overbookedCapacities[bestIndex]);
    171171      }
    172172
  • branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/Analyzers/GQAPSolutionArchiveAnalyzer.cs

    r7438 r7444  
    4040    IDemandsAwareGQAPOperator, ICapacitiesAwareGQAPOperator, ITransportationCostsAwareGQAPOperator,
    4141    IOverbookedCapacityPenaltyAwareGQAPOperator, IEquipmentNamesAwareGQAPOperator, ILocationNamesAwareGQAPOperator,
    42     IBestKnownQualityAwareGQAPOperator, IBestKnownSolutionAwareGQAPOperator, IAnalyzer {
     42    IAnalyzer {
    4343
    4444    public bool EnabledByDefault {
     
    9191      get { return (ILookupParameter<StringArray>)Parameters["LocationNames"]; }
    9292    }
    93     public ILookupParameter<DoubleValue> BestKnownQualityParameter {
    94       get { return (ILookupParameter<DoubleValue>)Parameters["BestKnownQuality"]; }
    95     }
    96     public ILookupParameter<IntegerVector> BestKnownSolutionParameter {
    97       get { return (ILookupParameter<IntegerVector>)Parameters["BestKnownSolution"]; }
    98     }
    9993    public IValueLookupParameter<ResultCollection> ResultsParameter {
    10094      get { return (IValueLookupParameter<ResultCollection>)Parameters["Results"]; }
     
    124118      Parameters.Add(new LookupParameter<StringArray>("EquipmentNames", GeneralizedQuadraticAssignmentProblem.EquipmentNamesDescription));
    125119      Parameters.Add(new LookupParameter<StringArray>("LocationNames", GeneralizedQuadraticAssignmentProblem.LocationNamesDescription));
    126       Parameters.Add(new LookupParameter<DoubleValue>("BestKnownQuality", GeneralizedQuadraticAssignmentProblem.BestKnownQualityDescription));
    127       Parameters.Add(new LookupParameter<IntegerVector>("BestKnownSolution", GeneralizedQuadraticAssignmentProblem.BestKnownSolutionDescription));
    128120      Parameters.Add(new ValueLookupParameter<ResultCollection>("Results", "The result collection where the best GQAP solution should be stored."));
    129121    }
     
    146138      var results = ResultsParameter.ActualValue;
    147139      var maximization = MaximizationParameter.ActualValue.Value;
    148       var bestKnownQuality = BestKnownQualityParameter.ActualValue;
    149140
    150141      GQAPAssignmentArchive archive = results.ContainsKey("Solution Archive") ? results["Solution Archive"].Value as GQAPAssignmentArchive : null;
Note: See TracChangeset for help on using the changeset viewer.