Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/03/20 11:35:39 (4 years ago)
Author:
abeham
Message:

#2521: working on VRP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/VehicleRoutingProblem.cs

    r17706 r17709  
    9797
    9898    public override ISingleObjectiveEvaluationResult Evaluate(IVRPEncodedSolution solution, IRandom random, CancellationToken cancellationToken) {
    99       return new SingleObjectiveEvaluationResult(ProblemInstance.Evaluate(solution).Quality);
     99      return ProblemInstance.Evaluate(solution);
    100100    }
    101101
     
    150150
    151151    void ProblemInstanceParameter_ValueChanged(object sender, EventArgs e) {
    152       //InitializeOperators();
    153       AttachProblemInstanceEventHandlers();
    154 
    155       //OnOperatorsChanged();
     152      InitializeOperators();
     153      AttachProblemInstanceEventHandlers();
     154
     155      OnOperatorsChanged();
    156156    }
    157157
     
    169169      Operators.Add(new QualitySimilarityCalculator());
    170170      Operators.Add(new PopulationSimilarityAnalyzer(Operators.OfType<ISolutionSimilarityCalculator>()));
     171      Operators.AddRange(ProblemInstance.Operators.OfType<IAnalyzer>());
    171172    }
    172173
Note: See TracChangeset for help on using the changeset viewer.