Free cookie consent management tool by TermsFeed Policy Generator

Changeset 6787


Ignore:
Timestamp:
09/16/11 16:47:57 (13 years ago)
Author:
svonolfe
Message:

Fixed possible race condition in moves (#1177)

Location:
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Moves/PickupDelivery
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Moves/PickupDelivery/PDExchange/PotvinPDExchangeMove.cs

    r6773 r6787  
    2929using HeuristicLab.Problems.VehicleRouting.Interfaces;
    3030using HeuristicLab.Optimization;
     31using System;
    3132
    3233namespace HeuristicLab.Problems.VehicleRouting.Encodings.Potvin {
     
    8182    #region IVRPMove Members
    8283
     84    [ThreadStatic]
    8385    private static PotvinPDExchangeMoveEvaluator moveEvaluator;
    8486    public VRPMoveEvaluator GetMoveEvaluator() {
     
    8991    }
    9092
     93    [ThreadStatic]
    9194    private static PotvinPDExchangeMoveMaker moveMaker;
    9295    public VRPMoveMaker GetMoveMaker() {
     
    97100    }
    98101
     102    [ThreadStatic]
    99103    private static PotvinPDExchangeMoveTabuMaker tabuMaker;
    100104    public ITabuMaker GetTabuMaker() {
     
    105109    }
    106110
     111    [ThreadStatic]
    107112    private static PotvinPDExchangeTabuCriterion tabuChecker;
    108113    public ITabuChecker GetTabuChecker() {
     
    115120    }
    116121
     122    [ThreadStatic]
    117123    private static PotvinPDExchangeTabuCriterion softTabuChecker;
    118124    public ITabuChecker GetSoftTabuChecker() {
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Moves/PickupDelivery/PDRearrange/PotvinPDRearrangeMove.cs

    r6773 r6787  
    2929using HeuristicLab.Problems.VehicleRouting.Interfaces;
    3030using HeuristicLab.Optimization;
     31using System;
    3132
    3233namespace HeuristicLab.Problems.VehicleRouting.Encodings.Potvin {
     
    7172    #region IVRPMove Members
    7273
     74    [ThreadStatic]
    7375    private static PotvinPDRearrangeMoveEvaluator moveEvaluator;
    7476    public VRPMoveEvaluator GetMoveEvaluator() {
     
    7981    }
    8082
     83    [ThreadStatic]
    8184    private static PotvinPDRearrangeMoveMaker moveMaker;
    8285    public VRPMoveMaker GetMoveMaker() {
     
    8790    }
    8891
     92    [ThreadStatic]
    8993    private static PotvinPDRearrangeMoveTabuMaker tabuMaker;
    9094    public ITabuMaker GetTabuMaker() {
     
    9599    }
    96100
     101    [ThreadStatic]
    97102    private static PotvinPDRearrangeTabuCriterion tabuChecker;
    98103    public ITabuChecker GetTabuChecker() {
     
    105110    }
    106111
     112    [ThreadStatic]
    107113    private static PotvinPDRearrangeTabuCriterion softTabuChecker;
    108114    public ITabuChecker GetSoftTabuChecker() {
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Moves/PickupDelivery/PDShift/PotvinPDShiftMove.cs

    r6773 r6787  
    2929using HeuristicLab.Problems.VehicleRouting.Interfaces;
    3030using HeuristicLab.Optimization;
     31using System;
    3132
    3233namespace HeuristicLab.Problems.VehicleRouting.Encodings.Potvin {
     
    7677    #region IVRPMove Members
    7778
     79    [ThreadStatic]
    7880    private static PotvinPDShiftMoveEvaluator moveEvaluator;
    7981    public VRPMoveEvaluator GetMoveEvaluator() {
     
    8486    }
    8587
     88    [ThreadStatic]
    8689    private static PotvinPDShiftMoveMaker moveMaker;
    8790    public VRPMoveMaker GetMoveMaker() {
     
    9295    }
    9396
     97    [ThreadStatic]
    9498    private static PotvinPDShiftMoveTabuMaker tabuMaker;
    9599    public ITabuMaker GetTabuMaker() {
     
    100104    }
    101105
     106    [ThreadStatic]
    102107    private static PotvinPDShiftTabuCriterion tabuChecker;
    103108    public ITabuChecker GetTabuChecker() {
     
    110115    }
    111116
     117    [ThreadStatic]
    112118    private static PotvinPDShiftTabuCriterion softTabuChecker;
    113119    public ITabuChecker GetSoftTabuChecker() {
Note: See TracChangeset for help on using the changeset viewer.