Changeset 13451 for branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/DTLZ2.cs
- Timestamp:
- 12/11/15 15:19:24 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Testfunctions/DTLZ2.cs
r13448 r13451 36 36 public override bool[] Maximization { 37 37 get { 38 bool[] res = new bool[actualSolutionSize]; 39 for(int i =0; i < res.Length; i++) res[i] = false; //TODO: diligent initialzation 40 return res; 38 return new bool[actualSolutionSize]; 41 39 } 42 40 } … … 48 46 } 49 47 50 public override int MaximumSolutionSize { //TODO ask Michael48 public override int MaximumSolutionSize { 51 49 get { 50 52 51 return int.MaxValue; 53 52 } … … 56 55 public override int MinimumProblemSize { 57 56 get { 58 return Math.Max(2, actualSolutionSize);57 return Math.Max(2, ActualSolutionSize); 59 58 } 60 59 } … … 82 81 83 82 private double[] Evaluate(RealVector r, int objectives) { 83 if (r.Length < objectives) { 84 throw new Exception("The dimensionality of the problem(ProblemSize) must be larger or equal than the dimensionality of the solution(SolutionSize) "); 85 } 86 84 87 double[] res = new double[objectives]; 85 88
Note: See TracChangeset
for help on using the changeset viewer.