Changeset 14068 for branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/MultiObjectiveTestFunctionProblem.cs
- Timestamp:
- 07/14/16 14:33:15 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/MultiObjectiveTestFunctionProblem.cs
r14065 r14068 170 170 /// <param name="individual"></param> 171 171 /// <returns>a double array that holds the distances that describe how much every contraint is violated (0 is not violated). If the current TestFunction does not have constraints an array of length 0 is returned</returns> 172 public double[] checkContraints(RealVector individual) { 173 if (TestFunction is IConstrainedTestFunction) { 174 return ((IConstrainedTestFunction)TestFunction).CheckConstraints(individual, Objectives); 172 public double[] CheckContraints(RealVector individual) { 173 var constrainedTestFunction = (IConstrainedTestFunction)TestFunction; 174 if (constrainedTestFunction != null) { 175 return constrainedTestFunction.CheckConstraints(individual, Objectives); 175 176 } 176 177 return new double[0];
Note: See TracChangeset
for help on using the changeset viewer.