Changeset 17610 for branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/MultiObjectiveProblem.cs
- Timestamp:
- 06/19/20 14:26:41 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/MultiObjectiveProblem.cs
r17567 r17610 38 38 where TEncoding : class, IEncoding<TEncodedSolution> 39 39 where TEncodedSolution : class, IEncodedSolution { 40 #region Parameter names40 #region Parameter names 41 41 public const string BestKnownFrontParameterName = "BestKnownFront"; 42 42 public const string ReferencePointParameterName = "ReferencePoint"; 43 43 #endregion 44 44 45 #region Parameter properties45 #region Parameter properties 46 46 [Storable] public IValueParameter<BoolArray> MaximizationParameter { get; } 47 47 public IValueParameter<DoubleMatrix> BestKnownFrontParameter { … … 63 63 } 64 64 65 protected MultiObjectiveProblem() : base() {66 MaximizationParameter = new ValueParameter<BoolArray>("Maximization", "The dimensions correspond to the different objectives: False if the objective should be minimized, true if it should be maximized..", new BoolArray(new bool[] { }, @readonly: true));67 Parameters.Add(MaximizationParameter);68 Parameters.Add(new OptionalValueParameter<DoubleMatrix>(BestKnownFrontParameterName, "A double matrix representing the best known qualites for this problem (aka points on the Pareto front). Points are to be given in a row-wise fashion."));69 Parameters.Add(new OptionalValueParameter<DoubleArray>(ReferencePointParameterName, "The refrence point for hypervolume calculations on this problem"));70 Operators.Add(Evaluator);71 Operators.Add(new MultiObjectiveAnalyzer<TEncodedSolution>());72 ParameterizeOperators();73 }74 75 65 protected MultiObjectiveProblem(TEncoding encoding) : base(encoding) { 76 66 MaximizationParameter = new ValueParameter<BoolArray>("Maximization", "The dimensions correspond to the different objectives: False if the objective should be minimized, true if it should be maximized..", new BoolArray(new bool[] { }, @readonly: true)); 77 67 Parameters.Add(MaximizationParameter); 78 68 Parameters.Add(new OptionalValueParameter<DoubleMatrix>(BestKnownFrontParameterName, "A double matrix representing the best known qualites for this problem (aka points on the Pareto front). Points are to be given in a row-wise fashion.")); 79 Parameters.Add(new OptionalValueParameter<DoubleArray>(ReferencePointParameterName, "The ref rence point for hypervolume calculations on this problem"));69 Parameters.Add(new OptionalValueParameter<DoubleArray>(ReferencePointParameterName, "The reference point for hypervolume calculations on this problem")); 80 70 Operators.Add(Evaluator); 81 71 Operators.Add(new MultiObjectiveAnalyzer<TEncodedSolution>());
Note: See TracChangeset
for help on using the changeset viewer.