Changeset 8003
- Timestamp:
- 06/14/12 09:37:26 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/VehicleRoutingProblem.cs
r7958 r8003 110 110 111 111 [Storable] 112 private List<I Operator> operators;113 114 public IEnumerable<I Operator> Operators {112 private List<IItem> operators; 113 114 public IEnumerable<IItem> Operators { 115 115 get { return operators; } 116 116 } … … 131 131 EvaluatorParameter.Hidden = true; 132 132 133 operators = new List<I Operator>();133 operators = new List<IItem>(); 134 134 135 135 InitializeRandomVRPInstance(); … … 147 147 private VehicleRoutingProblem(VehicleRoutingProblem original, Cloner cloner) 148 148 : base(original, cloner) { 149 this.operators = original.operators.Select(x => (I Operator)cloner.Clone(x)).ToList();149 this.operators = original.operators.Select(x => (IItem)cloner.Clone(x)).ToList(); 150 150 this.AttachEventHandlers(); 151 151 } … … 254 254 255 255 private void InitializeOperators() { 256 operators = new List<I Operator>();256 operators = new List<IItem>(); 257 257 258 258 if (ProblemInstance != null) { … … 267 267 private void ParameterizeSolutionCreator() { 268 268 if (SolutionCreator is IMultiVRPOperator) { 269 (SolutionCreator as IMultiVRPOperator).SetOperators(Operators );269 (SolutionCreator as IMultiVRPOperator).SetOperators(Operators.OfType<IOperator>()); 270 270 } 271 271 } … … 274 274 foreach (IOperator op in Operators) { 275 275 if (op is IMultiVRPOperator) { 276 (op as IMultiVRPOperator).SetOperators(Operators );276 (op as IMultiVRPOperator).SetOperators(Operators.OfType<IOperator>()); 277 277 } 278 278 }
Note: See TracChangeset
for help on using the changeset viewer.