Modifier and Type | Method and Description |
---|---|
void |
GRBBatch.abort()
This method instructs the Cluster Manager to abort the processing of
this batch request, changing its status to ABORTED.
|
void |
GRBQuadExpr.add(GRBLinExpr le) |
void |
GRBLinExpr.add(GRBLinExpr le) |
void |
GRBQuadExpr.add(GRBQuadExpr qe) |
GRBConstr |
GRBModel.addConstr(double lhs,
char sense,
GRBLinExpr rhsExpr,
String name)
Add a single linear constraint to a model.
|
GRBConstr |
GRBModel.addConstr(double lhs,
char sense,
GRBVar rhsVar,
String name)
Add a single linear constraint to a model.
|
GRBConstr |
GRBModel.addConstr(GRBLinExpr lhsExpr,
char sense,
double rhs,
String name)
Add a single linear constraint to a model.
|
GRBConstr |
GRBModel.addConstr(GRBLinExpr lhsExpr,
char sense,
GRBLinExpr rhsExpr,
String name)
Add a single linear constraint to a model.
|
GRBConstr |
GRBModel.addConstr(GRBLinExpr lhsExpr,
char sense,
GRBVar rhsVar,
String name)
Add a single linear constraint to a model.
|
GRBConstr |
GRBModel.addConstr(GRBVar lhsVar,
char sense,
double rhs,
String name)
Add a single linear constraint to a model.
|
GRBConstr |
GRBModel.addConstr(GRBVar lhsVar,
char sense,
GRBLinExpr rhsExpr,
String name)
Add a single linear constraint to a model.
|
GRBConstr |
GRBModel.addConstr(GRBVar lhsVar,
char sense,
GRBVar rhsVar,
String name)
Add a single linear constraint to a model.
|
GRBConstr[] |
GRBModel.addConstrs(GRBLinExpr[] lhsExprs,
char[] senses,
double[] rhss,
String[] names)
Add new linear constraints to a model.
|
GRBConstr[] |
GRBModel.addConstrs(GRBLinExpr[] lhsExprs,
char[] senses,
double[] rhss,
String[] names,
int start,
int len)
Add new linear constraints to a model.
|
GRBConstr[] |
GRBModel.addConstrs(int count)
Add
count new linear constraints to a model. |
protected void |
GRBCallback.addCut(GRBLinExpr expr,
char sense,
double rhs) |
GRBGenConstr |
GRBModel.addGenConstrAbs(GRBVar resvar,
GRBVar argvar,
String name)
Add a new general constraint of type GRB.GENCONSTR_ABS to a
model.
|
GRBGenConstr |
GRBModel.addGenConstrAnd(GRBVar resvar,
GRBVar[] vars,
String name)
Add a new general constraint of type GRB.GENCONSTR_AND to a
model.
|
GRBGenConstr |
GRBModel.addGenConstrCos(GRBVar xvar,
GRBVar yvar,
String name,
String options)
Add a new general constraint of type GRB.GENCONSTR_COS to a
model.
|
GRBGenConstr |
GRBModel.addGenConstrExp(GRBVar xvar,
GRBVar yvar,
String name,
String options)
Add a new general constraint of type GRB.GENCONSTR_EXP to a
model.
|
GRBGenConstr |
GRBModel.addGenConstrExpA(GRBVar xvar,
GRBVar yvar,
double a,
String name,
String options)
Add a new general constraint of type GRB.GENCONSTR_EXPA to
a model.
|
GRBGenConstr |
GRBModel.addGenConstrIndicator(GRBVar binvar,
int binval,
GRBLinExpr expr,
char sense,
double rhs,
String name)
Add a new general constraint of type GRB.GENCONSTR_INDICATOR to a model.
|
GRBGenConstr |
GRBModel.addGenConstrLog(GRBVar xvar,
GRBVar yvar,
String name,
String options)
Add a new general constraint of type GRB.GENCONSTR_LOG to a
model.
|
GRBGenConstr |
GRBModel.addGenConstrLogA(GRBVar xvar,
GRBVar yvar,
double a,
String name,
String options)
Add a new general constraint of type GRB.GENCONSTR_LOGA to
a model.
|
GRBGenConstr |
GRBModel.addGenConstrLogistic(GRBVar xvar,
GRBVar yvar,
String name,
String options)
Add a new general constraint of type GRB.GENCONSTR_LOGISTIC
to a model.
|
GRBGenConstr |
GRBModel.addGenConstrMax(GRBVar resvar,
GRBVar[] vars,
double constant,
String name)
Add a new general constraint of type GRB.GENCONSTR_MAX to a
model.
|
GRBGenConstr |
GRBModel.addGenConstrMin(GRBVar resvar,
GRBVar[] vars,
double constant,
String name)
Add a new general constraint of type GRB.GENCONSTR_MIN to a
model.
|
GRBGenConstr |
GRBModel.addGenConstrNorm(GRBVar resvar,
GRBVar[] vars,
double which,
String name)
Add a new general constraint of type GRB.GENCONSTR_NORM to
a model.
|
GRBGenConstr |
GRBModel.addGenConstrOr(GRBVar resvar,
GRBVar[] vars,
String name)
Add a new general constraint of type GRB.GENCONSTR_OR to a
model.
|
GRBGenConstr |
GRBModel.addGenConstrPoly(GRBVar xvar,
GRBVar yvar,
double[] p,
String name,
String options)
Add a new general constraint of type GRB.GENCONSTR_POLY to
a model.
|
GRBGenConstr |
GRBModel.addGenConstrPow(GRBVar xvar,
GRBVar yvar,
double a,
String name,
String options)
Add a new general constraint of type GRB.GENCONSTR_POW to a
model.
|
GRBGenConstr |
GRBModel.addGenConstrPWL(GRBVar xvar,
GRBVar yvar,
double[] xpts,
double[] ypts,
String name)
Add a new general constraint of type GRB.GENCONSTR_PWL to a
model.
|
GRBGenConstr |
GRBModel.addGenConstrSin(GRBVar xvar,
GRBVar yvar,
String name,
String options)
Add a new general constraint of type GRB.GENCONSTR_SIN to a
model.
|
GRBGenConstr |
GRBModel.addGenConstrTan(GRBVar xvar,
GRBVar yvar,
String name,
String options)
Add a new general constraint of type GRB.GENCONSTR_TAN to a
model.
|
protected void |
GRBCallback.addLazy(GRBLinExpr expr,
char sense,
double rhs) |
GRBQConstr |
GRBModel.addQConstr(double lhs,
char sense,
GRBQuadExpr rhsExpr,
String name)
Add a quadratic constraint to a model.
|
GRBQConstr |
GRBModel.addQConstr(GRBLinExpr lhsExpr,
char sense,
GRBQuadExpr rhsExpr,
String name)
Add a quadratic constraint to a model.
|
GRBQConstr |
GRBModel.addQConstr(GRBQuadExpr lhsExpr,
char sense,
double rhs,
String name)
Add a quadratic constraint to a model.
|
GRBQConstr |
GRBModel.addQConstr(GRBQuadExpr lhsExpr,
char sense,
GRBLinExpr rhsExpr,
String name)
Add a quadratic constraint to a model.
|
GRBQConstr |
GRBModel.addQConstr(GRBQuadExpr lhsExpr,
char sense,
GRBQuadExpr rhsExpr,
String name)
Add a quadratic constraint to a model.
|
GRBQConstr |
GRBModel.addQConstr(GRBQuadExpr lhsExpr,
char sense,
GRBVar rhsVar,
String name)
Add a quadratic constraint to a model.
|
GRBQConstr |
GRBModel.addQConstr(GRBVar lhsVar,
char sense,
GRBQuadExpr rhsExpr,
String name)
Add a quadratic constraint to a model.
|
GRBConstr |
GRBModel.addRange(GRBLinExpr expr,
double lower,
double upper,
String name)
Add a single range constraint to a model.
|
GRBConstr[] |
GRBModel.addRanges(GRBLinExpr[] exprs,
double[] lower,
double[] upper,
String[] names)
Add new range constraints to a model.
|
GRBSOS |
GRBModel.addSOS(GRBVar[] vars,
double[] weights,
int type)
Add an SOS constraint to the model.
|
void |
GRBColumn.addTerms(double[] coeffs,
GRBConstr[] constrs)
Add a list of terms into a column.
|
void |
GRBColumn.addTerms(double[] coeffs,
GRBConstr[] constrs,
int start,
int len)
Add new terms into a column.
|
void |
GRBQuadExpr.addTerms(double[] coeff,
GRBVar[] var) |
void |
GRBLinExpr.addTerms(double[] coeff,
GRBVar[] var) |
void |
GRBQuadExpr.addTerms(double[] coeff,
GRBVar[] var1,
GRBVar[] var2) |
void |
GRBQuadExpr.addTerms(double[] coeff,
GRBVar[] var1,
GRBVar[] var2,
int start,
int len) |
void |
GRBQuadExpr.addTerms(double[] coeff,
GRBVar[] var,
int start,
int len) |
void |
GRBLinExpr.addTerms(double[] coeff,
GRBVar[] var,
int start,
int len) |
GRBVar |
GRBModel.addVar(double lb,
double ub,
double obj,
char type,
GRBColumn col,
String name)
Add a variable to a model.
|
GRBVar |
GRBModel.addVar(double lb,
double ub,
double obj,
char type,
GRBConstr[] constrs,
double[] coeffs,
String name)
Add a variable to a model, and the associated non-zero coefficients.
|
GRBVar |
GRBModel.addVar(double lb,
double ub,
double obj,
char type,
String name)
Add a variable to a model; non-zero entries will be added later.
|
GRBVar[] |
GRBModel.addVars(double[] lb,
double[] ub,
double[] obj,
char[] type,
String[] names)
Add new decision variables to a model.
|
GRBVar[] |
GRBModel.addVars(double[] lb,
double[] ub,
double[] obj,
char[] type,
String[] names,
GRBColumn[] cols)
Add new decision variables to a model.
|
GRBVar[] |
GRBModel.addVars(double[] lb,
double[] ub,
double[] obj,
char[] type,
String[] names,
int start,
int len)
Add new decision variables to a model.
|
GRBVar[] |
GRBModel.addVars(int count,
char type)
Add
count new decision variables to a model. |
void |
GRBModel.BasisHead(int[] bhead) |
int |
GRBModel.BinvColj(int col,
int[] xind,
double[] xval) |
int |
GRBModel.Binvi(int i,
int[] xind,
double[] xval) |
int |
GRBModel.Binvj(int j,
int[] xind,
double[] xval) |
int |
GRBModel.BinvRowi(int i,
int[] xind,
double[] xval) |
int |
GRBModel.BSolve(int blen,
int[] bind,
double[] bval,
int[] xind,
double[] xval) |
void |
GRBModel.check() |
void |
GRBModel.chgCoeff(GRBConstr constr,
GRBVar var,
double newval)
Change one coefficient in the model.
|
void |
GRBModel.chgCoeffs(GRBConstr[] constrs,
GRBVar[] vars,
double[] newvals)
Change a list of coefficients in the model.
|
void |
GRBModel.computeIIS()
Compute an Irreducible Inconsistent Subsystem (IIS).
|
void |
GRBBatch.discard()
This method instructs the Cluster Manager to remove all information
related to the batch request in question, including the stored
solution if available.
|
void |
GRBModel.discardConcurrentEnvs()
Discard concurrent environments for a model.
|
void |
GRBModel.discardMultiobjEnvs()
Use
getMultiobjEnv
to create a multi-objective environments. |
void |
GRBEnv.dispose()
Release the resources associated with a
GRBEnv object. |
GRBModel |
GRBModel.dualize() |
GRBModel |
GRBModel.feasibility() |
double |
GRBModel.feasRelax(int relaxobjtype,
boolean minrelax,
boolean vrelax,
boolean crelax)
Simplified method for creating a feasibility relaxation model.
|
double |
GRBModel.feasRelax(int relaxobjtype,
boolean minrelax,
GRBVar[] vars,
double[] lbpen,
double[] ubpen,
GRBConstr[] constrs,
double[] rhspen)
Create a feasibility relaxation model.
|
protected void |
GRBEnv.finalize() |
GRBModel |
GRBModel.fixedModel()
Create the fixed model associated with a MIP model.
|
int |
GRBModel.FSolve(int blen,
int[] bind,
double[] bval,
int[] xind,
double[] xval) |
char |
GRBQConstr.get(GRB.CharAttr attr)
Query the value of a char-valued attribute.
|
char |
GRBConstr.get(GRB.CharAttr attr)
Query the value of a char-valued attribute.
|
char |
GRBVar.get(GRB.CharAttr attr)
Query the value of a char-valued attribute.
|
char[] |
GRBModel.get(GRB.CharAttr attr,
GRBConstr[] constrs)
Query a char-valued constraint attribute for an array of constraints.
|
char[][] |
GRBModel.get(GRB.CharAttr attr,
GRBConstr[][] constrs)
Query a char-valued constraint attribute for a two-dimensional array
of constraints.
|
char[][][] |
GRBModel.get(GRB.CharAttr attr,
GRBConstr[][][] constrs)
Query a char-valued constraint attribute for a three-dimensional array
of constraints.
|
char[] |
GRBModel.get(GRB.CharAttr attr,
GRBConstr[] constrs,
int start,
int len)
Query a char-valued constraint attribute for a sub-array of
constraints.
|
char[] |
GRBModel.get(GRB.CharAttr attr,
GRBQConstr[] qconstrs)
Query a char-valued quadratic constraint attribute for an array of
quadratic constraints.
|
char[][] |
GRBModel.get(GRB.CharAttr attr,
GRBQConstr[][] qconstrs)
Query a char-valued quadratic constraint attribute for a two-
dimensional array of quadratic constraints.
|
char[][][] |
GRBModel.get(GRB.CharAttr attr,
GRBQConstr[][][] qconstrs)
Query a char-valued quadratic constraint attribute for a three-
dimensional array of quadratic constraints.
|
char[] |
GRBModel.get(GRB.CharAttr attr,
GRBQConstr[] qconstrs,
int start,
int len)
Query a char-valued quadratic constraint attribute for a sub-array of
quadratic constraints.
|
char[] |
GRBModel.get(GRB.CharAttr attr,
GRBVar[] vars)
Query a char-valued variable attribute for an array of variables.
|
char[][] |
GRBModel.get(GRB.CharAttr attr,
GRBVar[][] vars)
Query a char-valued variable attribute for a two-dimensional array of
variables.
|
char[][][] |
GRBModel.get(GRB.CharAttr attr,
GRBVar[][][] vars)
Query a char-valued variable attribute for a three-dimensional array
of variables.
|
char[] |
GRBModel.get(GRB.CharAttr attr,
GRBVar[] vars,
int start,
int len)
Query a char-valued variable attribute for a sub-array of variables.
|
double |
GRBGenConstr.get(GRB.DoubleAttr attr)
Query the value of a double-valued attribute.
|
double |
GRBQConstr.get(GRB.DoubleAttr attr)
Query the value of a double-valued attribute.
|
double |
GRBModel.get(GRB.DoubleAttr attr)
Query the value of a double-valued model attribute.
|
double |
GRBConstr.get(GRB.DoubleAttr attr)
Query the value of a double-valued attribute.
|
double |
GRBVar.get(GRB.DoubleAttr attr)
Query the value of a double-valued attribute.
|
double[] |
GRBModel.get(GRB.DoubleAttr attr,
GRBConstr[] constrs)
Query a double-valued constraint attribute for an array of
constraints.
|
double[][] |
GRBModel.get(GRB.DoubleAttr attr,
GRBConstr[][] constrs)
Query a double-valued constraint attribute for a two-dimensional array
of constraints.
|
double[][][] |
GRBModel.get(GRB.DoubleAttr attr,
GRBConstr[][][] constrs)
Query a double-valued constraint attribute for a three-dimensional
array of constraints.
|
double[] |
GRBModel.get(GRB.DoubleAttr attr,
GRBConstr[] constrs,
int start,
int len)
Query a double-valued constraint attribute for a sub-array of
constraints.
|
double[] |
GRBModel.get(GRB.DoubleAttr attr,
GRBQConstr[] qconstrs)
Query a double-valued quadratic constraint attribute for an array of
quadratic constraints.
|
double[][] |
GRBModel.get(GRB.DoubleAttr attr,
GRBQConstr[][] qconstrs)
Query a double-valued quadratic constraint attribute for a two-
dimensional array of quadratic constraints.
|
double[][][] |
GRBModel.get(GRB.DoubleAttr attr,
GRBQConstr[][][] qconstrs)
Query a double-valued quadratic constraint attribute for a three-
dimensional array of quadratic constraints.
|
double[] |
GRBModel.get(GRB.DoubleAttr attr,
GRBQConstr[] qconstrs,
int start,
int len)
Query a double-valued quadratic constraint attribute for a sub-array
of quadratic constraints.
|
double[] |
GRBModel.get(GRB.DoubleAttr attr,
GRBVar[] vars)
Query a double-valued variable attribute for an array of variables.
|
double[][] |
GRBModel.get(GRB.DoubleAttr attr,
GRBVar[][] vars)
Query a double-valued variable attribute for a two-dimensional array
of variables.
|
double[][][] |
GRBModel.get(GRB.DoubleAttr attr,
GRBVar[][][] vars)
Query a double-valued variable attribute for a three-dimensional array
of variables.
|
double[] |
GRBModel.get(GRB.DoubleAttr attr,
GRBVar[] vars,
int start,
int len)
Query a double-valued variable attribute for a sub-array of variables.
|
double |
GRBModel.get(GRB.DoubleParam param)
Query the value of a double-valued parameter.
|
double |
GRBEnv.get(GRB.DoubleParam param)
Query the value of a double-valued parameter.
|
int |
GRBGenConstr.get(GRB.IntAttr attr)
Query the value of an int-valued attribute.
|
int |
GRBQConstr.get(GRB.IntAttr attr)
Query the value of an int-valued attribute.
|
int |
GRBModel.get(GRB.IntAttr attr)
Query the value of an int-valued model attribute.
|
int |
GRBConstr.get(GRB.IntAttr attr)
Query the value of an int-valued attribute.
|
int |
GRBVar.get(GRB.IntAttr attr)
Query the value of an int-valued attribute.
|
int |
GRBBatch.get(GRB.IntAttr attr)
Query the value of an int-valued batch attribute.
|
int |
GRBSOS.get(GRB.IntAttr attr)
Query the value of an SOS attribute.
|
int[] |
GRBModel.get(GRB.IntAttr attr,
GRBConstr[] constrs)
Query an int-valued constraint attribute for an array of constraints.
|
int[][] |
GRBModel.get(GRB.IntAttr attr,
GRBConstr[][] constrs)
Query an int-valued constraint attribute for a two-dimensional array
of constraints.
|
int[][][] |
GRBModel.get(GRB.IntAttr attr,
GRBConstr[][][] constrs)
Query an int-valued constraint attribute for a three-dimensional array
of constraints.
|
int[] |
GRBModel.get(GRB.IntAttr attr,
GRBConstr[] constrs,
int start,
int len)
Query an int-valued constraint attribute for a sub-array of
constraints.
|
int[] |
GRBModel.get(GRB.IntAttr attr,
GRBGenConstr[] genconstrs)
Query an int-valued general constraint attribute for an array of
general constraints.
|
int[][] |
GRBModel.get(GRB.IntAttr attr,
GRBGenConstr[][] genconstrs)
Query an int-valued general constraint attribute for a two-dimensional
array of general constraints.
|
int[][][] |
GRBModel.get(GRB.IntAttr attr,
GRBGenConstr[][][] genconstrs)
Query an int-valued general constraint attribute for a three-
dimensional array of general constraints.
|
int[] |
GRBModel.get(GRB.IntAttr attr,
GRBGenConstr[] genconstrs,
int start,
int len)
Query an int-valued general constraint attribute for a sub-array of
general constraints.
|
int[] |
GRBModel.get(GRB.IntAttr attr,
GRBQConstr[] qconstrs)
Query an int-valued quadratic constraint attribute for an array of
quadratic constraints.
|
int[][] |
GRBModel.get(GRB.IntAttr attr,
GRBQConstr[][] qconstrs)
Query an int-valued quadratic constraint attribute for a two-
dimensional array of quadratic constraints.
|
int[][][] |
GRBModel.get(GRB.IntAttr attr,
GRBQConstr[][][] qconstrs)
Query an int-valued quadratic constraint attribute for a three-
dimensional array of quadratic constraints.
|
int[] |
GRBModel.get(GRB.IntAttr attr,
GRBQConstr[] qconstrs,
int start,
int len)
Query an int-valued quadratic constraint attribute for a sub-array of
quadratic constraints.
|
int[] |
GRBModel.get(GRB.IntAttr attr,
GRBVar[] vars)
Query an int-valued variable attribute for an array of variables.
|
int[][] |
GRBModel.get(GRB.IntAttr attr,
GRBVar[][] vars)
Query an int-valued variable attribute for a two-dimensional array of
variables.
|
int[][][] |
GRBModel.get(GRB.IntAttr attr,
GRBVar[][][] vars)
Query an int-valued variable attribute for a three-dimensional array
of variables.
|
int[] |
GRBModel.get(GRB.IntAttr attr,
GRBVar[] vars,
int start,
int len)
Query an int-valued variable attribute for a sub-array of variables.
|
int |
GRBModel.get(GRB.IntParam param)
Query the value of an int-valued parameter.
|
int |
GRBEnv.get(GRB.IntParam param)
Query the value of an int-valued parameter.
|
String |
GRBGenConstr.get(GRB.StringAttr attr)
Query the value of a string-valued attribute.
|
String |
GRBQConstr.get(GRB.StringAttr attr)
Query the value of a string-valued attribute.
|
String |
GRBModel.get(GRB.StringAttr attr)
Query the value of a string-valued model attribute.
|
String |
GRBConstr.get(GRB.StringAttr attr)
Query the value of a string-valued attribute.
|
String |
GRBVar.get(GRB.StringAttr attr)
Query the value of a string-valued attribute.
|
String |
GRBBatch.get(GRB.StringAttr attr)
Query the value of a string-valued batch attribute.
|
String[] |
GRBModel.get(GRB.StringAttr attr,
GRBConstr[] constrs)
Query a String-valued constraint attribute for an array of
constraints.
|
String[][] |
GRBModel.get(GRB.StringAttr attr,
GRBConstr[][] constrs)
Query a String-valued constraint attribute for a two-dimensional array
of constraints.
|
String[][][] |
GRBModel.get(GRB.StringAttr attr,
GRBConstr[][][] constrs)
Query a String-valued constraint attribute for a three-dimensional
array of constraints.
|
String[] |
GRBModel.get(GRB.StringAttr attr,
GRBConstr[] constrs,
int start,
int len)
Query a String-valued constraint attribute for a sub-array of
constraints.
|
String[] |
GRBModel.get(GRB.StringAttr attr,
GRBGenConstr[] genconstrs)
Query a String-valued general constraint attribute for an array of
general constraints.
|
String[][] |
GRBModel.get(GRB.StringAttr attr,
GRBGenConstr[][] genconstrs)
Query a String-valued constraint attribute for a two-dimensional array
of general constraints.
|
String[][][] |
GRBModel.get(GRB.StringAttr attr,
GRBGenConstr[][][] genconstrs)
Query a String-valued constraint attribute for a three-dimensional
array of general constraints.
|
String[] |
GRBModel.get(GRB.StringAttr attr,
GRBGenConstr[] genconstrs,
int start,
int len)
Query a String-valued general constraint attribute for a sub-array of
constraints.
|
String[] |
GRBModel.get(GRB.StringAttr attr,
GRBQConstr[] qconstrs)
Query a String-valued quadratic constraint attribute for an array of
quadratic constraints.
|
String[][] |
GRBModel.get(GRB.StringAttr attr,
GRBQConstr[][] qconstrs)
Query a String-valued quadratic constraint attribute for a two-
dimensional array of quadratic constraints.
|
String[][][] |
GRBModel.get(GRB.StringAttr attr,
GRBQConstr[][][] qconstrs)
Query a String-valued quadratic constraint attribute for a three-
dimensional array of quadratic constraints.
|
String[] |
GRBModel.get(GRB.StringAttr attr,
GRBQConstr[] qconstrs,
int start,
int len)
Query a String-valued quadratic constraint attribute for a sub-array
of quadratic constraints.
|
String[] |
GRBModel.get(GRB.StringAttr attr,
GRBVar[] vars)
Query a String-valued variable attribute for an array of variables.
|
String[][] |
GRBModel.get(GRB.StringAttr attr,
GRBVar[][] vars)
Query a String-valued variable attribute for a two-dimensional array
of variables.
|
String[][][] |
GRBModel.get(GRB.StringAttr attr,
GRBVar[][][] vars)
Query a String-valued variable attribute for a three-dimensional array
of variables.
|
String[] |
GRBModel.get(GRB.StringAttr attr,
GRBVar[] vars,
int start,
int len)
Query a String-valued variable attribute for a sub-array of variables.
|
String |
GRBModel.get(GRB.StringParam param)
Query the value of a string-valued parameter.
|
String |
GRBEnv.get(GRB.StringParam param)
Query the value of a string-valued parameter.
|
double |
GRBModel.getCoeff(GRBConstr constr,
GRBVar var)
Query the coefficient of variable
var in linear constraint
constr (note that the result can be zero). |
double |
GRBColumn.getCoeff(int i)
Retrieve the coefficient from a single term in the column.
|
double |
GRBQuadExpr.getCoeff(int i) |
double |
GRBLinExpr.getCoeff(int i) |
GRBColumn |
GRBModel.getCol(GRBVar var)
Retrieve the list of constraints in which a variable participates, and
the associated coefficients.
|
GRBEnv |
GRBModel.getConcurrentEnv(int num)
Create/retrieve a concurrent environment for a model.
|
GRBConstr |
GRBColumn.getConstr(int i)
Retrieve the constraint object from a single term in the column.
|
GRBConstr |
GRBModel.getConstrByName(String name)
Retrieve a linear constraint from its name.
|
protected double |
GRBCallback.getDoubleInfo(int what) |
GRBEnv |
GRBModel.getEnv() |
void |
GRBModel.getGenConstrAbs(GRBGenConstr genc,
GRBVar[] resvar,
GRBVar[] argvar)
Any of the following arguments can be null.
|
void |
GRBModel.getGenConstrAnd(GRBGenConstr genc,
GRBVar[] resvar,
GRBVar[] vars,
int[] len)
Any of the following arguments can be null.
|
void |
GRBModel.getGenConstrCos(GRBGenConstr genc,
GRBVar[] xvar,
GRBVar[] yvar)
Any of the following arguments can be null.
|
void |
GRBModel.getGenConstrExp(GRBGenConstr genc,
GRBVar[] xvar,
GRBVar[] yvar)
Any of the following arguments can be null.
|
void |
GRBModel.getGenConstrExpA(GRBGenConstr genc,
GRBVar[] xvar,
GRBVar[] yvar,
double[] a)
Any of the following arguments can be null.
|
void |
GRBModel.getGenConstrIndicator(GRBGenConstr genc,
GRBVar[] binvar,
int[] binval,
GRBLinExpr[] expr,
char[] sense,
double[] rhs)
Any of the following arguments can be null.
|
void |
GRBModel.getGenConstrLog(GRBGenConstr genc,
GRBVar[] xvar,
GRBVar[] yvar)
Any of the following arguments can be null.
|
void |
GRBModel.getGenConstrLogA(GRBGenConstr genc,
GRBVar[] xvar,
GRBVar[] yvar,
double[] a)
Any of the following arguments can be null.
|
void |
GRBModel.getGenConstrLogistic(GRBGenConstr genc,
GRBVar[] xvar,
GRBVar[] yvar)
Any of the following arguments can be null.
|
void |
GRBModel.getGenConstrMax(GRBGenConstr genc,
GRBVar[] resvar,
GRBVar[] vars,
int[] len,
double[] constant)
Any of the following arguments can be null.
|
void |
GRBModel.getGenConstrMin(GRBGenConstr genc,
GRBVar[] resvar,
GRBVar[] vars,
int[] len,
double[] constant)
Any of the following arguments can be null.
|
void |
GRBModel.getGenConstrNorm(GRBGenConstr genc,
GRBVar[] resvar,
GRBVar[] vars,
int[] len,
double[] which)
Any of the following arguments can be null.
|
void |
GRBModel.getGenConstrOr(GRBGenConstr genc,
GRBVar[] resvar,
GRBVar[] vars,
int[] len)
Any of the following arguments can be null.
|
void |
GRBModel.getGenConstrPoly(GRBGenConstr genc,
GRBVar[] xvar,
GRBVar[] yvar,
int[] plen,
double[] p)
Any of the following arguments can be null.
|
void |
GRBModel.getGenConstrPow(GRBGenConstr genc,
GRBVar[] xvar,
GRBVar[] yvar,
double[] a)
Any of the following arguments can be null.
|
void |
GRBModel.getGenConstrPWL(GRBGenConstr genc,
GRBVar[] xvar,
GRBVar[] yvar,
int[] npts,
double[] xpts,
double[] ypts)
Any of the following arguments can be null.
|
void |
GRBModel.getGenConstrSin(GRBGenConstr genc,
GRBVar[] xvar,
GRBVar[] yvar)
Any of the following arguments can be null.
|
void |
GRBModel.getGenConstrTan(GRBGenConstr genc,
GRBVar[] xvar,
GRBVar[] yvar)
Any of the following arguments can be null.
|
protected int |
GRBCallback.getIntInfo(int what) |
String |
GRBModel.getJSONSolution() |
String |
GRBBatch.getJSONSolution() |
GRBEnv |
GRBModel.getMultiobjEnv(int index)
Use
discardMultiobjEnvs to discard multi-objective environments and
return to standard behavior. |
protected double |
GRBCallback.getNodeRel(GRBVar v) |
protected double[] |
GRBCallback.getNodeRel(GRBVar[] xvars) |
protected double[][] |
GRBCallback.getNodeRel(GRBVar[][] xvars) |
GRBExpr |
GRBModel.getObjective()
Retrieve the optimization objective.
|
GRBLinExpr |
GRBModel.getObjective(int index)
Retrieve an alternative optimization objective.
|
void |
GRBEnv.getParamInfo(GRB.DoubleParam param,
double[] info)
Obtain detailed information about a double parameter.
|
void |
GRBEnv.getParamInfo(GRB.IntParam param,
int[] info)
Obtain detailed information about an integer parameter.
|
void |
GRBEnv.getParamInfo(GRB.StringParam param,
String[] info)
Obtain detailed information about a string parameter.
|
int |
GRBModel.getPWLObj(GRBVar var,
double[] x,
double[] y)
Retrieve the piecewise-linear objective function for a variable.
|
GRBQuadExpr |
GRBModel.getQCRow(GRBQConstr qc)
Retrieve the left-hand side expression from a quadratic constraint.
|
GRBLinExpr |
GRBModel.getRow(GRBConstr constr)
Retrieve a list of variables that participate in a constraint, and the
associated coefficients.
|
protected double |
GRBCallback.getSolution(GRBVar v) |
protected double[] |
GRBCallback.getSolution(GRBVar[] xvars) |
protected double[][] |
GRBCallback.getSolution(GRBVar[][] xvars) |
int |
GRBModel.getSOS(GRBSOS sos,
GRBVar[] vars,
double[] weights,
int[] type)
Retrieve the list of variables that participate in an SOS constraint,
and the associated coefficients.
|
protected String |
GRBCallback.getStringInfo(int what) |
void |
GRBModel.getTuneResult(int i)
Use this method to retrieve the results of a previous
tune call. |
double |
GRBQuadExpr.getValue() |
double |
GRBLinExpr.getValue() |
GRBVar |
GRBLinExpr.getVar(int i) |
GRBVar |
GRBQuadExpr.getVar1(int i) |
GRBVar |
GRBQuadExpr.getVar2(int i) |
GRBVar |
GRBModel.getVarByName(String name)
Retrieve a variable from its name.
|
int |
GRBEnv.getWLSTokenLifespan() |
GRBModel |
GRBModel.linearize() |
static void |
NativeUtils.loadLibrariesFromJar(String gurobiVersion,
String[] libraries)
Loads libraries from current JAR archive
The file from the JAR is copied into a user directory and then loaded.
|
void |
GRBEnv.message(String message)
Write a message to the console and the log file.
|
void |
GRBQuadExpr.multAdd(double m,
GRBLinExpr le) |
void |
GRBLinExpr.multAdd(double m,
GRBLinExpr le) |
void |
GRBQuadExpr.multAdd(double m,
GRBQuadExpr qe) |
void |
GRBModel.optimize()
Optimize the model.
|
void |
GRBModel.optimizeasync()
Optimize a model asynchronously.
|
String |
GRBModel.optimizeBatch() |
void |
GRBModel.prefetchAttr(GRB.CharAttr attr) |
void |
GRBModel.prefetchAttr(GRB.DoubleAttr attr) |
void |
GRBModel.prefetchAttr(GRB.IntAttr attr) |
void |
GRBModel.prefetchAttr(GRB.StringAttr attr) |
GRBModel |
GRBModel.presolve()
Perform presolve on a model.
|
void |
GRBCallback.proceed() |
void |
GRBModel.read(String filename)
One variant of the constructor takes the name of the file that
contains the new model as its argument.
|
void |
GRBEnv.readParams(String paramFile)
Read new parameter settings from a file.
|
GRBModel |
GRBModel.relax() |
void |
GRBModel.remove(GRBConstr constr)
Remove a linear constraint from the model.
|
void |
GRBModel.remove(GRBGenConstr genconstr)
Remove a general constraint from the model.
|
void |
GRBModel.remove(GRBQConstr qconstr)
Remove a quadratic constraint from the model.
|
void |
GRBModel.remove(GRBSOS sos)
Remove an SOS constraint from the model.
|
void |
GRBModel.remove(GRBVar var)
Remove a variable from the model.
|
void |
GRBModel.reset()
Reset the model to an unsolved state, discarding any previously
computed solution information.
|
void |
GRBModel.reset(int clearall)
Reset the model to an unsolved state, discarding any previously
computed solution information.
|
void |
GRBEnv.resetParams()
Reset all parameters to their default values.
|
void |
GRBBatch.retry()
This method instructs the Cluster Manager to retry optimization of a
failed or aborted batch request, changing its status to
SUBMITTED.
|
void |
GRBQConstr.set(GRB.CharAttr attr,
char newval)
Set the value of a char-valued attribute.
|
void |
GRBConstr.set(GRB.CharAttr attr,
char newval)
Set the value of a char-valued attribute.
|
void |
GRBVar.set(GRB.CharAttr attr,
char newval)
Set the value of a char-valued attribute.
|
void |
GRBModel.set(GRB.CharAttr attr,
GRBConstr[][][] constrs,
char[][][] newvals)
Set a char-valued constraint attribute for a three-dimensional array
of constraints.
|
void |
GRBModel.set(GRB.CharAttr attr,
GRBConstr[][] constrs,
char[][] newvals)
Set a char-valued constraint attribute for a two-dimensional array of
constraints.
|
void |
GRBModel.set(GRB.CharAttr attr,
GRBConstr[] constrs,
char[] newvals)
Set a char-valued constraint attribute for an array of constraints.
|
void |
GRBModel.set(GRB.CharAttr attr,
GRBConstr[] constrs,
char[] newvals,
int start,
int len)
Set a char-valued constraint attribute for a sub-array of constraints.
|
void |
GRBModel.set(GRB.CharAttr attr,
GRBQConstr[][][] qconstrs,
char[][][] newvals)
Set a char-valued quadratic constraint attribute for a three-
dimensional array of quadratic constraints.
|
void |
GRBModel.set(GRB.CharAttr attr,
GRBQConstr[][] qconstrs,
char[][] newvals)
Set a char-valued quadratic constraint attribute for a two-dimensional
array of quadratic constraints.
|
void |
GRBModel.set(GRB.CharAttr attr,
GRBQConstr[] qconstrs,
char[] newvals)
Set a char-valued quadratic constraint attribute for an array of
quadratic constraints.
|
void |
GRBModel.set(GRB.CharAttr attr,
GRBQConstr[] qconstrs,
char[] newvals,
int start,
int len)
Set a char-valued quadratic constraint attribute for a sub-array of
quadratic constraints.
|
void |
GRBModel.set(GRB.CharAttr attr,
GRBVar[][][] vars,
char[][][] newvals)
Set a char-valued variable attribute for a three-dimensional array of
variables.
|
void |
GRBModel.set(GRB.CharAttr attr,
GRBVar[][] vars,
char[][] newvals)
Set a char-valued variable attribute for a two-dimensional array of
variables.
|
void |
GRBModel.set(GRB.CharAttr attr,
GRBVar[] vars,
char[] newvals)
Set a char-valued variable attribute for an array of variables.
|
void |
GRBModel.set(GRB.CharAttr attr,
GRBVar[] vars,
char[] newvals,
int start,
int len)
Set a char-valued variable attribute for a sub-array of variables.
|
void |
GRBGenConstr.set(GRB.DoubleAttr attr,
double newval)
Set the value of a double-valued attribute.
|
void |
GRBQConstr.set(GRB.DoubleAttr attr,
double newval)
Set the value of a double-valued attribute.
|
void |
GRBModel.set(GRB.DoubleAttr attr,
double newval)
Set the value of a double-valued model attribute.
|
void |
GRBConstr.set(GRB.DoubleAttr attr,
double newval)
Set the value of a double-valued attribute.
|
void |
GRBVar.set(GRB.DoubleAttr attr,
double newval)
Set the value of a double-valued attribute.
|
void |
GRBModel.set(GRB.DoubleAttr attr,
GRBConstr[][][] constrs,
double[][][] newvals)
Set a double-valued constraint attribute for a three-dimensional array
of constraints.
|
void |
GRBModel.set(GRB.DoubleAttr attr,
GRBConstr[][] constrs,
double[][] newvals)
Set a double-valued constraint attribute for a two-dimensional array
of constraints.
|
void |
GRBModel.set(GRB.DoubleAttr attr,
GRBConstr[] constrs,
double[] newvals)
Set a double-valued constraint attribute for an array of constraints.
|
void |
GRBModel.set(GRB.DoubleAttr attr,
GRBConstr[] constrs,
double[] newvals,
int start,
int len)
Set a double-valued constraint attribute for a sub-array of
constraints.
|
void |
GRBModel.set(GRB.DoubleAttr attr,
GRBQConstr[][][] qconstrs,
double[][][] newvals)
Set a double-valued quadratic constraint attribute for a three-
dimensional array of quadratic constraints.
|
void |
GRBModel.set(GRB.DoubleAttr attr,
GRBQConstr[][] qconstrs,
double[][] newvals)
Set a double-valued quadratic constraint attribute for a two-
dimensional array of quadratic constraints.
|
void |
GRBModel.set(GRB.DoubleAttr attr,
GRBQConstr[] qconstrs,
double[] newvals)
Set a double-valued quadratic constraint attribute for an array of
quadratic constraints.
|
void |
GRBModel.set(GRB.DoubleAttr attr,
GRBQConstr[] qconstrs,
double[] newvals,
int start,
int len)
Set a double-valued quadratic constraint attribute for a sub-array of
quadratic constraints.
|
void |
GRBModel.set(GRB.DoubleAttr attr,
GRBVar[][][] vars,
double[][][] newvals)
Set a double-valued variable attribute for a three-dimensional array
of variables.
|
void |
GRBModel.set(GRB.DoubleAttr attr,
GRBVar[][] vars,
double[][] newvals)
Set a double-valued variable attribute for a two-dimensional array of
variables.
|
void |
GRBModel.set(GRB.DoubleAttr attr,
GRBVar[] vars,
double[] newvals)
Set a double-valued variable attribute for an array of variables.
|
void |
GRBModel.set(GRB.DoubleAttr attr,
GRBVar[] vars,
double[] newvals,
int start,
int len)
Set a double-valued variable attribute for a sub-array of variables.
|
void |
GRBModel.set(GRB.DoubleParam param,
double newval)
Set the value of a double-valued parameter.
|
void |
GRBEnv.set(GRB.DoubleParam param,
double newval)
Set the value of a double-valued parameter.
|
void |
GRBModel.set(GRB.IntAttr attr,
GRBConstr[][][] constrs,
int[][][] newvals)
Set an int-valued constraint attribute for a three-dimensional array
of constraints.
|
void |
GRBModel.set(GRB.IntAttr attr,
GRBConstr[][] constrs,
int[][] newvals)
Set an int-valued constraint attribute for a two-dimensional array of
constraints.
|
void |
GRBModel.set(GRB.IntAttr attr,
GRBConstr[] constrs,
int[] newvals)
Set an int-valued constraint attribute for an array of constraints.
|
void |
GRBModel.set(GRB.IntAttr attr,
GRBConstr[] constrs,
int[] newvals,
int start,
int len)
Set an int-valued constraint attribute for a sub-array of constraints.
|
void |
GRBModel.set(GRB.IntAttr attr,
GRBVar[][][] vars,
int[][][] newvals)
Set an int-valued variable attribute for a three-dimensional array of
variables.
|
void |
GRBModel.set(GRB.IntAttr attr,
GRBVar[][] vars,
int[][] newvals)
Set an int-valued variable attribute for a two-dimensional array of
variables.
|
void |
GRBModel.set(GRB.IntAttr attr,
GRBVar[] vars,
int[] newvals)
Set an int-valued variable attribute for an array of variables.
|
void |
GRBModel.set(GRB.IntAttr attr,
GRBVar[] vars,
int[] newvals,
int start,
int len)
Set an int-valued variable attribute for a sub-array of variables.
|
void |
GRBGenConstr.set(GRB.IntAttr attr,
int newval)
Set the value of an int-valued attribute.
|
void |
GRBQConstr.set(GRB.IntAttr attr,
int newval)
Set the value of an int-valued attribute.
|
void |
GRBModel.set(GRB.IntAttr attr,
int newval)
Set the value of an int-valued model attribute.
|
void |
GRBConstr.set(GRB.IntAttr attr,
int newval)
Set the value of an int-valued attribute.
|
void |
GRBVar.set(GRB.IntAttr attr,
int newval)
Set the value of an int-valued attribute.
|
void |
GRBSOS.set(GRB.IntAttr attr,
int newval)
Set the value of an int-valued attribute.
|
void |
GRBModel.set(GRB.IntParam param,
int newval)
Set the value of an int-valued parameter.
|
void |
GRBEnv.set(GRB.IntParam param,
int newval)
Set the value of an int-valued parameter.
|
void |
GRBModel.set(GRB.StringAttr attr,
GRBConstr[][][] constrs,
String[][][] newvals)
Set a String-valued constraint attribute for a three-dimensional array
of constraints.
|
void |
GRBModel.set(GRB.StringAttr attr,
GRBConstr[][] constrs,
String[][] newvals)
Set a String-valued constraint attribute for a two-dimensional array
of constraints.
|
void |
GRBModel.set(GRB.StringAttr attr,
GRBConstr[] constrs,
String[] newvals)
Set a String-valued constraint attribute for an array of constraints.
|
void |
GRBModel.set(GRB.StringAttr attr,
GRBConstr[] constrs,
String[] newvals,
int start,
int len)
Set a String-valued constraint attribute for a sub-array of
constraints.
|
void |
GRBModel.set(GRB.StringAttr attr,
GRBGenConstr[][][] genconstrs,
String[][][] newvals)
Set a String-valued general constraint attribute for a three-
dimensional array of general constraints.
|
void |
GRBModel.set(GRB.StringAttr attr,
GRBGenConstr[][] genconstrs,
String[][] newvals)
Set a String-valued general constraint attribute for a two-dimensional
array of general constraints.
|
void |
GRBModel.set(GRB.StringAttr attr,
GRBGenConstr[] genconstrs,
String[] newvals)
Set a String-valued general constraint attribute for an array of
general constraints.
|
void |
GRBModel.set(GRB.StringAttr attr,
GRBGenConstr[] genconstrs,
String[] newvals,
int start,
int len)
Set a String-valued general constraint attribute for a sub-array of
general constraints.
|
void |
GRBModel.set(GRB.StringAttr attr,
GRBQConstr[][][] qconstrs,
String[][][] newvals)
Set a String-valued quadratic constraint attribute for a three-
dimensional array of quadratic constraints.
|
void |
GRBModel.set(GRB.StringAttr attr,
GRBQConstr[][] qconstrs,
String[][] newvals)
Set a String-valued quadratic constraint attribute for a two-
dimensional array of quadratic constraints.
|
void |
GRBModel.set(GRB.StringAttr attr,
GRBQConstr[] qconstrs,
String[] newvals)
Set a String-valued quadratic constraint attribute for an array of
quadratic constraints.
|
void |
GRBModel.set(GRB.StringAttr attr,
GRBQConstr[] qconstrs,
String[] newvals,
int start,
int len)
Set a String-valued quadratic constraint attribute for a sub-array of
quadratic constraints.
|
void |
GRBModel.set(GRB.StringAttr attr,
GRBVar[][][] vars,
String[][][] newvals)
Set a String-valued variable attribute for a three-dimensional array
of variables.
|
void |
GRBModel.set(GRB.StringAttr attr,
GRBVar[][] vars,
String[][] newvals)
Set a String-valued variable attribute for a two-dimensional array of
variables.
|
void |
GRBModel.set(GRB.StringAttr attr,
GRBVar[] vars,
String[] newvals)
Set a String-valued variable attribute for an array of variables.
|
void |
GRBModel.set(GRB.StringAttr attr,
GRBVar[] vars,
String[] newvals,
int start,
int len)
Set a String-valued variable attribute for a sub-array of variables.
|
void |
GRBGenConstr.set(GRB.StringAttr attr,
String newval)
Set the value of a string-valued attribute.
|
void |
GRBQConstr.set(GRB.StringAttr attr,
String newval)
Set the value of a string-valued attribute.
|
void |
GRBModel.set(GRB.StringAttr attr,
String newval)
Set the value of a String-valued model attribute.
|
void |
GRBConstr.set(GRB.StringAttr attr,
String newval)
Set the value of a string-valued attribute.
|
void |
GRBVar.set(GRB.StringAttr attr,
String newval)
Set the value of a string-valued attribute.
|
void |
GRBModel.set(GRB.StringParam param,
String newval)
Set the value of a string-valued parameter.
|
void |
GRBEnv.set(GRB.StringParam param,
String newval)
Set the value of a string-valued parameter.
|
void |
GRBModel.set(String param,
String newval)
Set the value of any parameter using strings alone.
|
void |
GRBEnv.set(String param,
String newval)
Set the value of any parameter using strings alone.
|
void |
GRBModel.setCallback(GRBCallback cb)
Set the callback object for a model.
|
void |
GRBModel.setLogCallback(Consumer<String> logCallback)
Sets a logging callback function to query all output posted by the
model object.
|
void |
GRBModel.setObjective(GRBExpr expr)
Set the model objective.
|
void |
GRBModel.setObjective(GRBExpr expr,
int sense)
Set the model objective, and the objective sense (
GRB.MINIMIZE
for minimization, GRB.MAXIMIZE for maximization). |
void |
GRBModel.setObjectiveN(GRBLinExpr expr,
int index,
int priority,
double weight,
double abstol,
double reltol,
String name)
Set an alternative optimization objective equal to a linear
expression.
|
void |
GRBModel.setPWLObj(GRBVar var,
double[] x,
double[] y)
Set the piecewise-linear objective function for a variable.
|
protected void |
GRBCallback.setSolution(GRBVar[] xvars,
double[] sol) |
protected void |
GRBCallback.setSolution(GRBVar v,
double val) |
GRBModel |
GRBModel.singleScenarioModel()
Capture a single scenario from a multi-scenario model.
|
void |
GRBEnv.start()
Start an empty environment.
|
protected void |
GRBCallback.stopOneMultiObj(int objnum) |
void |
GRBModel.sync()
Wait for a previous asynchronous optimization call to complete.
|
void |
GRBModel.tune()
Perform an automated search for parameter settings that improve
performance.
|
void |
GRBModel.update()
Process any pending model modifications.
|
void |
GRBBatch.update()
All Batch attribute values are cached locally, so queries return the
value received during the last communication with the Cluster Manager.
|
protected double |
GRBCallback.useSolution() |
void |
GRBModel.write(String filename) |
void |
GRBBatch.writeJSONSolution(String filename) |
void |
GRBEnv.writeParams(String paramFile)
Write all non-default parameter settings to a file.
|
Constructor and Description |
---|
GRBBatch(GRBEnv env,
String batchID) |
GRBColumn(GRBColumn col)
Copy an existing column.
|
GRBEnv()
Create a Gurobi environment (with logging disabled).
|
GRBEnv(boolean empty)
Create an empty Gurobi environment.
|
GRBEnv(String logFileName)
Create a Gurobi environment (with logging enabled).
|
GRBEnv(String s0,
String s1,
String s2) |
GRBEnv(String s0,
String s1,
String s2,
int i1,
String s3) |
GRBLinExpr(GRBLinExpr le) |
GRBModel(GRBEnv env)
Model constructor.
|
GRBModel(GRBEnv env,
String filename)
Read a model from a file.
|
GRBModel(GRBModel model)
Create a copy of an existing model.
|
GRBModel(GRBModel model,
GRBEnv targetenv)
Copy an existing model to a different environment.
|
GRBQuadExpr(GRBLinExpr le) |
GRBQuadExpr(GRBQuadExpr qe) |
Copyright © 2024. All rights reserved.