- Timestamp:
- 08/04/10 16:11:59 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves/AlbaMoveOperator.cs
r4068 r4150 23 23 using HeuristicLab.Encodings.PermutationEncoding; 24 24 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 25 using HeuristicLab.Data; 26 using HeuristicLab.Parameters; 25 27 26 28 namespace HeuristicLab.Problems.VehicleRouting.Encodings.Alba { … … 28 30 [StorableClass] 29 31 public abstract class AlbaMoveOperator : VRPMoveOperator { 32 public ILookupParameter<IntValue> VehiclesParameter { 33 get { return (ILookupParameter<IntValue>)Parameters["Vehicles"]; } 34 } 35 36 public AlbaMoveOperator() 37 : base() { 38 Parameters.Add(new LookupParameter<IntValue>("Vehicles", "The vehicles count.")); 39 } 40 30 41 [Storable] 31 42 protected abstract IPermutationMoveOperator PermutationMoveOperatorParameter { get; set; } … … 34 45 IVRPEncoding solution = VRPSolutionParameter.ActualValue; 35 46 if (!(solution is AlbaEncoding)) { 36 VRPSolutionParameter.ActualValue = AlbaEncoding.ConvertFrom(solution );47 VRPSolutionParameter.ActualValue = AlbaEncoding.ConvertFrom(solution, VehiclesParameter.ActualValue.Value); 37 48 } 38 49
Note: See TracChangeset
for help on using the changeset viewer.