Changeset 11873 for stable/HeuristicLab.Encodings.RealVectorEncoding
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 11756,11758
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Encodings.RealVectorEncoding/3.3/Interfaces/IRealVectorMultiNeighborhoodShakingOperator.cs
r11170 r11873 21 21 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Data; 23 24 24 25 namespace HeuristicLab.Encodings.RealVectorEncoding { 25 26 public interface IRealVectorMultiNeighborhoodShakingOperator : IRealVectorOperator { 26 27 ILookupParameter<RealVector> RealVectorParameter { get; } 28 IValueLookupParameter<DoubleMatrix> BoundsParameter { get; } 27 29 } 28 30 } -
stable/HeuristicLab.Encodings.RealVectorEncoding/3.3/ShakingOperators/RealVectorShakingOperator.cs
r11170 r11873 25 25 using HeuristicLab.Common; 26 26 using HeuristicLab.Core; 27 using HeuristicLab.Data; 27 28 using HeuristicLab.Optimization; 28 29 using HeuristicLab.Optimization.Operators; … … 47 48 } 48 49 50 public IValueLookupParameter<DoubleMatrix> BoundsParameter { 51 get { return (IValueLookupParameter<DoubleMatrix>)Parameters["Bounds"]; } 52 } 53 54 49 55 [StorableConstructor] 50 56 protected RealVectorShakingOperator(bool deserializing) : base(deserializing) { } … … 57 63 Parameters.Add(new LookupParameter<RealVector>("RealVector", "The real vector to shake.")); 58 64 Parameters.Add(new LookupParameter<IRandom>("Random", "The random number generator that will be used for stochastic shaking operators.")); 65 Parameters.Add(new ValueLookupParameter<DoubleMatrix>("Bounds", "A 2 column matrix specifying the lower and upper bound for each dimension. If there are less rows than dimension the bounds vector is cycled.")); 59 66 foreach (IRealVectorManipulator shaker in ApplicationManager.Manager.GetInstances<IRealVectorManipulator>().OrderBy(x => x.Name)) 60 67 if (!(shaker is MultiRealVectorManipulator) 61 68 && !(shaker is ISelfAdaptiveManipulator)) Operators.Add(shaker); 69 } 70 71 [StorableHook(HookType.AfterDeserialization)] 72 private void AfterDeserialization() { 73 #region Backwards compatible code, remove with 3.4 74 if (!Parameters.ContainsKey("Bounds")) 75 Parameters.Add(new ValueLookupParameter<DoubleMatrix>("Bounds", "A 2 column matrix specifying the lower and upper bound for each dimension. If there are less rows than dimension the bounds vector is cycled.")); 76 #endregion 62 77 } 63 78
Note: See TracChangeset
for help on using the changeset viewer.