Changeset 11786 for branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/New/MultiObjectiveProgrammableProblem.cs
- Timestamp:
- 01/16/15 11:14:50 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/New/MultiObjectiveProgrammableProblem.cs
r11780 r11786 21 21 22 22 using System.Linq; 23 using HeuristicLab.Analysis;24 23 using HeuristicLab.Common; 25 24 using HeuristicLab.Core; … … 43 42 protected MultiObjectiveProgrammableProblem() 44 43 : base() { 45 Parameters.Add(new ValueParameter<BoolArray>("Maximization", "Set to false if the problem should be minimized.", new BoolArray(Maximization)));44 Parameters.Add(new ValueParameter<BoolArray>("Maximization", "Set to false if the problem should be minimized.", new BoolArray())); 46 45 47 46 Operators.Add(Evaluator); 48 Operators.Add(new BestScopeSolutionAnalyzer());49 47 Operators.Add(new MultiObjectiveAnalyzer()); 50 48 … … 61 59 public virtual void Analyze(Individual[] individuals, double[][] qualities, ResultCollection results) { } 62 60 61 protected override void OnEncodingChanged() { 62 base.OnEncodingChanged(); 63 Parameters["Maximization"].ActualValue = new BoolArray(Maximization); 64 } 63 65 64 66 protected override void OnEvaluatorChanged() { … … 67 69 } 68 70 69 protected override void ParameterizeOperators() { 70 base.ParameterizeOperators(); 71 private void ParameterizeOperators() { 71 72 foreach (var op in Operators.OfType<IMultiObjectiveEvaluationOperator>()) 72 73 op.EvaluateFunc = Evaluate;
Note: See TracChangeset
for help on using the changeset viewer.