- Timestamp:
- 04/15/14 22:34:05 (11 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/SimSharp/HeuristicLab.Problems.Programmable/3.3/Operators/SingleObjectiveEvaluator.cs
r10753 r10754 31 31 32 32 namespace HeuristicLab.Problems.Programmable { 33 [Item("Si mOptSingleObjectiveEvaluator", "Evaluates a parameter vector as received from a SimOptRunner.")]33 [Item("Single-objective Evaluator", "Calls the script's Evaluate method to get the quality value of the parameter vector.")] 34 34 [StorableClass] 35 public class Si mOptSingleObjectiveEvaluator : SingleSuccessorOperator, ISingleObjectiveProgrammableProblemEvaluator, IStochasticOperator {35 public class SingleObjectiveEvaluator : SingleSuccessorOperator, ISingleObjectiveProgrammableProblemEvaluator, IStochasticOperator { 36 36 37 37 public ILookupParameter<IRandom> RandomParameter { … … 39 39 } 40 40 41 public ILookupParameter< ProgrammableProblemScript> ScriptParameter {42 get { return (ILookupParameter< ProgrammableProblemScript>)Parameters["Script"]; }41 public ILookupParameter<SingleObjectiveScript> ScriptParameter { 42 get { return (ILookupParameter<SingleObjectiveScript>)Parameters["Script"]; } 43 43 } 44 44 … … 52 52 53 53 [StorableConstructor] 54 protected Si mOptSingleObjectiveEvaluator(bool deserializing) : base(deserializing) { }55 protected Si mOptSingleObjectiveEvaluator(SimOptSingleObjectiveEvaluator original, Cloner cloner) : base(original, cloner) { }56 public Si mOptSingleObjectiveEvaluator() {54 protected SingleObjectiveEvaluator(bool deserializing) : base(deserializing) { } 55 protected SingleObjectiveEvaluator(SingleObjectiveEvaluator original, Cloner cloner) : base(original, cloner) { } 56 public SingleObjectiveEvaluator() { 57 57 Parameters.Add(new LookupParameter<IRandom>("Random", "The random number generator to use.")); 58 Parameters.Add(new LookupParameter< ProgrammableProblemScript>("Script", "The script that will execute the evaluation function and define the parameter vector."));58 Parameters.Add(new LookupParameter<SingleObjectiveScript>("Script", "The script that will execute the evaluation function and define the parameter vector.")); 59 59 Parameters.Add(new LookupParameter<ParameterVector>("ParameterVector", "The vector that holds the parameters.")); 60 60 Parameters.Add(new LookupParameter<DoubleValue>("Quality", "The quality of the parameter vector.")); … … 62 62 63 63 public override IDeepCloneable Clone(Cloner cloner) { 64 return new Si mOptSingleObjectiveEvaluator(this, cloner);64 return new SingleObjectiveEvaluator(this, cloner); 65 65 } 66 66
Note: See TracChangeset
for help on using the changeset viewer.