Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/28/11 14:16:21 (13 years ago)
Author:
svonolfe
Message:

Merged changes from trunk (#1561) into branch (#1177)

File:
1 edited

Legend:

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

    r5127 r6607  
    7474         
    7575            string resultName = evaluatorParameter.ActualName;
    76             if (!this.Parameters.Exists(p => p.Name == resultName)) {
     76            if (!this.Parameters.ContainsKey(resultName)) {
    7777              ILookupParameter resultParameter = new LookupParameter<IItem>(resultName);
    7878              resultParameter.ExecutionContext = ExecutionContext;
     
    8282
    8383            string moveResultName = VRPMoveEvaluator.MovePrefix + resultName;
    84             if (!this.Parameters.Exists(p => p.Name == moveResultName)) {
     84            if (!this.Parameters.ContainsKey(moveResultName)) {
    8585              ILookupParameter moveResultParameter = new LookupParameter<IItem>(moveResultName);
    8686              moveResultParameter.ExecutionContext = ExecutionContext;
     
    9191            ILookupParameter result = Parameters[resultName] as ILookupParameter;
    9292            ILookupParameter moveResult = Parameters[moveResultName] as ILookupParameter;
    93             result.ActualValue = moveResult.ActualValue.Clone() as IItem;
     93            result.ActualValue = moveResult.ActualValue;
    9494          }
    9595        }
Note: See TracChangeset for help on using the changeset viewer.