Class FeasibilityRatio

java.lang.Object
org.moeaframework.analysis.FeasibilityRatio

public class FeasibilityRatio extends Object
Computes the feasibility ratio of a given problem, which takes a random sampling of solutions and computes the percentage that are feasible.

References:

  1. R. Tanabe and A. Oyama. "A note on constrained multi-objective optimization benchmark problems." 2017 IEEE Congress on Evolutionary Computation (CEC), Donostia, Spain, 2017, pp. 1127-1134.
  • Constructor Details

    • FeasibilityRatio

      public FeasibilityRatio(int samples)
      Constructs the class to compute the feasibility ratio.
      Parameters:
      samples - the number of random samples
  • Method Details

    • calculate

      public double calculate(Problem problem)
      Calculates the feasibility ratio of the given problem.
      Parameters:
      problem - the problem
      Returns:
      the feasibility ratio
    • calculate

      public static double calculate(Problem problem, int samples)
      Calculates the feasibility ratio of the given problem.
      Parameters:
      problem - the problem
      samples - the number of random samples
      Returns:
      the feasibility ratio