Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/06/10 17:05:13 (14 years ago)
Author:
svonolfe
Message:

Worked on VRP operators (WIP) (#1177)

Location:
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings
Files:
18 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Alba/Creators/DefaultRepresentationCreator.cs

    r4363 r4365  
    4242    public override IOperation Apply() {
    4343      //choose default encoding here
    44       //VRPToursParameter.ActualValue = AlbaEncoding.ConvertFrom(CreateSolution());
     44      VRPToursParameter.ActualValue = AlbaEncoding.ConvertFrom(CreateSolution(), ProblemInstance);
    4545
    4646      return base.Apply();
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/VRPOperator.cs

    r4362 r4365  
    3434  [StorableClass]
    3535  public abstract class VRPOperator : SingleSuccessorOperator, IVRPOperator {
    36     protected LookupParameter<IVRPProblemInstance> ProblemInstanceParameter {
     36    public ILookupParameter<IVRPProblemInstance> ProblemInstanceParameter {
    3737      get { return (LookupParameter<IVRPProblemInstance>)Parameters["ProblemInstance"]; }
    3838    }
    3939
    40     protected IVRPProblemInstance ProblemInstance {
     40    public IVRPProblemInstance ProblemInstance {
    4141      get { return ProblemInstanceParameter.ActualValue; }
    4242    }
Note: See TracChangeset for help on using the changeset viewer.