Uses of Class
com.google.ortools.linearsolver.MPConstraint
-
Packages that use MPConstraint Package Description com.google.ortools.linearsolver -
-
Uses of MPConstraint in com.google.ortools.linearsolver
Methods in com.google.ortools.linearsolver that return MPConstraint Modifier and Type Method Description MPConstraintMPSolver. constraint(int index)Returns the constraint at the given index.MPConstraint[]MPSolver. constraints()Returns the array of constraints handled by the MPSolver.
They are listed in the order in which they were created.MPConstraintMPSolver. lookupConstraintOrNull(java.lang.String constraint_name)Looks up a constraint by name, and returns nullptr if it does not exist.
The first call has a O(n) complexity, as the constraint name index is
lazily created upon first use.MPConstraintMPSolver. makeConstraint()Creates a constraint with -infinity and +infinity bounds.MPConstraintMPSolver. makeConstraint(double lb, double ub)Creates a linear constraint with given bounds.
Bounds can be finite or +/- MPSolver::infinity().MPConstraintMPSolver. makeConstraint(double lb, double ub, java.lang.String name)Creates a named constraint with given bounds.MPConstraintMPSolver. makeConstraint(java.lang.String name)Creates a named constraint with -infinity and +infinity bounds.static MPConstraint[]mainJNI. MPSolver_constraints(long jarg1, MPSolver jarg1_)Methods in com.google.ortools.linearsolver with parameters of type MPConstraint Modifier and Type Method Description protected static longMPConstraint. getCPtr(MPConstraint obj)static intmainJNI. MPConstraint_basisStatus(long jarg1, MPConstraint jarg1_)static doublemainJNI. MPConstraint_dualValue(long jarg1, MPConstraint jarg1_)static doublemainJNI. MPConstraint_getCoefficient(long jarg1, MPConstraint jarg1_, long jarg2, MPVariable jarg2_)static intmainJNI. MPConstraint_index(long jarg1, MPConstraint jarg1_)static booleanmainJNI. MPConstraint_isLazy(long jarg1, MPConstraint jarg1_)static doublemainJNI. MPConstraint_lb(long jarg1, MPConstraint jarg1_)static java.lang.StringmainJNI. MPConstraint_name(long jarg1, MPConstraint jarg1_)static voidmainJNI. MPConstraint_setBounds(long jarg1, MPConstraint jarg1_, double jarg2, double jarg3)static voidmainJNI. MPConstraint_setCoefficient(long jarg1, MPConstraint jarg1_, long jarg2, MPVariable jarg2_, double jarg3)static voidmainJNI. MPConstraint_setIsLazy(long jarg1, MPConstraint jarg1_, boolean jarg2)static voidmainJNI. MPConstraint_setLb(long jarg1, MPConstraint jarg1_, double jarg2)static voidmainJNI. MPConstraint_setUb(long jarg1, MPConstraint jarg1_, double jarg2)static doublemainJNI. MPConstraint_ub(long jarg1, MPConstraint jarg1_)protected static longMPConstraint. swigRelease(MPConstraint obj)
-