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 longMPConstraint.getCPtr(MPConstraint obj) static final intmainJNI.MPConstraint_basisStatus(long jarg1, MPConstraint jarg1_) static final doublemainJNI.MPConstraint_dualValue(long jarg1, MPConstraint jarg1_) static final doublemainJNI.MPConstraint_getCoefficient(long jarg1, MPConstraint jarg1_, long jarg2, MPVariable jarg2_) static final intmainJNI.MPConstraint_index(long jarg1, MPConstraint jarg1_) static final booleanmainJNI.MPConstraint_isLazy(long jarg1, MPConstraint jarg1_) static final doublemainJNI.MPConstraint_lb(long jarg1, MPConstraint jarg1_) static final StringmainJNI.MPConstraint_name(long jarg1, MPConstraint jarg1_) static final voidmainJNI.MPConstraint_setBounds(long jarg1, MPConstraint jarg1_, double jarg2, double jarg3) static final voidmainJNI.MPConstraint_setCoefficient(long jarg1, MPConstraint jarg1_, long jarg2, MPVariable jarg2_, double jarg3) static final voidmainJNI.MPConstraint_setIsLazy(long jarg1, MPConstraint jarg1_, boolean jarg2) static final voidmainJNI.MPConstraint_setLb(long jarg1, MPConstraint jarg1_, double jarg2) static final voidmainJNI.MPConstraint_setUb(long jarg1, MPConstraint jarg1_, double jarg2) static final doublemainJNI.MPConstraint_ub(long jarg1, MPConstraint jarg1_) protected static longMPConstraint.swigRelease(MPConstraint obj)