Class ConstraintHandling

java.lang.Object
org.uma.jmetal.util.ConstraintHandling

public class ConstraintHandling
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    ConstraintHandling()  
  • Method Summary

    Modifier and Type Method Description
    static <S extends Solution<?>>
    double
    feasibilityRatio​(java.util.List<S> solutions)
    Returns the ratio of feasible solutions in a solution list
    static <S extends Solution<?>>
    boolean
    isFeasible​(S solution)  
    static <S extends Solution<?>>
    int
    numberOfViolatedConstraints​(S solution)
    Returns the number of constraints a solution violates.
    static <S extends Solution<?>>
    double
    overallConstraintViolationDegree​(S solution)
    Returns the overall constraint violation degree of a solution.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • isFeasible

      public static <S extends Solution<?>> boolean isFeasible​(S solution)
    • numberOfViolatedConstraints

      public static <S extends Solution<?>> int numberOfViolatedConstraints​(S solution)
      Returns the number of constraints a solution violates.
      Type Parameters:
      S -
      Parameters:
      solution -
      Returns:
    • overallConstraintViolationDegree

      public static <S extends Solution<?>> double overallConstraintViolationDegree​(S solution)
      Returns the overall constraint violation degree of a solution.
      Type Parameters:
      S -
      Parameters:
      solution -
      Returns:
    • feasibilityRatio

      public static <S extends Solution<?>> double feasibilityRatio​(java.util.List<S> solutions)
      Returns the ratio of feasible solutions in a solution list
      Parameters:
      solutions -
      Returns: