Changeset 11996 for trunk/sources/HeuristicLab.Optimization/3.3/BasicProblems/MultiObjectiveBasicProblem.cs
- Timestamp:
- 02/12/15 21:49:06 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization/3.3/BasicProblems/MultiObjectiveBasicProblem.cs
r11970 r11996 41 41 protected MultiObjectiveBasicProblem() 42 42 : base() { 43 Parameters.Add(new ValueParameter<BoolArray>("Maximization", "Set to false if the problem should be minimized.", new BoolArray()));43 Parameters.Add(new ValueParameter<BoolArray>("Maximization", "Set to false if the problem should be minimized.", (BoolArray)new BoolArray(Maximization).AsReadOnly())); 44 44 45 45 Operators.Add(Evaluator); … … 57 57 public abstract double[] Evaluate(Individual individual, IRandom random); 58 58 public virtual void Analyze(Individual[] individuals, double[][] qualities, ResultCollection results, IRandom random) { } 59 60 protected override void OnEncodingChanged() {61 base.OnEncodingChanged();62 Parameters["Maximization"].ActualValue = new BoolArray(Maximization);63 }64 59 65 60 protected override void OnOperatorsChanged() {
Note: See TracChangeset
for help on using the changeset viewer.