Uses of Class
com.google.ortools.linearsolver.MPConstraint
Packages that use MPConstraint
-
Uses of MPConstraint in com.google.ortools.linearsolver
Methods in com.google.ortools.linearsolver that return MPConstraintModifier and TypeMethodDescriptionMPSolver.constraint
(int index) Returns the constraint at the given index.MPSolver.constraints()
Returns the array of constraints handled by the MPSolver.
They are listed in the order in which they were created.MPSolver.lookupConstraintOrNull
(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.MPSolver.makeConstraint()
Creates a constraint with -infinity and +infinity bounds.MPSolver.makeConstraint
(double lb, double ub) Creates a linear constraint with given bounds.
Bounds can be finite or +/- MPSolver::infinity().MPSolver.makeConstraint
(double lb, double ub, String name) Creates a named constraint with given bounds.MPSolver.makeConstraint
(String name) Creates a named constraint with -infinity and +infinity bounds.static final MPConstraint[]
mainJNI.MPSolver_constraints
(long jarg1, MPSolver jarg1_) Methods in com.google.ortools.linearsolver with parameters of type MPConstraintModifier and TypeMethodDescriptionprotected static long
MPConstraint.getCPtr
(MPConstraint obj) static final int
mainJNI.MPConstraint_basisStatus
(long jarg1, MPConstraint jarg1_) static final double
mainJNI.MPConstraint_dualValue
(long jarg1, MPConstraint jarg1_) static final double
mainJNI.MPConstraint_getCoefficient
(long jarg1, MPConstraint jarg1_, long jarg2, MPVariable jarg2_) static final int
mainJNI.MPConstraint_index
(long jarg1, MPConstraint jarg1_) static final boolean
mainJNI.MPConstraint_isLazy
(long jarg1, MPConstraint jarg1_) static final double
mainJNI.MPConstraint_lb
(long jarg1, MPConstraint jarg1_) static final String
mainJNI.MPConstraint_name
(long jarg1, MPConstraint jarg1_) static final void
mainJNI.MPConstraint_setBounds
(long jarg1, MPConstraint jarg1_, double jarg2, double jarg3) static final void
mainJNI.MPConstraint_setCoefficient
(long jarg1, MPConstraint jarg1_, long jarg2, MPVariable jarg2_, double jarg3) static final void
mainJNI.MPConstraint_setIsLazy
(long jarg1, MPConstraint jarg1_, boolean jarg2) static final void
mainJNI.MPConstraint_setLb
(long jarg1, MPConstraint jarg1_, double jarg2) static final void
mainJNI.MPConstraint_setUb
(long jarg1, MPConstraint jarg1_, double jarg2) static final double
mainJNI.MPConstraint_ub
(long jarg1, MPConstraint jarg1_) protected static long
MPConstraint.swigRelease
(MPConstraint obj)