Changeset 10850 for branches/SimSharp/HeuristicLab.Problems.Programmable/3.3/Operators/ParameterVectorManipulator.cs
- Timestamp:
- 05/14/14 14:46:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SimSharp/HeuristicLab.Problems.Programmable/3.3/Operators/ParameterVectorManipulator.cs
r10753 r10850 22 22 using HeuristicLab.Common; 23 23 using HeuristicLab.Core; 24 using HeuristicLab.Encodings.BinaryVectorEncoding;25 using HeuristicLab.Encodings.IntegerVectorEncoding;26 using HeuristicLab.Encodings.PermutationEncoding;27 using HeuristicLab.Encodings.RealVectorEncoding;28 24 using HeuristicLab.Operators; 29 25 using HeuristicLab.Optimization; 30 using HeuristicLab.Parameters;31 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 32 27 33 28 namespace HeuristicLab.Problems.Programmable { 34 [Item("ParameterVector Manipulator", "Applies different manipulators to change a parameter vector.")]29 [Item("ParameterVector Manipulator", "Applies different manipulators to change a multi vector encoding.")] 35 30 [StorableClass] 36 31 public class ParameterVectorManipulator : InstrumentedOperator, IManipulator { 37 public ILookupParameter<BinaryVector> BinaryVectorParameter {38 get { return (ILookupParameter<BinaryVector>)Parameters["BinaryVector"]; }39 }40 41 public ILookupParameter<IntegerVector> IntegerVectorParameter {42 get { return (ILookupParameter<IntegerVector>)Parameters["IntegerVector"]; }43 }44 45 public ILookupParameter<RealVector> RealVectorParameter {46 get { return (ILookupParameter<RealVector>)Parameters["RealVector"]; }47 }48 49 public ILookupParameter<Permutation> PermutationParameter {50 get { return (ILookupParameter<Permutation>)Parameters["Permutation"]; }51 }52 32 53 33 [StorableConstructor] … … 56 36 : base(original, cloner) { } 57 37 public ParameterVectorManipulator() { 58 Parameters.Add(new LookupParameter<BinaryVector>("BinaryVector", "The binary vector that links into the parameter vector."));59 Parameters.Add(new LookupParameter<IntegerVector>("IntegerVector", "The integer vector that links into the parameter vector."));60 Parameters.Add(new LookupParameter<RealVector>("RealVector", "The real vector that links into the parameter vector."));61 Parameters.Add(new LookupParameter<Permutation>("Permutation", "The permutation that links into the parameter vector."));62 38 } 63 39
Note: See TracChangeset
for help on using the changeset viewer.