Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/04/20 07:06:39 (4 years ago)
Author:
abeham
Message:

#2521: working on VRP

Location:
branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Crossovers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Crossovers/PotvinCrossover.cs

    r17698 r17712  
    2121
    2222using System.Collections.Generic;
     23using HEAL.Attic;
    2324using HeuristicLab.Common;
    2425using HeuristicLab.Core;
     
    2627using HeuristicLab.Optimization;
    2728using HeuristicLab.Parameters;
    28 using HEAL.Attic;
    2929using HeuristicLab.Problems.VehicleRouting.Encodings.General;
    3030using HeuristicLab.Problems.VehicleRouting.Interfaces;
     
    134134        solution.Tours.Remove(tour);
    135135      }
    136 
    137       if (newTour.Stops.Count > 0 && !allowInfeasible && !instance.TourFeasible(newTour, solution))
     136      var tourEval = instance.EvaluateTour(newTour, solution);
     137      if (newTour.Stops.Count > 0 && !allowInfeasible && !tourEval.IsFeasible)
    138138        return false;
    139139
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Crossovers/PotvinInsertionBasedCrossover.cs

    r17698 r17712  
    2020#endregion
    2121
     22using System;
     23using System.Collections.Generic;
     24using HEAL.Attic;
    2225using HeuristicLab.Common;
    2326using HeuristicLab.Core;
    24 using HEAL.Attic;
    25 using System.Collections.Generic;
    2627using HeuristicLab.Data;
    27 using System;
    2828using HeuristicLab.Parameters;
     29using HeuristicLab.Problems.VehicleRouting.Interfaces;
    2930using HeuristicLab.Problems.VehicleRouting.ProblemInstances;
    30 using HeuristicLab.Problems.VehicleRouting.Interfaces;
    3131
    3232namespace HeuristicLab.Problems.VehicleRouting.Encodings.Potvin {
     
    165165      double minDetour = 0;
    166166      VRPEvaluation eval = ProblemInstance.EvaluateTour(tour, individual);
    167       bool originalFeasible = ProblemInstance.Feasible(eval);
    168167
    169168      for (int i = 0; i <= tour.Stops.Count; i++) {
Note: See TracChangeset for help on using the changeset viewer.