Package | Description |
---|---|
com.google.ortools.linearsolver |
Modifier and Type | Method and Description |
---|---|
MPVariable |
MPSolver.lookupVariableOrNull(java.lang.String var_name)
Looks up a variable by name, and returns nullptr if it does not exist.
|
MPVariable |
MPSolver.makeBoolVar(java.lang.String name)
Creates a boolean variable.
|
MPVariable[] |
MPSolver.makeBoolVarArray(int count) |
MPVariable[] |
MPSolver.makeBoolVarArray(int count,
java.lang.String var_name) |
MPVariable |
MPSolver.makeIntVar(double lb,
double ub,
java.lang.String name)
Creates an integer variable.
|
MPVariable[] |
MPSolver.makeIntVarArray(int count,
double lb,
double ub) |
MPVariable[] |
MPSolver.makeIntVarArray(int count,
double lb,
double ub,
java.lang.String var_name) |
MPVariable |
MPSolver.makeNumVar(double lb,
double ub,
java.lang.String name)
Creates a continuous variable.
|
MPVariable[] |
MPSolver.makeNumVarArray(int count,
double lb,
double ub) |
MPVariable[] |
MPSolver.makeNumVarArray(int count,
double lb,
double ub,
java.lang.String var_name) |
MPVariable |
MPSolver.makeVar(double lb,
double ub,
boolean integer,
java.lang.String name)
Creates a variable with the given bounds, integrality requirement and
name. |
MPVariable[] |
MPSolver.makeVarArray(int count,
double lb,
double ub,
boolean integer)
Creates and returns an array of variables.
|
MPVariable[] |
MPSolver.makeVarArray(int count,
double lb,
double ub,
boolean integer,
java.lang.String var_name)
Creates and returns an array of named variables.
|
static MPVariable[] |
mainJNI.MPSolver_variables(long jarg1,
MPSolver jarg1_) |
MPVariable |
MPSolver.variable(int index)
Returns the variable at position index.
|
MPVariable[] |
MPSolver.variables()
Returns the array of variables handled by the MPSolver.
|
Modifier and Type | Method and Description |
---|---|
double |
MPObjective.getCoefficient(MPVariable var)
Gets the coefficient of a given variable in the objective
It returns 0 if the variable does not appear in the objective). |
double |
MPConstraint.getCoefficient(MPVariable var)
Gets the coefficient of a given variable on the constraint (which is 0 if
the variable does not appear in the constraint). |
protected static long |
MPVariable.getCPtr(MPVariable obj) |
static double |
mainJNI.MPConstraint_getCoefficient(long jarg1,
MPConstraint jarg1_,
long jarg2,
MPVariable jarg2_) |
static void |
mainJNI.MPConstraint_setCoefficient(long jarg1,
MPConstraint jarg1_,
long jarg2,
MPVariable jarg2_,
double jarg3) |
static double |
mainJNI.MPObjective_getCoefficient(long jarg1,
MPObjective jarg1_,
long jarg2,
MPVariable jarg2_) |
static void |
mainJNI.MPObjective_setCoefficient(long jarg1,
MPObjective jarg1_,
long jarg2,
MPVariable jarg2_,
double jarg3) |
static void |
mainJNI.MPSolver_setHint(long jarg1,
MPSolver jarg1_,
MPVariable[] jarg2,
double[] jarg3) |
static int |
mainJNI.MPVariable_basisStatus(long jarg1,
MPVariable jarg1_) |
static int |
mainJNI.MPVariable_index(long jarg1,
MPVariable jarg1_) |
static double |
mainJNI.MPVariable_lb(long jarg1,
MPVariable jarg1_) |
static java.lang.String |
mainJNI.MPVariable_name(long jarg1,
MPVariable jarg1_) |
static double |
mainJNI.MPVariable_reducedCost(long jarg1,
MPVariable jarg1_) |
static void |
mainJNI.MPVariable_setBounds(long jarg1,
MPVariable jarg1_,
double jarg2,
double jarg3) |
static void |
mainJNI.MPVariable_setInteger(long jarg1,
MPVariable jarg1_,
boolean jarg2) |
static void |
mainJNI.MPVariable_setLb(long jarg1,
MPVariable jarg1_,
double jarg2) |
static void |
mainJNI.MPVariable_setUb(long jarg1,
MPVariable jarg1_,
double jarg2) |
static double |
mainJNI.MPVariable_solutionValue(long jarg1,
MPVariable jarg1_) |
static double |
mainJNI.MPVariable_ub(long jarg1,
MPVariable jarg1_) |
void |
MPObjective.setCoefficient(MPVariable var,
double coeff)
Sets the coefficient of the variable in the objective.
|
void |
MPConstraint.setCoefficient(MPVariable var,
double coeff)
Sets the coefficient of the variable on the constraint.
|
void |
MPSolver.setHint(MPVariable[] variables,
double[] values)
Sets a hint for solution.
|
protected static long |
MPVariable.swigRelease(MPVariable obj) |
Copyright © 2025. All rights reserved.