Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/24/20 00:58:42 (4 years ago)
Author:
abeham
Message:

#2521: working on VRP (WIP)

File:
1 edited

Legend:

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

    r17226 r17698  
    2323using System.Collections.Generic;
    2424using System.Linq;
     25using HEAL.Attic;
    2526using HeuristicLab.Common;
    2627using HeuristicLab.Core;
    2728using HeuristicLab.Data;
    2829using HeuristicLab.Parameters;
    29 using HEAL.Attic;
    3030using HeuristicLab.Problems.VehicleRouting.Encodings.General;
    3131using HeuristicLab.Problems.VehicleRouting.Interfaces;
     
    178178        return evaluator;
    179179      }
    180 
    181180      set {
    182181        lock (locker) {
     
    188187    }
    189188
    190     public virtual double GetDistance(int start, int end, IVRPEncoding solution) {
     189    public virtual double GetDistance(int start, int end, IVRPEncodedSolution solution) {
    191190      if (distanceMatrix == null && UseDistanceMatrix.Value) {
    192191        distanceMatrix = DistanceMatrix ?? CreateDistanceMatrix();
     
    197196    }
    198197
    199     public virtual double GetInsertionDistance(int start, int customer, int end, IVRPEncoding solution,
     198    public virtual double GetInsertionDistance(int start, int customer, int end, IVRPEncodedSolution solution,
    200199      out double startDistance, out double endDistance) {
    201200      double distance = GetDistance(start, end, solution);
     
    209208    }
    210209
    211     public bool Feasible(IVRPEncoding solution) {
     210    public bool Feasible(IVRPEncodedSolution solution) {
    212211      return evaluator.Feasible(
    213212        evaluator.Evaluate(
     
    215214    }
    216215
    217     public bool TourFeasible(Tour tour, IVRPEncoding solution) {
     216    public bool TourFeasible(Tour tour, IVRPEncodedSolution solution) {
    218217      return evaluator.Feasible(
    219218        evaluator.EvaluateTour(
     
    221220    }
    222221
    223     public VRPEvaluation Evaluate(IVRPEncoding solution) {
     222    public VRPEvaluation Evaluate(IVRPEncodedSolution solution) {
    224223      return evaluator.Evaluate(this, solution);
    225224    }
    226225
    227     public VRPEvaluation EvaluateTour(Tour tour, IVRPEncoding solution) {
     226    public VRPEvaluation EvaluateTour(Tour tour, IVRPEncodedSolution solution) {
    228227      return evaluator.EvaluateTour(this, tour, solution);
    229228    }
     
    233232    }
    234233
    235     public double GetInsertionCosts(VRPEvaluation eval, IVRPEncoding solution, int customer, int tour, int index, out bool feasible) {
     234    public double GetInsertionCosts(VRPEvaluation eval, IVRPEncodedSolution solution, int customer, int tour, int index, out bool feasible) {
    236235      return evaluator.GetInsertionCosts(this, solution, eval, customer, tour, index, out feasible);
    237236    }
Note: See TracChangeset for help on using the changeset viewer.