Interface IPProblem

    • Method Detail

      • getIntegerIndices

        int[] getIntegerIndices()
        Get the indices of the integral variables.
        Returns:
        the integral variable indices
      • getNonIntegralIndices

        int[] getNonIntegralIndices​(double[] x)
        Check which elements in x do not satisfy the integral constraints. The indices count from 1.
        Parameters:
        x - an argument to the objective function
        Returns:
        the set of indices of values in x that do not satisfy the integral constraints. An int[] of length 0 indicates that all integral variables in x are integers.
      • epsilon

        double epsilon()
        Get the threshold to check whether a variable is an integer.
        Returns:
        the precision parameter: when a number |x| ≤ ε, it is considered 0