Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/07/11 14:23:26 (14 years ago)
Author:
mkommend
Message:

#1418: Added symbolic data analysis problems.

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  
    4646      Parameters.Add(new ValueParameter<T>(EvaluatorParameterName, "The operator used to evaluate a solution."));
    4747      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));
    4855      RegisterEventHandlers();
    4956    }
  • branches/DataAnalysis Refactoring/HeuristicLab.Optimization/3.3/MultiObjectiveHeuristicOptimizationProblem.cs

    r5578 r5618  
    4242    }
    4343
     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
    4449    public ValueParameter<BoolArray> MaximizationParameter {
    4550      get { return (ValueParameter<BoolArray>)Parameters[MaximizationParameterName]; }
  • branches/DataAnalysis Refactoring/HeuristicLab.Optimization/3.3/SingleObjectiveHeuristicOptimizationProblem.cs

    r5578 r5618  
    4040    protected SingleObjectiveHeuristicOptimizationProblem()
    4141      : 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()));
    4450    }
    4551
Note: See TracChangeset for help on using the changeset viewer.