Changeset 13988 for branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/IHR/IHR.cs
- Timestamp:
- 07/04/16 09:47:19 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/IHR/IHR.cs
r13936 r13988 30 30 public abstract class IHR : MultiObjectiveTestFunction { 31 31 32 33 32 public override IEnumerable<double[]> OptimalParetoFront(int objectives) { 34 33 if (objectives == 2) return PFStore.get(this.ItemName + ".2D"); … … 44 43 } 45 44 46 public override int MinimumSolutionLength 47 { 45 public override int MinimumSolutionLength { 48 46 get { return 2; } 49 47 } 50 public override int MaximumSolutionLength 51 { 48 public override int MaximumSolutionLength { 52 49 get { return int.MaxValue; } 53 50 } 54 51 55 56 public override int MinimumObjectives 57 { 52 public override int MinimumObjectives { 58 53 get { return 2; } 59 54 } 60 public override int MaximumObjectives 61 { 55 public override int MaximumObjectives { 62 56 get { return 2; } 63 57 } … … 93 87 protected double HF(double x, RealVector r) { 94 88 double ymax = 1; 95 return Math.Abs(r[0]) <= ymax ? x : 1 + Math.Abs(r[0]); //replace with maximum of first column of matrix used in Y(x)89 return Math.Abs(r[0]) <= ymax ? x : 1 + Math.Abs(r[0]); 96 90 } 97 91 protected double HG(double x) { … … 99 93 } 100 94 protected RealVector Y(RealVector x) { 101 return x; //replace with matrix*x95 return x; 102 96 } 103 97 }
Note: See TracChangeset
for help on using the changeset viewer.