Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/22/12 09:53:07 (13 years ago)
Author:
svonolfe
Message:

Fixed naming of moves (#1177)

Location:
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Alba/Creators
Files:
1 deleted
1 edited

Legend:

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

    r7543 r7865  
    3333  [Item("RandomCreator", "Creates a randomly initialized VRP solution.")]
    3434  [StorableClass]
    35   public sealed class RandomCreator : DefaultRepresentationCreator, IStochasticOperator {
     35  public sealed class RandomCreator : AlbaCreator, IStochasticOperator {
    3636    #region IStochasticOperator Members
    3737    public ILookupParameter<IRandom> RandomParameter {
     
    5656    }
    5757
    58     protected override List<int> CreateSolution() {
     58    private List<int> CreateSolution() {
    5959      int cities = ProblemInstance.Cities.Value;
    6060      int vehicles = ProblemInstance.Vehicles.Value;
     
    8888      return new List<int>(perm);
    8989    }
     90
     91    public override IOperation Apply() {
     92      //choose default encoding here
     93      VRPToursParameter.ActualValue = AlbaEncoding.ConvertFrom(CreateSolution(), ProblemInstance);
     94
     95      return base.Apply();
     96    }
    9097  }
    9198}
Note: See TracChangeset for help on using the changeset viewer.