- Timestamp:
- 01/16/15 09:41:09 (10 years ago)
- Location:
- branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/New
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/New/MultiObjectiveProgrammableProblem.cs
r11767 r11780 24 24 using HeuristicLab.Common; 25 25 using HeuristicLab.Core; 26 using HeuristicLab.Data; 26 27 using HeuristicLab.Optimization; 28 using HeuristicLab.Parameters; 27 29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 30 29 31 namespace HeuristicLab.Problems.Programmable { 30 32 [StorableClass] 31 public abstract class MultiObjectiveProgrammableProblem<TEncoding> : ProgrammableProblem<TEncoding, MultiObjectiveEvaluator>, IMultiObjective ProblemDefinition33 public abstract class MultiObjectiveProgrammableProblem<TEncoding> : ProgrammableProblem<TEncoding, MultiObjectiveEvaluator>, IMultiObjectiveHeuristicOptimizationProblem, IMultiObjectiveProblemDefinition 32 34 where TEncoding : class, IEncoding { 33 35 [StorableConstructor] … … 41 43 protected MultiObjectiveProgrammableProblem() 42 44 : base() { 45 Parameters.Add(new ValueParameter<BoolArray>("Maximization", "Set to false if the problem should be minimized.", new BoolArray(Maximization))); 43 46 44 47 Operators.Add(Evaluator); … … 72 75 } 73 76 77 78 #region IMultiObjectiveHeuristicOptimizationProblem Members 79 IParameter IMultiObjectiveHeuristicOptimizationProblem.MaximizationParameter { 80 get { return Parameters["Maximization"]; } 81 } 82 IMultiObjectiveEvaluator IMultiObjectiveHeuristicOptimizationProblem.Evaluator { 83 get { return Evaluator; } 84 } 85 #endregion 74 86 } 75 87 } -
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/New/SingleObjectiveProgrammableProblem.cs
r11753 r11780 44 44 protected SingleObjectiveProgrammableProblem() 45 45 : base() { 46 Parameters.Add(new FixedValueParameter<BoolValue>("Maximization", "Set to false if the problem should be minimized.", new BoolValue( )));46 Parameters.Add(new FixedValueParameter<BoolValue>("Maximization", "Set to false if the problem should be minimized.", new BoolValue(Maximization))); 47 47 Parameters.Add(new OptionalValueParameter<DoubleValue>("BestKnownQuality", "The quality of the best known solution of this problem.")); 48 48
Note: See TracChangeset
for help on using the changeset viewer.