Modifier and Type | Method and Description |
---|---|
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.
|
GRBGenConstr[] |
GRBModel.getGenConstrs()
Retrieve an array of all general constraints in the model.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
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.
|
void |
GRBModel.remove(GRBGenConstr genconstr)
Remove a general constraint from the model.
|
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.
|
Copyright © 2024. All rights reserved.