- Timestamp:
- 11/20/14 15:12:27 (10 years ago)
- Location:
- branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Operators
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Operators/MultiObjectiveAnalyzer.cs
r11484 r11559 20 20 } 21 21 22 public ILookupParameter< Encoding> EncodingParameter {23 get { return (ILookupParameter< Encoding>)Parameters["Encoding"]; }22 public ILookupParameter<IEncoding> EncodingParameter { 23 get { return (ILookupParameter<IEncoding>)Parameters["Encoding"]; } 24 24 } 25 25 … … 38 38 Parameters.Add(new LookupParameter<IRandom>("Random", "The random number generator to use.")); 39 39 Parameters.Add(new LookupParameter<IMultiObjectiveProblemDefinition>("ProblemDefinition", "The host that holds the problem definition.")); 40 Parameters.Add(new LookupParameter< Encoding>("Encoding", "An item that holds the problem's encoding."));40 Parameters.Add(new LookupParameter<IEncoding>("Encoding", "An item that holds the problem's encoding.")); 41 41 Parameters.Add(new ScopeTreeLookupParameter<DoubleArray>("Qualities", "The qualities of the parameter vector.")); 42 42 Parameters.Add(new LookupParameter<ResultCollection>("Results", "The results collection to write to.")); -
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Operators/MultiObjectiveEvaluator.cs
r11484 r11559 42 42 } 43 43 44 public ILookupParameter< Encoding> EncodingParameter {45 get { return (ILookupParameter< Encoding>)Parameters["Encoding"]; }44 public ILookupParameter<IEncoding> EncodingParameter { 45 get { return (ILookupParameter<IEncoding>)Parameters["Encoding"]; } 46 46 } 47 47 … … 56 56 Parameters.Add(new LookupParameter<IRandom>("Random", "The random number generator to use.")); 57 57 Parameters.Add(new LookupParameter<IMultiObjectiveProblemDefinition>("ProblemDefinition", "The host that holds the problem definition.")); 58 Parameters.Add(new LookupParameter< Encoding>("Encoding", "An item that holds the problem's encoding."));58 Parameters.Add(new LookupParameter<IEncoding>("Encoding", "An item that holds the problem's encoding.")); 59 59 Parameters.Add(new LookupParameter<DoubleArray>("Qualities", "The qualities of the parameter vector.")); 60 60 } -
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Operators/SingleObjectiveAnalyzer.cs
r11484 r11559 20 20 } 21 21 22 public ILookupParameter< Encoding> EncodingParameter {23 get { return (ILookupParameter< Encoding>)Parameters["Encoding"]; }22 public ILookupParameter<IEncoding> EncodingParameter { 23 get { return (ILookupParameter<IEncoding>)Parameters["Encoding"]; } 24 24 } 25 25 … … 38 38 Parameters.Add(new LookupParameter<IRandom>("Random", "The random number generator to use.")); 39 39 Parameters.Add(new LookupParameter<ISingleObjectiveProblemDefinition>("ProblemDefinition", "The host that holds the problem definition.")); 40 Parameters.Add(new LookupParameter< Encoding>("Encoding", "An item that holds the problem's encoding."));40 Parameters.Add(new LookupParameter<IEncoding>("Encoding", "An item that holds the problem's encoding.")); 41 41 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The quality of the parameter vector.")); 42 42 Parameters.Add(new LookupParameter<ResultCollection>("Results", "The results collection to write to.")); -
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Operators/SingleObjectiveEvaluator.cs
r11484 r11559 42 42 } 43 43 44 public ILookupParameter< Encoding> EncodingParameter {45 get { return (ILookupParameter< Encoding>)Parameters["Encoding"]; }44 public ILookupParameter<IEncoding> EncodingParameter { 45 get { return (ILookupParameter<IEncoding>)Parameters["Encoding"]; } 46 46 } 47 47 … … 56 56 Parameters.Add(new LookupParameter<IRandom>("Random", "The random number generator to use.")); 57 57 Parameters.Add(new LookupParameter<ISingleObjectiveProblemDefinition>("ProblemDefinition", "The host that holds the problem definition.")); 58 Parameters.Add(new LookupParameter< Encoding>("Encoding", "An item that holds the problem's encoding."));58 Parameters.Add(new LookupParameter<IEncoding>("Encoding", "An item that holds the problem's encoding.")); 59 59 Parameters.Add(new LookupParameter<DoubleValue>("Quality", "The quality of the parameter vector.")); 60 60 } -
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Operators/SingleObjectiveImprover.cs
r11484 r11559 25 25 } 26 26 27 public ILookupParameter< Encoding> EncodingParameter {28 get { return (ILookupParameter< Encoding>)Parameters["Encoding"]; }27 public ILookupParameter<IEncoding> EncodingParameter { 28 get { return (ILookupParameter<IEncoding>)Parameters["Encoding"]; } 29 29 } 30 30 … … 55 55 Parameters.Add(new LookupParameter<IRandom>("Random", "The random number generator to use.")); 56 56 Parameters.Add(new LookupParameter<ISingleObjectiveProblemDefinition>("ProblemDefinition", "The host that holds the problem definition.")); 57 Parameters.Add(new LookupParameter< Encoding>("Encoding", "An item that holds the problem's encoding."));57 Parameters.Add(new LookupParameter<IEncoding>("Encoding", "An item that holds the problem's encoding.")); 58 58 Parameters.Add(new LookupParameter<DoubleValue>("Quality", "The quality of the parameter vector.")); 59 59 Parameters.Add(new LookupParameter<BoolValue>("Maximization", "Whether the problem should be minimized or maximized.")); -
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Operators/SingleObjectiveMoveEvaluator.cs
r11484 r11559 42 42 } 43 43 44 public ILookupParameter< Encoding> EncodingParameter {45 get { return (ILookupParameter< Encoding>)Parameters["Encoding"]; }44 public ILookupParameter<IEncoding> EncodingParameter { 45 get { return (ILookupParameter<IEncoding>)Parameters["Encoding"]; } 46 46 } 47 47 … … 60 60 Parameters.Add(new LookupParameter<IRandom>("Random", "The random number generator to use.")); 61 61 Parameters.Add(new LookupParameter<ISingleObjectiveProblemDefinition>("ProblemDefinition", "The host that holds the problem definition.")); 62 Parameters.Add(new LookupParameter< Encoding>("Encoding", "An item that holds the problem's encoding."));62 Parameters.Add(new LookupParameter<IEncoding>("Encoding", "An item that holds the problem's encoding.")); 63 63 Parameters.Add(new LookupParameter<DoubleValue>("Quality", "The quality of the parameter vector.")); 64 64 Parameters.Add(new LookupParameter<DoubleValue>("MoveQuality", "The quality of the move.")); -
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Operators/SingleObjectiveMoveGenerator.cs
r11484 r11559 48 48 } 49 49 50 public ILookupParameter< Encoding> EncodingParameter {51 get { return (ILookupParameter< Encoding>)Parameters["Encoding"]; }50 public ILookupParameter<IEncoding> EncodingParameter { 51 get { return (ILookupParameter<IEncoding>)Parameters["Encoding"]; } 52 52 } 53 53 … … 60 60 Parameters.Add(new ValueLookupParameter<IntValue>("SampleSize", "The number of moves to sample.")); 61 61 Parameters.Add(new LookupParameter<ISingleObjectiveProblemDefinition>("ProblemDefinition", "The host that holds the problem definition.")); 62 Parameters.Add(new LookupParameter< Encoding>("Encoding", "An item that holds the problem's encoding."));62 Parameters.Add(new LookupParameter<IEncoding>("Encoding", "An item that holds the problem's encoding.")); 63 63 } 64 64 -
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Operators/SingleObjectiveMoveMaker.cs
r11484 r11559 33 33 [StorableClass] 34 34 public class SingleObjectiveMoveMaker : InstrumentedOperator, ISingleObjectiveMoveOperator, IMoveMaker { 35 public ILookupParameter< Encoding> EncodingParameter {36 get { return (ILookupParameter< Encoding>)Parameters["Encoding"]; }35 public ILookupParameter<IEncoding> EncodingParameter { 36 get { return (ILookupParameter<IEncoding>)Parameters["Encoding"]; } 37 37 } 38 38 … … 49 49 protected SingleObjectiveMoveMaker(SingleObjectiveMoveMaker original, Cloner cloner) : base(original, cloner) { } 50 50 public SingleObjectiveMoveMaker() { 51 Parameters.Add(new LookupParameter< Encoding>("Encoding", "An item that holds the problem's encoding."));51 Parameters.Add(new LookupParameter<IEncoding>("Encoding", "An item that holds the problem's encoding.")); 52 52 Parameters.Add(new LookupParameter<DoubleValue>("Quality", "The quality of the parameter vector.")); 53 53 Parameters.Add(new LookupParameter<DoubleValue>("MoveQuality", "The quality of the move."));
Note: See TracChangeset
for help on using the changeset viewer.