Changeset 6177 for branches/Scheduling/HeuristicLab.Problems.Scheduling/3.3/Encodings/JobSequenceMatrix/Manipulators/JSMManipulator.cs
- Timestamp:
- 05/10/11 17:25:35 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Scheduling/HeuristicLab.Problems.Scheduling/3.3/Encodings/JobSequenceMatrix/Manipulators/JSMManipulator.cs
r6121 r6177 32 32 [Item("AlbaManipulator", "An operator which manipulates a VRP representation.")] 33 33 [StorableClass] 34 public abstract class JSMManipulator : JSSPManipulator, IStochasticOperator, IJSMOperator { 35 public ILookupParameter<IRandom> RandomParameter { 36 get { return (LookupParameter<IRandom>)Parameters["Random"]; } 37 } 38 34 public abstract class JSMManipulator : JSSPManipulator, IJSMOperator { 39 35 [StorableConstructor] 40 36 protected JSMManipulator(bool deserializing) : base(deserializing) { } … … 42 38 public JSMManipulator() 43 39 : base() { 44 Parameters.Add(new LookupParameter<IRandom>("Random", "The pseudo random number generator which should be used for stochastic manipulation operators."));45 40 } 46 41 … … 49 44 50 45 public override IOperation Apply() { 51 JSSPEncoding solution = SchedulingSolutionParameter.ActualValue;46 IJSSPEncoding solution = SchedulingSolutionParameter.ActualValue; 52 47 53 48 SchedulingSolutionParameter.ActualValue = Manipulate(RandomParameter.ActualValue, solution as JSMEncoding);
Note: See TracChangeset
for help on using the changeset viewer.