- Timestamp:
- 05/22/12 09:53:07 (13 years ago)
- 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 33 33 [Item("RandomCreator", "Creates a randomly initialized VRP solution.")] 34 34 [StorableClass] 35 public sealed class RandomCreator : DefaultRepresentationCreator, IStochasticOperator {35 public sealed class RandomCreator : AlbaCreator, IStochasticOperator { 36 36 #region IStochasticOperator Members 37 37 public ILookupParameter<IRandom> RandomParameter { … … 56 56 } 57 57 58 pr otected override List<int> CreateSolution() {58 private List<int> CreateSolution() { 59 59 int cities = ProblemInstance.Cities.Value; 60 60 int vehicles = ProblemInstance.Vehicles.Value; … … 88 88 return new List<int>(perm); 89 89 } 90 91 public override IOperation Apply() { 92 //choose default encoding here 93 VRPToursParameter.ActualValue = AlbaEncoding.ConvertFrom(CreateSolution(), ProblemInstance); 94 95 return base.Apply(); 96 } 90 97 } 91 98 }
Note: See TracChangeset
for help on using the changeset viewer.