- Timestamp:
- 03/07/11 14:23:26 (14 years ago)
- Location:
- branches/DataAnalysis Refactoring/HeuristicLab.Optimization/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis Refactoring/HeuristicLab.Optimization/3.3/HeuristicOptimizationProblem.cs
r5578 r5618 46 46 Parameters.Add(new ValueParameter<T>(EvaluatorParameterName, "The operator used to evaluate a solution.")); 47 47 Parameters.Add(new ValueParameter<U>(SolutionCreateParameterName, "The operator to create a solution.")); 48 RegisterEventHandlers(); 49 } 50 51 protected HeuristicOptimizationProblem(T evaluator, U solutionCreator) 52 : base() { 53 Parameters.Add(new ValueParameter<T>(EvaluatorParameterName, "The operator used to evaluate a solution.", evaluator)); 54 Parameters.Add(new ValueParameter<U>(SolutionCreateParameterName, "The operator to create a solution.", solutionCreator)); 48 55 RegisterEventHandlers(); 49 56 } -
branches/DataAnalysis Refactoring/HeuristicLab.Optimization/3.3/MultiObjectiveHeuristicOptimizationProblem.cs
r5578 r5618 42 42 } 43 43 44 protected MultiObjectiveHeuristicOptimizationProblem(T evaluator, U solutionCreator) 45 : base(evaluator, solutionCreator) { 46 Parameters.Add(new ValueParameter<BoolArray>(MaximizationParameterName, "Determines for each objective whether it should be maximized or minimized.")); 47 } 48 44 49 public ValueParameter<BoolArray> MaximizationParameter { 45 50 get { return (ValueParameter<BoolArray>)Parameters[MaximizationParameterName]; } -
branches/DataAnalysis Refactoring/HeuristicLab.Optimization/3.3/SingleObjectiveHeuristicOptimizationProblem.cs
r5578 r5618 40 40 protected SingleObjectiveHeuristicOptimizationProblem() 41 41 : base() { 42 Parameters.Add(new ValueParameter<BoolValue>(MaximizationParameterName, "Set to false if the problem should be minimized.")); 43 Parameters.Add(new ValueParameter<DoubleValue>(BestKnownQualityParameterName, "The quality of the best known solution of this problem.")); 42 Parameters.Add(new ValueParameter<BoolValue>(MaximizationParameterName, "Set to false if the problem should be minimized.", new BoolValue())); 43 Parameters.Add(new ValueParameter<DoubleValue>(BestKnownQualityParameterName, "The quality of the best known solution of this problem.", new DoubleValue())); 44 } 45 46 protected SingleObjectiveHeuristicOptimizationProblem(T evaluator, U solutionCreator) 47 : base(evaluator, solutionCreator) { 48 Parameters.Add(new ValueParameter<BoolValue>(MaximizationParameterName, "Set to false if the problem should be minimized.", new BoolValue())); 49 Parameters.Add(new ValueParameter<DoubleValue>(BestKnownQualityParameterName, "The quality of the best known solution of this problem.", new DoubleValue())); 44 50 } 45 51
Note: See TracChangeset
for help on using the changeset viewer.