Class GeneralConstraints

    • Constructor Detail

      • GeneralConstraints

        public GeneralConstraints​(Collection<RealScalarFunction> constraints)
        Construct an instance of constraints from a collection of real-valued functions.
        Parameters:
        constraints - the constraints
      • GeneralConstraints

        public GeneralConstraints​(RealScalarFunction... constraints)
        Construct an instance of constraints from an array of real-valued functions.
        Parameters:
        constraints - the constraints
    • Method Detail

      • dimension

        public int dimension()
        Description copied from interface: Constraints
        Get the number of variables.
        Specified by:
        dimension in interface Constraints
        Returns:
        the number of variables
      • size

        public int size()
        Description copied from interface: Constraints
        Get the number of constraints.
        Specified by:
        size in interface Constraints
        Returns:
        the number of constraints