Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/29/11 15:40:01 (14 years ago)
Author:
svonolfe
Message:

Merged changes from trunk into branch (#1177)

Location:
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/MultiVRPMoveOperator/MultiVRPMoveEvaluator.cs

    r4752 r5867  
    5858      moveEvaluator.VRPMoveParameter.ActualName = VRPMoveParameter.Name;
    5959      IAtomicOperation op = this.ExecutionContext.CreateOperation(moveEvaluator);
    60       op.Operator.Execute((IExecutionContext)op);
     60      op.Operator.Execute((IExecutionContext)op, CancellationToken);
    6161    }
    6262  }
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/MultiVRPMoveOperator/MultiVRPMoveMaker.cs

    r4752 r5867  
    6060      moveMaker.VRPMoveParameter.ActualName = VRPMoveParameter.Name;
    6161      IAtomicOperation op = this.ExecutionContext.CreateOperation(moveMaker);
    62       op.Operator.Execute((IExecutionContext)op);
     62      op.Operator.Execute((IExecutionContext)op, CancellationToken);
    6363    }
    6464  }
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/VRPMoveEvaluator.cs

    r5127 r5867  
    6464    //helper method to evaluate an updated individual
    6565    protected void UpdateEvaluation(IVRPEncoding updatedTours) {
    66       IVRPEvaluator evaluator = ProblemInstance.EvaluatorParameter.Value.Clone() as IVRPEvaluator;
    67 
    68       Dictionary<IParameter, string> originalName =
    69         new Dictionary<IParameter, string>();
    70 
    71       foreach (IParameter parameter in evaluator.Parameters) {
    72         if (parameter is ILookupParameter
    73           && parameter != evaluator.ProblemInstanceParameter
    74           && parameter != evaluator.VRPToursParameter) {
    75             originalName[parameter] = (parameter as ILookupParameter).ActualName;
    76 
    77             (parameter as ILookupParameter).ActualName =
    78               MovePrefix +
    79               (parameter as ILookupParameter).ActualName;
    80         }
    81       }
     66      IVRPEvaluator evaluator = ProblemInstance.MoveEvaluator;
    8267
    8368      try {
     
    8671
    8772        IAtomicOperation op = this.ExecutionContext.CreateChildOperation(evaluator);
    88         op.Operator.Execute((IExecutionContext)op);
     73        op.Operator.Execute((IExecutionContext)op, CancellationToken);
    8974      }
    9075      finally {
    91         foreach (IParameter parameter in originalName.Keys) {
    92           (parameter as ILookupParameter).ActualName = originalName[parameter];
    93         }
    94 
    9576        this.ExecutionContext.Scope.Variables.Remove(evaluator.VRPToursParameter.ActualName);
    9677      }
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/TourEncoding.cs

    r5127 r5867  
    3434  public abstract class TourEncoding : Item, IVRPEncoding {
    3535    public override Image ItemImage {
    36       get { return HeuristicLab.Common.Resources.VS2008ImageLibrary.Class; }
     36      get { return HeuristicLab.Common.Resources.VSImageLibrary.Class; }
    3737    }
    3838   
Note: See TracChangeset for help on using the changeset viewer.