Uses of Class
com.google.ortools.linearsolver.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[]main_research_linear_solverJNI. 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 intmain_research_linear_solverJNI. MPConstraint_basisStatus(long jarg1, MPConstraint jarg1_)static doublemain_research_linear_solverJNI. MPConstraint_dualValue(long jarg1, MPConstraint jarg1_)static doublemain_research_linear_solverJNI. MPConstraint_getCoefficient(long jarg1, MPConstraint jarg1_, long jarg2, MPVariable jarg2_)static intmain_research_linear_solverJNI. MPConstraint_index(long jarg1, MPConstraint jarg1_)static booleanmain_research_linear_solverJNI. MPConstraint_isLazy(long jarg1, MPConstraint jarg1_)static doublemain_research_linear_solverJNI. MPConstraint_lb(long jarg1, MPConstraint jarg1_)static java.lang.Stringmain_research_linear_solverJNI. MPConstraint_name(long jarg1, MPConstraint jarg1_)static voidmain_research_linear_solverJNI. MPConstraint_setBounds(long jarg1, MPConstraint jarg1_, double jarg2, double jarg3)static voidmain_research_linear_solverJNI. MPConstraint_setCoefficient(long jarg1, MPConstraint jarg1_, long jarg2, MPVariable jarg2_, double jarg3)static voidmain_research_linear_solverJNI. MPConstraint_setIsLazy(long jarg1, MPConstraint jarg1_, boolean jarg2)static voidmain_research_linear_solverJNI. MPConstraint_setLb(long jarg1, MPConstraint jarg1_, double jarg2)static voidmain_research_linear_solverJNI. MPConstraint_setUb(long jarg1, MPConstraint jarg1_, double jarg2)static doublemain_research_linear_solverJNI. MPConstraint_ub(long jarg1, MPConstraint jarg1_)