Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/24/20 00:58:42 (4 years ago)
Author:
abeham
Message:

#2521: working on VRP (WIP)

Location:
branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/MultiVRPMoveOperator/MultiVRPMoveGenerator.cs

    r17226 r17698  
    4949    }
    5050
    51     public ILookupParameter<IVRPEncoding> VRPToursParameter {
    52       get { return (ILookupParameter<IVRPEncoding>)Parameters["VRPTours"]; }
     51    public ILookupParameter<IVRPEncodedSolution> VRPToursParameter {
     52      get { return (ILookupParameter<IVRPEncodedSolution>)Parameters["VRPTours"]; }
    5353    }
    5454
     
    8686      Parameters.Add(new LookupParameter<IVRPProblemInstance>("ProblemInstance", "The VRP problem instance"));
    8787
    88       Parameters.Add(new LookupParameter<IVRPEncoding>("VRPTours", "The VRP tours."));
     88      Parameters.Add(new LookupParameter<IVRPEncodedSolution>("VRPTours", "The VRP tours."));
    8989      Parameters.Add(new LookupParameter<IVRPMove>("VRPMove", "The generated moves."));
    9090    }
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/MultiVRPMoveOperator/MultiVRPMoveTabuChecker.cs

    r17226 r17698  
    3838    }
    3939
    40     public ILookupParameter<IVRPEncoding> VRPToursParameter {
    41       get { return (ILookupParameter<IVRPEncoding>)Parameters["VRPTours"]; }
     40    public ILookupParameter<IVRPEncodedSolution> VRPToursParameter {
     41      get { return (ILookupParameter<IVRPEncodedSolution>)Parameters["VRPTours"]; }
    4242    }
    4343    public ILookupParameter<IVRPProblemInstance> ProblemInstanceParameter {
     
    7272      : base() {
    7373      Parameters.Add(new LookupParameter<IVRPMove>("VRPMove", "The move."));
    74       Parameters.Add(new LookupParameter<IVRPEncoding>("VRPTours", "The VRP tours considered in the move."));
     74      Parameters.Add(new LookupParameter<IVRPEncodedSolution>("VRPTours", "The VRP tours considered in the move."));
    7575      Parameters.Add(new LookupParameter<IVRPProblemInstance>("ProblemInstance", "The VRP problem instance"));
    7676
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/MultiVRPMoveOperator/MultiVRPMoveTabuMaker.cs

    r17226 r17698  
    5252      get { return (IValueLookupParameter<BoolValue>)Parameters["Maximization"]; }
    5353    }
    54     public ILookupParameter<IVRPEncoding> VRPToursParameter {
    55       get { return (ILookupParameter<IVRPEncoding>)Parameters["VRPTours"]; }
     54    public ILookupParameter<IVRPEncodedSolution> VRPToursParameter {
     55      get { return (ILookupParameter<IVRPEncodedSolution>)Parameters["VRPTours"]; }
    5656    }
    5757    public ILookupParameter<IVRPProblemInstance> ProblemInstanceParameter {
     
    7171      Parameters.Add(new ValueLookupParameter<BoolValue>("Maximization", "True if the problem is a maximization problem, else if it is a minimization problem."));
    7272
    73       Parameters.Add(new LookupParameter<IVRPEncoding>("VRPTours", "The VRP tours considered in the move."));
     73      Parameters.Add(new LookupParameter<IVRPEncodedSolution>("VRPTours", "The VRP tours considered in the move."));
    7474      Parameters.Add(new LookupParameter<IVRPProblemInstance>("ProblemInstance", "The VRP problem instance"));
    7575    }
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/VRPMoveEvaluator.cs

    r17226 r17698  
    5959
    6060    //helper method to evaluate an updated individual
    61     protected void UpdateEvaluation(IVRPEncoding updatedTours) {
     61    protected void UpdateEvaluation(IVRPEncodedSolution updatedTours) {
    6262      IVRPEvaluator evaluator = ProblemInstance.MoveEvaluator;
    6363
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Moves/VRPMoveOperator.cs

    r17226 r17698  
    3030  [StorableType("B2A37CCE-3EF6-4648-8A9B-2BCBD4EC93F1")]
    3131  public abstract class VRPMoveOperator : VRPOperator, IVRPMoveOperator {
    32     public ILookupParameter<IVRPEncoding> VRPToursParameter {
    33       get { return (ILookupParameter<IVRPEncoding>)Parameters["VRPTours"]; }
     32    public ILookupParameter<IVRPEncodedSolution> VRPToursParameter {
     33      get { return (ILookupParameter<IVRPEncodedSolution>)Parameters["VRPTours"]; }
    3434    }
    3535
     
    4040
    4141    public VRPMoveOperator() {
    42       Parameters.Add(new LookupParameter<IVRPEncoding>("VRPTours", "The VRP tours considered in the move."));
     42      Parameters.Add(new LookupParameter<IVRPEncodedSolution>("VRPTours", "The VRP tours considered in the move."));
    4343    }
    4444
Note: See TracChangeset for help on using the changeset viewer.