Changeset 8053 for trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/SingleDepotVRP/SingleDepotVRPEvaluator.cs
- Timestamp:
- 06/19/12 13:17:29 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/SingleDepotVRP/SingleDepotVRPEvaluator.cs
r7276 r8053 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 0Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 20 20 #endregion 21 21 22 using System; 23 using System.Collections.Generic; 24 using System.Linq; 25 using System.Text; 22 using HeuristicLab.Common; 23 using HeuristicLab.Core; 24 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 25 using HeuristicLab.Problems.VehicleRouting.Interfaces; 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;28 using HeuristicLab.Core;29 using HeuristicLab.Parameters;30 using HeuristicLab.Data;31 using HeuristicLab.Optimization;32 using HeuristicLab.PluginInfrastructure;33 using HeuristicLab.Problems.VehicleRouting.Variants;34 using HeuristicLab.Problems.VehicleRouting.Encodings;35 using HeuristicLab.Common;36 26 37 27 … … 39 29 [Item("SingleDepotVRPEvaluator", "Represents a single depot VRP evaluator.")] 40 30 [StorableClass] 41 public class SingleDepotVRPEvaluator : VRPEvaluator {31 public class SingleDepotVRPEvaluator : VRPEvaluator { 42 32 protected override void EvaluateTour(VRPEvaluation eval, IVRPProblemInstance instance, Tour tour, IVRPEncoding solution) { 43 33 TourInsertionInfo tourInfo = new TourInsertionInfo(solution.GetVehicleAssignment(solution.GetTourIndex(tour))); 44 34 eval.InsertionInfo.AddTourInsertionInfo(tourInfo); 45 35 46 36 double distance = 0.0; 47 37 double quality = 0.0; … … 79 69 out bool feasible) { 80 70 StopInsertionInfo insertionInfo = tourInsertionInfo.GetStopInsertionInfo(index); 81 71 82 72 double costs = 0; 83 73 feasible = true; … … 92 82 return costs; 93 83 } 94 84 95 85 [StorableConstructor] 96 86 protected SingleDepotVRPEvaluator(bool deserializing) : base(deserializing) { }
Note: See TracChangeset
for help on using the changeset viewer.