public class GRBModel extends Object implements AutoCloseable
| Constructor and Description |
|---|
GRBModel(GRBEnv env) |
GRBModel(GRBEnv env,
String filename) |
GRBModel(GRBModel model) |
GRBModel(GRBModel model,
GRBEnv targetenv) |
| Modifier and Type | Method and Description |
|---|---|
GRBConstr |
addConstr(double lhs,
char sense,
GRBLinExpr rhsExpr,
String name) |
GRBConstr |
addConstr(double lhs,
char sense,
GRBVar rhsVar,
String name) |
GRBConstr |
addConstr(GRBLinExpr lhsExpr,
char sense,
double rhs,
String name) |
GRBConstr |
addConstr(GRBLinExpr lhsExpr,
char sense,
GRBLinExpr rhsExpr,
String name) |
GRBConstr |
addConstr(GRBLinExpr lhsExpr,
char sense,
GRBVar rhsVar,
String name) |
GRBConstr |
addConstr(GRBVar lhsVar,
char sense,
double rhs,
String name) |
GRBConstr |
addConstr(GRBVar lhsVar,
char sense,
GRBLinExpr rhsExpr,
String name) |
GRBConstr |
addConstr(GRBVar lhsVar,
char sense,
GRBVar rhsVar,
String name) |
GRBConstr[] |
addConstrs(GRBLinExpr[] lhsExprs,
char[] senses,
double[] rhss,
String[] names) |
GRBConstr[] |
addConstrs(GRBLinExpr[] lhsExprs,
char[] senses,
double[] rhss,
String[] names,
int start,
int len) |
GRBConstr[] |
addConstrs(int count) |
GRBGenConstr |
addGenConstrAbs(GRBVar resvar,
GRBVar argvar,
String name) |
GRBGenConstr |
addGenConstrAnd(GRBVar resvar,
GRBVar[] vars,
String name) |
GRBGenConstr |
addGenConstrCos(GRBVar xvar,
GRBVar yvar,
String name,
String options)
Deprecated.
|
GRBGenConstr |
addGenConstrExp(GRBVar xvar,
GRBVar yvar,
String name,
String options)
Deprecated.
|
GRBGenConstr |
addGenConstrExpA(GRBVar xvar,
GRBVar yvar,
double a,
String name,
String options)
Deprecated.
|
GRBGenConstr |
addGenConstrIndicator(GRBVar binvar,
int binval,
GRBLinExpr expr,
char sense,
double rhs,
String name) |
GRBGenConstr |
addGenConstrLog(GRBVar xvar,
GRBVar yvar,
String name,
String options)
Deprecated.
|
GRBGenConstr |
addGenConstrLogA(GRBVar xvar,
GRBVar yvar,
double a,
String name,
String options)
Deprecated.
|
GRBGenConstr |
addGenConstrLogistic(GRBVar xvar,
GRBVar yvar,
String name,
String options)
Deprecated.
|
GRBGenConstr |
addGenConstrMax(GRBVar resvar,
GRBVar[] vars,
double constant,
String name) |
GRBGenConstr |
addGenConstrMin(GRBVar resvar,
GRBVar[] vars,
double constant,
String name) |
GRBGenConstr |
addGenConstrNL(GRBVar yvar,
int[] opcode,
double[] data,
int[] parent,
String name)
Deprecated.
|
GRBGenConstr |
addGenConstrNorm(GRBVar resvar,
GRBVar[] vars,
double which,
String name) |
GRBGenConstr |
addGenConstrOr(GRBVar resvar,
GRBVar[] vars,
String name) |
GRBGenConstr |
addGenConstrPoly(GRBVar xvar,
GRBVar yvar,
double[] p,
String name,
String options)
Deprecated.
|
GRBGenConstr |
addGenConstrPow(GRBVar xvar,
GRBVar yvar,
double a,
String name,
String options)
Deprecated.
|
GRBGenConstr |
addGenConstrPWL(GRBVar xvar,
GRBVar yvar,
double[] xpts,
double[] ypts,
String name) |
GRBGenConstr |
addGenConstrSin(GRBVar xvar,
GRBVar yvar,
String name,
String options)
Deprecated.
|
GRBGenConstr |
addGenConstrTan(GRBVar xvar,
GRBVar yvar,
String name,
String options)
Deprecated.
|
GRBNLConstr |
addNLConstr(int[] opcode,
double[] data,
int[] parent,
char sense,
double rhs,
String name) |
GRBQConstr |
addQConstr(double lhs,
char sense,
GRBQuadExpr rhsExpr,
String name) |
GRBQConstr |
addQConstr(GRBLinExpr lhsExpr,
char sense,
GRBQuadExpr rhsExpr,
String name) |
GRBQConstr |
addQConstr(GRBQuadExpr lhsExpr,
char sense,
double rhs,
String name) |
GRBQConstr |
addQConstr(GRBQuadExpr lhsExpr,
char sense,
GRBLinExpr rhsExpr,
String name) |
GRBQConstr |
addQConstr(GRBQuadExpr lhsExpr,
char sense,
GRBQuadExpr rhsExpr,
String name) |
GRBQConstr |
addQConstr(GRBQuadExpr lhsExpr,
char sense,
GRBVar rhsVar,
String name) |
GRBQConstr |
addQConstr(GRBVar lhsVar,
char sense,
GRBQuadExpr rhsExpr,
String name) |
GRBConstr |
addRange(GRBLinExpr expr,
double lower,
double upper,
String name) |
GRBConstr[] |
addRanges(GRBLinExpr[] exprs,
double[] lower,
double[] upper,
String[] names) |
GRBSOS |
addSOS(GRBVar[] vars,
double[] weights,
int type) |
GRBVar |
addVar(double lb,
double ub,
double obj,
char type,
GRBColumn col,
String name) |
GRBVar |
addVar(double lb,
double ub,
double obj,
char type,
GRBConstr[] constrs,
double[] coeffs,
String name) |
GRBVar |
addVar(double lb,
double ub,
double obj,
char type,
String name) |
GRBVar[] |
addVars(double[] lb,
double[] ub,
double[] obj,
char[] type,
String[] names) |
GRBVar[] |
addVars(double[] lb,
double[] ub,
double[] obj,
char[] type,
String[] names,
GRBColumn[] cols) |
GRBVar[] |
addVars(double[] lb,
double[] ub,
double[] obj,
char[] type,
String[] names,
int start,
int len) |
GRBVar[] |
addVars(int count,
char type) |
void |
BasisHead(int[] bhead) |
int |
BinvColj(int col,
int[] xind,
double[] xval) |
int |
Binvi(int i,
int[] xind,
double[] xval) |
int |
Binvj(int j,
int[] xind,
double[] xval) |
int |
BinvRowi(int i,
int[] xind,
double[] xval) |
int |
BSolve(int blen,
int[] bind,
double[] bval,
int[] xind,
double[] xval) |
void |
check() |
void |
chgCoeff(GRBConstr constr,
GRBVar var,
double newval) |
void |
chgCoeffs(GRBConstr[] constrs,
GRBVar[] vars,
double[] newvals) |
void |
close() |
void |
computeIIS() |
void |
convertToFixed() |
void |
delNLObj() |
void |
discardConcurrentEnvs() |
void |
discardMultiobjEnvs() |
void |
dispose() |
GRBModel |
dualize() |
GRBModel |
feasibility() |
double |
feasRelax(int relaxobjtype,
boolean minrelax,
boolean vrelax,
boolean crelax) |
double |
feasRelax(int relaxobjtype,
boolean minrelax,
GRBVar[] vars,
double[] lbpen,
double[] ubpen,
GRBConstr[] constrs,
double[] rhspen) |
protected void |
finalize() |
GRBModel |
fixedModel() |
int |
FSolve(int blen,
int[] bind,
double[] bval,
int[] xind,
double[] xval) |
char[] |
get(GRB.CharAttr attr,
GRBConstr[] constrs) |
char[][] |
get(GRB.CharAttr attr,
GRBConstr[][] constrs) |
char[][][] |
get(GRB.CharAttr attr,
GRBConstr[][][] constrs) |
char[] |
get(GRB.CharAttr attr,
GRBConstr[] constrs,
int start,
int len) |
char[] |
get(GRB.CharAttr attr,
GRBNLConstr[] nlconstrs) |
char[] |
get(GRB.CharAttr attr,
GRBNLConstr[] nlconstrs,
int start,
int len) |
char[] |
get(GRB.CharAttr attr,
GRBQConstr[] qconstrs) |
char[][] |
get(GRB.CharAttr attr,
GRBQConstr[][] qconstrs) |
char[][][] |
get(GRB.CharAttr attr,
GRBQConstr[][][] qconstrs) |
char[] |
get(GRB.CharAttr attr,
GRBQConstr[] qconstrs,
int start,
int len) |
char[] |
get(GRB.CharAttr attr,
GRBVar[] vars) |
char[][] |
get(GRB.CharAttr attr,
GRBVar[][] vars) |
char[][][] |
get(GRB.CharAttr attr,
GRBVar[][][] vars) |
char[] |
get(GRB.CharAttr attr,
GRBVar[] vars,
int start,
int len) |
double |
get(GRB.DoubleAttr attr) |
double[] |
get(GRB.DoubleAttr attr,
GRBConstr[] constrs) |
double[][] |
get(GRB.DoubleAttr attr,
GRBConstr[][] constrs) |
double[][][] |
get(GRB.DoubleAttr attr,
GRBConstr[][][] constrs) |
double[] |
get(GRB.DoubleAttr attr,
GRBConstr[] constrs,
int start,
int len) |
double[] |
get(GRB.DoubleAttr attr,
GRBGenConstr[] genconstrs) |
double[][] |
get(GRB.DoubleAttr attr,
GRBGenConstr[][] genconstrs) |
double[][][] |
get(GRB.DoubleAttr attr,
GRBGenConstr[][][] genconstrs) |
double[] |
get(GRB.DoubleAttr attr,
GRBGenConstr[] genconstrs,
int start,
int len) |
double[] |
get(GRB.DoubleAttr attr,
GRBNLConstr[] nlconstrs) |
double[] |
get(GRB.DoubleAttr attr,
GRBNLConstr[] nlconstrs,
int start,
int len) |
double[] |
get(GRB.DoubleAttr attr,
GRBQConstr[] qconstrs) |
double[][] |
get(GRB.DoubleAttr attr,
GRBQConstr[][] qconstrs) |
double[][][] |
get(GRB.DoubleAttr attr,
GRBQConstr[][][] qconstrs) |
double[] |
get(GRB.DoubleAttr attr,
GRBQConstr[] qconstrs,
int start,
int len) |
double[] |
get(GRB.DoubleAttr attr,
GRBVar[] vars) |
double[][] |
get(GRB.DoubleAttr attr,
GRBVar[][] vars) |
double[][][] |
get(GRB.DoubleAttr attr,
GRBVar[][][] vars) |
double[] |
get(GRB.DoubleAttr attr,
GRBVar[] vars,
int start,
int len) |
double |
get(GRB.DoubleParam param) |
int |
get(GRB.IntAttr attr) |
int[] |
get(GRB.IntAttr attr,
GRBConstr[] constrs) |
int[][] |
get(GRB.IntAttr attr,
GRBConstr[][] constrs) |
int[][][] |
get(GRB.IntAttr attr,
GRBConstr[][][] constrs) |
int[] |
get(GRB.IntAttr attr,
GRBConstr[] constrs,
int start,
int len) |
int[] |
get(GRB.IntAttr attr,
GRBGenConstr[] genconstrs) |
int[][] |
get(GRB.IntAttr attr,
GRBGenConstr[][] genconstrs) |
int[][][] |
get(GRB.IntAttr attr,
GRBGenConstr[][][] genconstrs) |
int[] |
get(GRB.IntAttr attr,
GRBGenConstr[] genconstrs,
int start,
int len) |
int[] |
get(GRB.IntAttr attr,
GRBNLConstr[] nlconstrs) |
int[] |
get(GRB.IntAttr attr,
GRBNLConstr[] nlconstrs,
int start,
int len) |
int[] |
get(GRB.IntAttr attr,
GRBQConstr[] qconstrs) |
int[][] |
get(GRB.IntAttr attr,
GRBQConstr[][] qconstrs) |
int[][][] |
get(GRB.IntAttr attr,
GRBQConstr[][][] qconstrs) |
int[] |
get(GRB.IntAttr attr,
GRBQConstr[] qconstrs,
int start,
int len) |
int[] |
get(GRB.IntAttr attr,
GRBVar[] vars) |
int[][] |
get(GRB.IntAttr attr,
GRBVar[][] vars) |
int[][][] |
get(GRB.IntAttr attr,
GRBVar[][][] vars) |
int[] |
get(GRB.IntAttr attr,
GRBVar[] vars,
int start,
int len) |
int |
get(GRB.IntParam param) |
String |
get(GRB.StringAttr attr) |
String[] |
get(GRB.StringAttr attr,
GRBConstr[] constrs) |
String[][] |
get(GRB.StringAttr attr,
GRBConstr[][] constrs) |
String[][][] |
get(GRB.StringAttr attr,
GRBConstr[][][] constrs) |
String[] |
get(GRB.StringAttr attr,
GRBConstr[] constrs,
int start,
int len) |
String[] |
get(GRB.StringAttr attr,
GRBGenConstr[] genconstrs) |
String[][] |
get(GRB.StringAttr attr,
GRBGenConstr[][] genconstrs) |
String[][][] |
get(GRB.StringAttr attr,
GRBGenConstr[][][] genconstrs) |
String[] |
get(GRB.StringAttr attr,
GRBGenConstr[] genconstrs,
int start,
int len) |
String[] |
get(GRB.StringAttr attr,
GRBNLConstr[] nlconstrs) |
String[] |
get(GRB.StringAttr attr,
GRBNLConstr[] nlconstrs,
int start,
int len) |
String[] |
get(GRB.StringAttr attr,
GRBQConstr[] qconstrs) |
String[][] |
get(GRB.StringAttr attr,
GRBQConstr[][] qconstrs) |
String[][][] |
get(GRB.StringAttr attr,
GRBQConstr[][][] qconstrs) |
String[] |
get(GRB.StringAttr attr,
GRBQConstr[] qconstrs,
int start,
int len) |
String[] |
get(GRB.StringAttr attr,
GRBVar[] vars) |
String[][] |
get(GRB.StringAttr attr,
GRBVar[][] vars) |
String[][][] |
get(GRB.StringAttr attr,
GRBVar[][][] vars) |
String[] |
get(GRB.StringAttr attr,
GRBVar[] vars,
int start,
int len) |
String |
get(GRB.StringParam param) |
double |
getCoeff(GRBConstr constr,
GRBVar var) |
GRBColumn |
getCol(GRBVar var) |
GRBEnv |
getConcurrentEnv(int num) |
GRBConstr |
getConstr(int i) |
GRBConstr |
getConstrByName(String name) |
GRBConstr[] |
getConstrs() |
GRBEnv |
getEnv() |
void |
getGenConstrAbs(GRBGenConstr genc,
GRBVar[] resvar,
GRBVar[] argvar) |
void |
getGenConstrAnd(GRBGenConstr genc,
GRBVar[] resvar,
GRBVar[] vars,
int[] len) |
void |
getGenConstrCos(GRBGenConstr genc,
GRBVar[] xvar,
GRBVar[] yvar)
Deprecated.
|
void |
getGenConstrExp(GRBGenConstr genc,
GRBVar[] xvar,
GRBVar[] yvar)
Deprecated.
|
void |
getGenConstrExpA(GRBGenConstr genc,
GRBVar[] xvar,
GRBVar[] yvar,
double[] a)
Deprecated.
|
void |
getGenConstrIndicator(GRBGenConstr genc,
GRBVar[] binvar,
int[] binval,
GRBLinExpr[] expr,
char[] sense,
double[] rhs) |
void |
getGenConstrLog(GRBGenConstr genc,
GRBVar[] xvar,
GRBVar[] yvar)
Deprecated.
|
void |
getGenConstrLogA(GRBGenConstr genc,
GRBVar[] xvar,
GRBVar[] yvar,
double[] a)
Deprecated.
|
void |
getGenConstrLogistic(GRBGenConstr genc,
GRBVar[] xvar,
GRBVar[] yvar)
Deprecated.
|
void |
getGenConstrMax(GRBGenConstr genc,
GRBVar[] resvar,
GRBVar[] vars,
int[] len,
double[] constant) |
void |
getGenConstrMin(GRBGenConstr genc,
GRBVar[] resvar,
GRBVar[] vars,
int[] len,
double[] constant) |
void |
getGenConstrNL(GRBGenConstr genc,
GRBVar[] yvar,
int[] nnodes,
int[] opcode,
double[] data,
int[] parent)
Deprecated.
|
void |
getGenConstrNorm(GRBGenConstr genc,
GRBVar[] resvar,
GRBVar[] vars,
int[] len,
double[] which) |
void |
getGenConstrOr(GRBGenConstr genc,
GRBVar[] resvar,
GRBVar[] vars,
int[] len) |
void |
getGenConstrPoly(GRBGenConstr genc,
GRBVar[] xvar,
GRBVar[] yvar,
int[] plen,
double[] p)
Deprecated.
|
void |
getGenConstrPow(GRBGenConstr genc,
GRBVar[] xvar,
GRBVar[] yvar,
double[] a)
Deprecated.
|
void |
getGenConstrPWL(GRBGenConstr genc,
GRBVar[] xvar,
GRBVar[] yvar,
int[] npts,
double[] xpts,
double[] ypts) |
GRBGenConstr[] |
getGenConstrs() |
void |
getGenConstrSin(GRBGenConstr genc,
GRBVar[] xvar,
GRBVar[] yvar)
Deprecated.
|
void |
getGenConstrTan(GRBGenConstr genc,
GRBVar[] xvar,
GRBVar[] yvar)
Deprecated.
|
String |
getJSONSolution() |
GRBEnv |
getMultiobjEnv(int index) |
GRBNLConstr |
getNLConstr(int i) |
GRBNLConstr |
getNLConstrByName(String name) |
void |
getNLConstrLHS(GRBNLConstr nlc,
int[] nnodes,
int[] opcode,
double[] data,
int[] parent) |
GRBNLConstr[] |
getNLConstrs() |
void |
getNLObj(int[] nnodes,
int[] opcode,
double[] data,
int[] parent) |
GRBExpr |
getObjective() |
GRBLinExpr |
getObjective(int index) |
int |
getPWLObj(GRBVar var,
double[] x,
double[] y) |
GRBQConstr[] |
getQConstrs() |
GRBQuadExpr |
getQCRow(GRBQConstr qc) |
GRBLinExpr |
getRow(GRBConstr constr) |
int |
getSOS(GRBSOS sos,
GRBVar[] vars,
double[] weights,
int[] type) |
GRBSOS[] |
getSOSs() |
void |
getTuneResult(int i) |
GRBVar |
getVar(int i) |
GRBVar |
getVarByName(String name) |
GRBVar[] |
getVars() |
GRBModel |
linearize() |
void |
optimize() |
void |
optimizeasync() |
String |
optimizeBatch() |
void |
prefetchAttr(GRB.CharAttr attr) |
void |
prefetchAttr(GRB.DoubleAttr attr) |
void |
prefetchAttr(GRB.IntAttr attr) |
void |
prefetchAttr(GRB.StringAttr attr) |
GRBModel |
presolve() |
void |
read(String filename) |
GRBModel |
relax() |
void |
remove(GRBConstr constr) |
void |
remove(GRBGenConstr genconstr) |
void |
remove(GRBNLConstr nlconstr) |
void |
remove(GRBQConstr qconstr) |
void |
remove(GRBSOS sos) |
void |
remove(GRBVar var) |
void |
reset() |
void |
reset(int clearall) |
void |
resetParams() |
void |
set(GRB.CharAttr attr,
GRBConstr[][][] constrs,
char[][][] newvals) |
void |
set(GRB.CharAttr attr,
GRBConstr[][] constrs,
char[][] newvals) |
void |
set(GRB.CharAttr attr,
GRBConstr[] constrs,
char[] newvals) |
void |
set(GRB.CharAttr attr,
GRBConstr[] constrs,
char[] newvals,
int start,
int len)
Deprecated.
|
void |
set(GRB.CharAttr attr,
GRBNLConstr[] nlconstrs,
char[] newvals) |
void |
set(GRB.CharAttr attr,
GRBQConstr[][][] qconstrs,
char[][][] newvals) |
void |
set(GRB.CharAttr attr,
GRBQConstr[][] qconstrs,
char[][] newvals) |
void |
set(GRB.CharAttr attr,
GRBQConstr[] qconstrs,
char[] newvals) |
void |
set(GRB.CharAttr attr,
GRBQConstr[] qconstrs,
char[] newvals,
int start,
int len)
Deprecated.
|
void |
set(GRB.CharAttr attr,
GRBVar[][][] vars,
char[][][] newvals) |
void |
set(GRB.CharAttr attr,
GRBVar[][] vars,
char[][] newvals) |
void |
set(GRB.CharAttr attr,
GRBVar[] vars,
char[] newvals) |
void |
set(GRB.CharAttr attr,
GRBVar[] vars,
char[] newvals,
int start,
int len)
Deprecated.
|
void |
set(GRB.DoubleAttr attr,
double newval) |
void |
set(GRB.DoubleAttr attr,
GRBConstr[][][] constrs,
double[][][] newvals) |
void |
set(GRB.DoubleAttr attr,
GRBConstr[][] constrs,
double[][] newvals) |
void |
set(GRB.DoubleAttr attr,
GRBConstr[] constrs,
double[] newvals) |
void |
set(GRB.DoubleAttr attr,
GRBConstr[] constrs,
double[] newvals,
int start,
int len)
Deprecated.
|
void |
set(GRB.DoubleAttr attr,
GRBGenConstr[][][] genconstrs,
double[][][] newvals) |
void |
set(GRB.DoubleAttr attr,
GRBGenConstr[][] genconstrs,
double[][] newvals) |
void |
set(GRB.DoubleAttr attr,
GRBGenConstr[] genconstrs,
double[] newvals) |
void |
set(GRB.DoubleAttr attr,
GRBGenConstr[] genconstrs,
double[] newvals,
int start,
int len)
Deprecated.
|
void |
set(GRB.DoubleAttr attr,
GRBNLConstr[] nlconstrs,
double[] newvals) |
void |
set(GRB.DoubleAttr attr,
GRBQConstr[][][] qconstrs,
double[][][] newvals) |
void |
set(GRB.DoubleAttr attr,
GRBQConstr[][] qconstrs,
double[][] newvals) |
void |
set(GRB.DoubleAttr attr,
GRBQConstr[] qconstrs,
double[] newvals) |
void |
set(GRB.DoubleAttr attr,
GRBQConstr[] qconstrs,
double[] newvals,
int start,
int len)
Deprecated.
|
void |
set(GRB.DoubleAttr attr,
GRBVar[][][] vars,
double[][][] newvals) |
void |
set(GRB.DoubleAttr attr,
GRBVar[][] vars,
double[][] newvals) |
void |
set(GRB.DoubleAttr attr,
GRBVar[] vars,
double[] newvals) |
void |
set(GRB.DoubleAttr attr,
GRBVar[] vars,
double[] newvals,
int start,
int len)
Deprecated.
|
void |
set(GRB.DoubleParam param,
double newval) |
void |
set(GRB.IntAttr attr,
GRBConstr[][][] constrs,
int[][][] newvals) |
void |
set(GRB.IntAttr attr,
GRBConstr[][] constrs,
int[][] newvals) |
void |
set(GRB.IntAttr attr,
GRBConstr[] constrs,
int[] newvals) |
void |
set(GRB.IntAttr attr,
GRBConstr[] constrs,
int[] newvals,
int start,
int len)
Deprecated.
|
void |
set(GRB.IntAttr attr,
GRBGenConstr[][][] genconstrs,
int[][][] newvals) |
void |
set(GRB.IntAttr attr,
GRBGenConstr[][] genconstrs,
int[][] newvals) |
void |
set(GRB.IntAttr attr,
GRBGenConstr[] genconstrs,
int[] newvals) |
void |
set(GRB.IntAttr attr,
GRBGenConstr[] genconstrs,
int[] newvals,
int start,
int len)
Deprecated.
|
void |
set(GRB.IntAttr attr,
GRBNLConstr[] nlconstrs,
int[] newvals) |
void |
set(GRB.IntAttr attr,
GRBQConstr[][][] qconstrs,
int[][][] newvals) |
void |
set(GRB.IntAttr attr,
GRBQConstr[][] qconstrs,
int[][] newvals) |
void |
set(GRB.IntAttr attr,
GRBQConstr[] qconstrs,
int[] newvals) |
void |
set(GRB.IntAttr attr,
GRBQConstr[] qconstrs,
int[] newvals,
int start,
int len)
Deprecated.
|
void |
set(GRB.IntAttr attr,
GRBVar[][][] vars,
int[][][] newvals) |
void |
set(GRB.IntAttr attr,
GRBVar[][] vars,
int[][] newvals) |
void |
set(GRB.IntAttr attr,
GRBVar[] vars,
int[] newvals) |
void |
set(GRB.IntAttr attr,
GRBVar[] vars,
int[] newvals,
int start,
int len)
Deprecated.
|
void |
set(GRB.IntAttr attr,
int newval) |
void |
set(GRB.IntParam param,
int newval) |
void |
set(GRB.StringAttr attr,
GRBConstr[][][] constrs,
String[][][] newvals) |
void |
set(GRB.StringAttr attr,
GRBConstr[][] constrs,
String[][] newvals) |
void |
set(GRB.StringAttr attr,
GRBConstr[] constrs,
String[] newvals) |
void |
set(GRB.StringAttr attr,
GRBConstr[] constrs,
String[] newvals,
int start,
int len)
Deprecated.
|
void |
set(GRB.StringAttr attr,
GRBGenConstr[][][] genconstrs,
String[][][] newvals) |
void |
set(GRB.StringAttr attr,
GRBGenConstr[][] genconstrs,
String[][] newvals) |
void |
set(GRB.StringAttr attr,
GRBGenConstr[] genconstrs,
String[] newvals) |
void |
set(GRB.StringAttr attr,
GRBGenConstr[] genconstrs,
String[] newvals,
int start,
int len)
Deprecated.
|
void |
set(GRB.StringAttr attr,
GRBNLConstr[] nlconstrs,
String[] newvals) |
void |
set(GRB.StringAttr attr,
GRBQConstr[][][] qconstrs,
String[][][] newvals) |
void |
set(GRB.StringAttr attr,
GRBQConstr[][] qconstrs,
String[][] newvals) |
void |
set(GRB.StringAttr attr,
GRBQConstr[] qconstrs,
String[] newvals) |
void |
set(GRB.StringAttr attr,
GRBQConstr[] qconstrs,
String[] newvals,
int start,
int len)
Deprecated.
|
void |
set(GRB.StringAttr attr,
GRBVar[][][] vars,
String[][][] newvals) |
void |
set(GRB.StringAttr attr,
GRBVar[][] vars,
String[][] newvals) |
void |
set(GRB.StringAttr attr,
GRBVar[] vars,
String[] newvals) |
void |
set(GRB.StringAttr attr,
GRBVar[] vars,
String[] newvals,
int start,
int len)
Deprecated.
|
void |
set(GRB.StringAttr attr,
String newval) |
void |
set(GRB.StringParam param,
String newval) |
void |
set(String param,
String newval) |
void |
setCallback(GRBCallback cb) |
void |
setCallback(GRBCallback cb,
int wheres) |
void |
setLogCallback(Consumer<String> logCallback) |
void |
setNLObj(int[] opcode,
double[] data,
int[] parent) |
void |
setObjective(GRBExpr expr) |
void |
setObjective(GRBExpr expr,
int sense) |
void |
setObjectiveN(GRBLinExpr expr,
int index,
int priority,
double weight,
double abstol,
double reltol,
String name) |
void |
setPWLObj(GRBVar var,
double[] x,
double[] y) |
GRBModel |
singleScenarioModel() |
void |
sync() |
void |
terminate() |
void |
tune() |
void |
update() |
void |
write(String filename) |
public GRBModel(GRBEnv env) throws GRBException
GRBExceptionpublic GRBModel(GRBEnv env, String filename) throws GRBException
GRBExceptionpublic GRBModel(GRBModel model) throws GRBException
GRBExceptionpublic GRBModel(GRBModel model, GRBEnv targetenv) throws GRBException
GRBExceptionpublic void dispose()
public void close()
throws GRBException
close in interface AutoCloseableGRBExceptionpublic void read(String filename) throws GRBException
GRBExceptionpublic void write(String filename) throws GRBException
GRBExceptionpublic void sync()
throws GRBException
GRBExceptionpublic GRBModel relax() throws GRBException
GRBExceptionpublic GRBModel fixedModel() throws GRBException
GRBExceptionpublic GRBModel presolve() throws GRBException
GRBExceptionpublic GRBModel dualize() throws GRBException
GRBExceptionpublic GRBModel feasibility() throws GRBException
GRBExceptionpublic GRBModel linearize() throws GRBException
GRBExceptionpublic GRBModel singleScenarioModel() throws GRBException
GRBExceptionpublic double feasRelax(int relaxobjtype,
boolean minrelax,
boolean vrelax,
boolean crelax)
throws GRBException
GRBExceptionpublic double feasRelax(int relaxobjtype,
boolean minrelax,
GRBVar[] vars,
double[] lbpen,
double[] ubpen,
GRBConstr[] constrs,
double[] rhspen)
throws GRBException
GRBExceptionpublic GRBVar getVar(int i)
public GRBVar[] getVars()
public GRBVar getVarByName(String name) throws GRBException
GRBExceptionpublic GRBConstr getConstr(int i)
public GRBConstr[] getConstrs()
public GRBConstr getConstrByName(String name) throws GRBException
GRBExceptionpublic GRBSOS[] getSOSs()
public GRBQConstr[] getQConstrs()
public GRBGenConstr[] getGenConstrs()
public GRBNLConstr[] getNLConstrs()
public GRBNLConstr getNLConstr(int i)
public GRBNLConstr getNLConstrByName(String name) throws GRBException
GRBExceptionpublic GRBExpr getObjective() throws GRBException
GRBExceptionpublic GRBLinExpr getObjective(int index) throws GRBException
GRBExceptionpublic int getPWLObj(GRBVar var, double[] x, double[] y) throws GRBException
GRBExceptionpublic void setObjective(GRBExpr expr) throws GRBException
GRBExceptionpublic void setObjective(GRBExpr expr, int sense) throws GRBException
GRBExceptionpublic void setObjectiveN(GRBLinExpr expr, int index, int priority, double weight, double abstol, double reltol, String name) throws GRBException
GRBExceptionpublic void setPWLObj(GRBVar var, double[] x, double[] y) throws GRBException
GRBExceptionpublic void setNLObj(int[] opcode,
double[] data,
int[] parent)
throws GRBException
GRBExceptionpublic void getNLObj(int[] nnodes,
int[] opcode,
double[] data,
int[] parent)
throws GRBException
GRBExceptionpublic void delNLObj()
throws GRBException
GRBExceptionpublic GRBNLConstr addNLConstr(int[] opcode, double[] data, int[] parent, char sense, double rhs, String name) throws GRBException
GRBExceptionpublic void getNLConstrLHS(GRBNLConstr nlc, int[] nnodes, int[] opcode, double[] data, int[] parent) throws GRBException
GRBExceptionpublic void optimize()
throws GRBException
GRBExceptionpublic void optimizeasync()
throws GRBException
GRBExceptionpublic String optimizeBatch() throws GRBException
GRBExceptionpublic void convertToFixed()
throws GRBException
GRBExceptionpublic void computeIIS()
throws GRBException
GRBExceptionpublic void tune()
throws GRBException
GRBExceptionpublic void getTuneResult(int i)
throws GRBException
GRBExceptionpublic void reset()
throws GRBException
GRBExceptionpublic void reset(int clearall)
throws GRBException
GRBExceptionpublic void check()
throws GRBException
GRBExceptionpublic void terminate()
public void update()
throws GRBException
GRBExceptionpublic GRBVar addVar(double lb, double ub, double obj, char type, String name) throws GRBException
GRBExceptionpublic GRBVar addVar(double lb, double ub, double obj, char type, GRBConstr[] constrs, double[] coeffs, String name) throws GRBException
GRBExceptionpublic GRBVar addVar(double lb, double ub, double obj, char type, GRBColumn col, String name) throws GRBException
GRBExceptionpublic GRBVar[] addVars(int count, char type) throws GRBException
GRBExceptionpublic GRBVar[] addVars(double[] lb, double[] ub, double[] obj, char[] type, String[] names) throws GRBException
GRBExceptionpublic GRBVar[] addVars(double[] lb, double[] ub, double[] obj, char[] type, String[] names, int start, int len) throws GRBException
GRBExceptionpublic GRBVar[] addVars(double[] lb, double[] ub, double[] obj, char[] type, String[] names, GRBColumn[] cols) throws GRBException
GRBExceptionpublic GRBConstr addConstr(GRBLinExpr lhsExpr, char sense, GRBLinExpr rhsExpr, String name) throws GRBException
GRBExceptionpublic GRBConstr addConstr(GRBLinExpr lhsExpr, char sense, GRBVar rhsVar, String name) throws GRBException
GRBExceptionpublic GRBConstr addConstr(GRBVar lhsVar, char sense, GRBLinExpr rhsExpr, String name) throws GRBException
GRBExceptionpublic GRBConstr addConstr(GRBVar lhsVar, char sense, GRBVar rhsVar, String name) throws GRBException
GRBExceptionpublic GRBConstr addConstr(GRBVar lhsVar, char sense, double rhs, String name) throws GRBException
GRBExceptionpublic GRBConstr addConstr(double lhs, char sense, GRBVar rhsVar, String name) throws GRBException
GRBExceptionpublic GRBConstr addConstr(GRBLinExpr lhsExpr, char sense, double rhs, String name) throws GRBException
GRBExceptionpublic GRBConstr addConstr(double lhs, char sense, GRBLinExpr rhsExpr, String name) throws GRBException
GRBExceptionpublic GRBConstr addRange(GRBLinExpr expr, double lower, double upper, String name) throws GRBException
GRBExceptionpublic GRBConstr[] addConstrs(int count) throws GRBException
GRBExceptionpublic GRBConstr[] addConstrs(GRBLinExpr[] lhsExprs, char[] senses, double[] rhss, String[] names) throws GRBException
GRBExceptionpublic GRBConstr[] addConstrs(GRBLinExpr[] lhsExprs, char[] senses, double[] rhss, String[] names, int start, int len) throws GRBException
GRBExceptionpublic GRBConstr[] addRanges(GRBLinExpr[] exprs, double[] lower, double[] upper, String[] names) throws GRBException
GRBExceptionpublic GRBQConstr addQConstr(GRBQuadExpr lhsExpr, char sense, GRBQuadExpr rhsExpr, String name) throws GRBException
GRBExceptionpublic GRBQConstr addQConstr(GRBQuadExpr lhsExpr, char sense, GRBLinExpr rhsExpr, String name) throws GRBException
GRBExceptionpublic GRBQConstr addQConstr(GRBLinExpr lhsExpr, char sense, GRBQuadExpr rhsExpr, String name) throws GRBException
GRBExceptionpublic GRBQConstr addQConstr(GRBQuadExpr lhsExpr, char sense, GRBVar rhsVar, String name) throws GRBException
GRBExceptionpublic GRBQConstr addQConstr(GRBVar lhsVar, char sense, GRBQuadExpr rhsExpr, String name) throws GRBException
GRBExceptionpublic GRBQConstr addQConstr(GRBQuadExpr lhsExpr, char sense, double rhs, String name) throws GRBException
GRBExceptionpublic GRBQConstr addQConstr(double lhs, char sense, GRBQuadExpr rhsExpr, String name) throws GRBException
GRBExceptionpublic GRBGenConstr addGenConstrMax(GRBVar resvar, GRBVar[] vars, double constant, String name) throws GRBException
GRBExceptionpublic GRBGenConstr addGenConstrMin(GRBVar resvar, GRBVar[] vars, double constant, String name) throws GRBException
GRBExceptionpublic GRBGenConstr addGenConstrAbs(GRBVar resvar, GRBVar argvar, String name) throws GRBException
GRBExceptionpublic GRBGenConstr addGenConstrAnd(GRBVar resvar, GRBVar[] vars, String name) throws GRBException
GRBExceptionpublic GRBGenConstr addGenConstrOr(GRBVar resvar, GRBVar[] vars, String name) throws GRBException
GRBExceptionpublic GRBGenConstr addGenConstrNorm(GRBVar resvar, GRBVar[] vars, double which, String name) throws GRBException
GRBExceptionpublic GRBGenConstr addGenConstrIndicator(GRBVar binvar, int binval, GRBLinExpr expr, char sense, double rhs, String name) throws GRBException
GRBExceptionpublic GRBGenConstr addGenConstrPWL(GRBVar xvar, GRBVar yvar, double[] xpts, double[] ypts, String name) throws GRBException
GRBException@Deprecated public GRBGenConstr addGenConstrPoly(GRBVar xvar, GRBVar yvar, double[] p, String name, String options) throws GRBException
GRBException@Deprecated public GRBGenConstr addGenConstrExp(GRBVar xvar, GRBVar yvar, String name, String options) throws GRBException
GRBException@Deprecated public GRBGenConstr addGenConstrExpA(GRBVar xvar, GRBVar yvar, double a, String name, String options) throws GRBException
GRBException@Deprecated public GRBGenConstr addGenConstrLog(GRBVar xvar, GRBVar yvar, String name, String options) throws GRBException
GRBException@Deprecated public GRBGenConstr addGenConstrLogA(GRBVar xvar, GRBVar yvar, double a, String name, String options) throws GRBException
GRBException@Deprecated public GRBGenConstr addGenConstrPow(GRBVar xvar, GRBVar yvar, double a, String name, String options) throws GRBException
GRBException@Deprecated public GRBGenConstr addGenConstrSin(GRBVar xvar, GRBVar yvar, String name, String options) throws GRBException
GRBException@Deprecated public GRBGenConstr addGenConstrCos(GRBVar xvar, GRBVar yvar, String name, String options) throws GRBException
GRBException@Deprecated public GRBGenConstr addGenConstrTan(GRBVar xvar, GRBVar yvar, String name, String options) throws GRBException
GRBException@Deprecated public GRBGenConstr addGenConstrLogistic(GRBVar xvar, GRBVar yvar, String name, String options) throws GRBException
GRBException@Deprecated public GRBGenConstr addGenConstrNL(GRBVar yvar, int[] opcode, double[] data, int[] parent, String name) throws GRBException
GRBExceptionpublic void remove(GRBVar var) throws GRBException
GRBExceptionpublic void remove(GRBConstr constr) throws GRBException
GRBExceptionpublic void chgCoeff(GRBConstr constr, GRBVar var, double newval) throws GRBException
GRBExceptionpublic void chgCoeffs(GRBConstr[] constrs, GRBVar[] vars, double[] newvals) throws GRBException
GRBExceptionpublic double getCoeff(GRBConstr constr, GRBVar var) throws GRBException
GRBExceptionpublic GRBColumn getCol(GRBVar var) throws GRBException
GRBExceptionpublic GRBLinExpr getRow(GRBConstr constr) throws GRBException
GRBExceptionpublic GRBSOS addSOS(GRBVar[] vars, double[] weights, int type) throws GRBException
GRBExceptionpublic int getSOS(GRBSOS sos, GRBVar[] vars, double[] weights, int[] type) throws GRBException
GRBExceptionpublic void getGenConstrMax(GRBGenConstr genc, GRBVar[] resvar, GRBVar[] vars, int[] len, double[] constant) throws GRBException
GRBExceptionpublic void getGenConstrMin(GRBGenConstr genc, GRBVar[] resvar, GRBVar[] vars, int[] len, double[] constant) throws GRBException
GRBExceptionpublic void getGenConstrAbs(GRBGenConstr genc, GRBVar[] resvar, GRBVar[] argvar) throws GRBException
GRBExceptionpublic void getGenConstrAnd(GRBGenConstr genc, GRBVar[] resvar, GRBVar[] vars, int[] len) throws GRBException
GRBExceptionpublic void getGenConstrOr(GRBGenConstr genc, GRBVar[] resvar, GRBVar[] vars, int[] len) throws GRBException
GRBExceptionpublic void getGenConstrNorm(GRBGenConstr genc, GRBVar[] resvar, GRBVar[] vars, int[] len, double[] which) throws GRBException
GRBExceptionpublic void getGenConstrIndicator(GRBGenConstr genc, GRBVar[] binvar, int[] binval, GRBLinExpr[] expr, char[] sense, double[] rhs) throws GRBException
GRBExceptionpublic void getGenConstrPWL(GRBGenConstr genc, GRBVar[] xvar, GRBVar[] yvar, int[] npts, double[] xpts, double[] ypts) throws GRBException
GRBException@Deprecated public void getGenConstrPoly(GRBGenConstr genc, GRBVar[] xvar, GRBVar[] yvar, int[] plen, double[] p) throws GRBException
GRBException@Deprecated public void getGenConstrExp(GRBGenConstr genc, GRBVar[] xvar, GRBVar[] yvar) throws GRBException
GRBException@Deprecated public void getGenConstrExpA(GRBGenConstr genc, GRBVar[] xvar, GRBVar[] yvar, double[] a) throws GRBException
GRBException@Deprecated public void getGenConstrLog(GRBGenConstr genc, GRBVar[] xvar, GRBVar[] yvar) throws GRBException
GRBException@Deprecated public void getGenConstrLogA(GRBGenConstr genc, GRBVar[] xvar, GRBVar[] yvar, double[] a) throws GRBException
GRBException@Deprecated public void getGenConstrPow(GRBGenConstr genc, GRBVar[] xvar, GRBVar[] yvar, double[] a) throws GRBException
GRBException@Deprecated public void getGenConstrSin(GRBGenConstr genc, GRBVar[] xvar, GRBVar[] yvar) throws GRBException
GRBException@Deprecated public void getGenConstrCos(GRBGenConstr genc, GRBVar[] xvar, GRBVar[] yvar) throws GRBException
GRBException@Deprecated public void getGenConstrTan(GRBGenConstr genc, GRBVar[] xvar, GRBVar[] yvar) throws GRBException
GRBException@Deprecated public void getGenConstrLogistic(GRBGenConstr genc, GRBVar[] xvar, GRBVar[] yvar) throws GRBException
GRBException@Deprecated public void getGenConstrNL(GRBGenConstr genc, GRBVar[] yvar, int[] nnodes, int[] opcode, double[] data, int[] parent) throws GRBException
GRBExceptionpublic GRBQuadExpr getQCRow(GRBQConstr qc) throws GRBException
GRBExceptionpublic void remove(GRBSOS sos) throws GRBException
GRBExceptionpublic void remove(GRBQConstr qconstr) throws GRBException
GRBExceptionpublic void remove(GRBGenConstr genconstr) throws GRBException
GRBExceptionpublic void remove(GRBNLConstr nlconstr) throws GRBException
GRBExceptionpublic GRBEnv getEnv() throws GRBException
GRBExceptionpublic GRBEnv getConcurrentEnv(int num) throws GRBException
GRBExceptionpublic void discardConcurrentEnvs()
throws GRBException
GRBExceptionpublic String getJSONSolution() throws GRBException
GRBExceptionpublic GRBEnv getMultiobjEnv(int index) throws GRBException
GRBExceptionpublic void discardMultiobjEnvs()
throws GRBException
GRBExceptionpublic int get(GRB.IntParam param) throws GRBException
GRBExceptionpublic double get(GRB.DoubleParam param) throws GRBException
GRBExceptionpublic String get(GRB.StringParam param) throws GRBException
GRBExceptionpublic void set(GRB.IntParam param, int newval) throws GRBException
GRBExceptionpublic void set(GRB.DoubleParam param, double newval) throws GRBException
GRBExceptionpublic void set(GRB.StringParam param, String newval) throws GRBException
GRBExceptionpublic void set(String param, String newval) throws GRBException
GRBExceptionpublic void resetParams()
throws GRBException
GRBExceptionpublic int get(GRB.IntAttr attr) throws GRBException
GRBExceptionpublic double get(GRB.DoubleAttr attr) throws GRBException
GRBExceptionpublic String get(GRB.StringAttr attr) throws GRBException
GRBExceptionpublic void set(GRB.IntAttr attr, int newval) throws GRBException
GRBExceptionpublic void set(GRB.DoubleAttr attr, double newval) throws GRBException
GRBExceptionpublic void set(GRB.StringAttr attr, String newval) throws GRBException
GRBExceptionpublic int[] get(GRB.IntAttr attr, GRBVar[] vars) throws GRBException
GRBExceptionpublic char[] get(GRB.CharAttr attr, GRBVar[] vars) throws GRBException
GRBExceptionpublic double[] get(GRB.DoubleAttr attr, GRBVar[] vars) throws GRBException
GRBExceptionpublic String[] get(GRB.StringAttr attr, GRBVar[] vars) throws GRBException
GRBExceptionpublic int[] get(GRB.IntAttr attr, GRBVar[] vars, int start, int len) throws GRBException
GRBExceptionpublic char[] get(GRB.CharAttr attr, GRBVar[] vars, int start, int len) throws GRBException
GRBExceptionpublic double[] get(GRB.DoubleAttr attr, GRBVar[] vars, int start, int len) throws GRBException
GRBExceptionpublic String[] get(GRB.StringAttr attr, GRBVar[] vars, int start, int len) throws GRBException
GRBExceptionpublic int[][] get(GRB.IntAttr attr, GRBVar[][] vars) throws GRBException
GRBExceptionpublic char[][] get(GRB.CharAttr attr, GRBVar[][] vars) throws GRBException
GRBExceptionpublic double[][] get(GRB.DoubleAttr attr, GRBVar[][] vars) throws GRBException
GRBExceptionpublic String[][] get(GRB.StringAttr attr, GRBVar[][] vars) throws GRBException
GRBExceptionpublic int[][][] get(GRB.IntAttr attr, GRBVar[][][] vars) throws GRBException
GRBExceptionpublic char[][][] get(GRB.CharAttr attr, GRBVar[][][] vars) throws GRBException
GRBExceptionpublic double[][][] get(GRB.DoubleAttr attr, GRBVar[][][] vars) throws GRBException
GRBExceptionpublic String[][][] get(GRB.StringAttr attr, GRBVar[][][] vars) throws GRBException
GRBExceptionpublic int[] get(GRB.IntAttr attr, GRBConstr[] constrs) throws GRBException
GRBExceptionpublic char[] get(GRB.CharAttr attr, GRBConstr[] constrs) throws GRBException
GRBExceptionpublic double[] get(GRB.DoubleAttr attr, GRBConstr[] constrs) throws GRBException
GRBExceptionpublic String[] get(GRB.StringAttr attr, GRBConstr[] constrs) throws GRBException
GRBExceptionpublic int[] get(GRB.IntAttr attr, GRBConstr[] constrs, int start, int len) throws GRBException
GRBExceptionpublic char[] get(GRB.CharAttr attr, GRBConstr[] constrs, int start, int len) throws GRBException
GRBExceptionpublic double[] get(GRB.DoubleAttr attr, GRBConstr[] constrs, int start, int len) throws GRBException
GRBExceptionpublic String[] get(GRB.StringAttr attr, GRBConstr[] constrs, int start, int len) throws GRBException
GRBExceptionpublic int[][] get(GRB.IntAttr attr, GRBConstr[][] constrs) throws GRBException
GRBExceptionpublic char[][] get(GRB.CharAttr attr, GRBConstr[][] constrs) throws GRBException
GRBExceptionpublic double[][] get(GRB.DoubleAttr attr, GRBConstr[][] constrs) throws GRBException
GRBExceptionpublic String[][] get(GRB.StringAttr attr, GRBConstr[][] constrs) throws GRBException
GRBExceptionpublic int[][][] get(GRB.IntAttr attr, GRBConstr[][][] constrs) throws GRBException
GRBExceptionpublic char[][][] get(GRB.CharAttr attr, GRBConstr[][][] constrs) throws GRBException
GRBExceptionpublic double[][][] get(GRB.DoubleAttr attr, GRBConstr[][][] constrs) throws GRBException
GRBExceptionpublic String[][][] get(GRB.StringAttr attr, GRBConstr[][][] constrs) throws GRBException
GRBExceptionpublic int[] get(GRB.IntAttr attr, GRBQConstr[] qconstrs) throws GRBException
GRBExceptionpublic char[] get(GRB.CharAttr attr, GRBQConstr[] qconstrs) throws GRBException
GRBExceptionpublic double[] get(GRB.DoubleAttr attr, GRBQConstr[] qconstrs) throws GRBException
GRBExceptionpublic String[] get(GRB.StringAttr attr, GRBQConstr[] qconstrs) throws GRBException
GRBExceptionpublic int[] get(GRB.IntAttr attr, GRBQConstr[] qconstrs, int start, int len) throws GRBException
GRBExceptionpublic char[] get(GRB.CharAttr attr, GRBQConstr[] qconstrs, int start, int len) throws GRBException
GRBExceptionpublic double[] get(GRB.DoubleAttr attr, GRBQConstr[] qconstrs, int start, int len) throws GRBException
GRBExceptionpublic String[] get(GRB.StringAttr attr, GRBQConstr[] qconstrs, int start, int len) throws GRBException
GRBExceptionpublic int[][] get(GRB.IntAttr attr, GRBQConstr[][] qconstrs) throws GRBException
GRBExceptionpublic char[][] get(GRB.CharAttr attr, GRBQConstr[][] qconstrs) throws GRBException
GRBExceptionpublic double[][] get(GRB.DoubleAttr attr, GRBQConstr[][] qconstrs) throws GRBException
GRBExceptionpublic String[][] get(GRB.StringAttr attr, GRBQConstr[][] qconstrs) throws GRBException
GRBExceptionpublic int[][][] get(GRB.IntAttr attr, GRBQConstr[][][] qconstrs) throws GRBException
GRBExceptionpublic char[][][] get(GRB.CharAttr attr, GRBQConstr[][][] qconstrs) throws GRBException
GRBExceptionpublic double[][][] get(GRB.DoubleAttr attr, GRBQConstr[][][] qconstrs) throws GRBException
GRBExceptionpublic String[][][] get(GRB.StringAttr attr, GRBQConstr[][][] qconstrs) throws GRBException
GRBExceptionpublic int[] get(GRB.IntAttr attr, GRBGenConstr[] genconstrs) throws GRBException
GRBExceptionpublic double[] get(GRB.DoubleAttr attr, GRBGenConstr[] genconstrs) throws GRBException
GRBExceptionpublic String[] get(GRB.StringAttr attr, GRBGenConstr[] genconstrs) throws GRBException
GRBExceptionpublic int[] get(GRB.IntAttr attr, GRBGenConstr[] genconstrs, int start, int len) throws GRBException
GRBExceptionpublic double[] get(GRB.DoubleAttr attr, GRBGenConstr[] genconstrs, int start, int len) throws GRBException
GRBExceptionpublic String[] get(GRB.StringAttr attr, GRBGenConstr[] genconstrs, int start, int len) throws GRBException
GRBExceptionpublic int[][] get(GRB.IntAttr attr, GRBGenConstr[][] genconstrs) throws GRBException
GRBExceptionpublic double[][] get(GRB.DoubleAttr attr, GRBGenConstr[][] genconstrs) throws GRBException
GRBExceptionpublic String[][] get(GRB.StringAttr attr, GRBGenConstr[][] genconstrs) throws GRBException
GRBExceptionpublic int[][][] get(GRB.IntAttr attr, GRBGenConstr[][][] genconstrs) throws GRBException
GRBExceptionpublic double[][][] get(GRB.DoubleAttr attr, GRBGenConstr[][][] genconstrs) throws GRBException
GRBExceptionpublic String[][][] get(GRB.StringAttr attr, GRBGenConstr[][][] genconstrs) throws GRBException
GRBExceptionpublic int[] get(GRB.IntAttr attr, GRBNLConstr[] nlconstrs) throws GRBException
GRBExceptionpublic char[] get(GRB.CharAttr attr, GRBNLConstr[] nlconstrs) throws GRBException
GRBExceptionpublic double[] get(GRB.DoubleAttr attr, GRBNLConstr[] nlconstrs) throws GRBException
GRBExceptionpublic String[] get(GRB.StringAttr attr, GRBNLConstr[] nlconstrs) throws GRBException
GRBExceptionpublic int[] get(GRB.IntAttr attr, GRBNLConstr[] nlconstrs, int start, int len) throws GRBException
GRBExceptionpublic char[] get(GRB.CharAttr attr, GRBNLConstr[] nlconstrs, int start, int len) throws GRBException
GRBExceptionpublic double[] get(GRB.DoubleAttr attr, GRBNLConstr[] nlconstrs, int start, int len) throws GRBException
GRBExceptionpublic String[] get(GRB.StringAttr attr, GRBNLConstr[] nlconstrs, int start, int len) throws GRBException
GRBExceptionpublic void set(GRB.IntAttr attr, GRBVar[] vars, int[] newvals) throws GRBException
GRBExceptionpublic void set(GRB.CharAttr attr, GRBVar[] vars, char[] newvals) throws GRBException
GRBExceptionpublic void set(GRB.DoubleAttr attr, GRBVar[] vars, double[] newvals) throws GRBException
GRBExceptionpublic void set(GRB.StringAttr attr, GRBVar[] vars, String[] newvals) throws GRBException
GRBException@Deprecated public void set(GRB.IntAttr attr, GRBVar[] vars, int[] newvals, int start, int len) throws GRBException
GRBException@Deprecated public void set(GRB.CharAttr attr, GRBVar[] vars, char[] newvals, int start, int len) throws GRBException
GRBException@Deprecated public void set(GRB.DoubleAttr attr, GRBVar[] vars, double[] newvals, int start, int len) throws GRBException
GRBException@Deprecated public void set(GRB.StringAttr attr, GRBVar[] vars, String[] newvals, int start, int len) throws GRBException
GRBExceptionpublic void set(GRB.IntAttr attr, GRBVar[][] vars, int[][] newvals) throws GRBException
GRBExceptionpublic void set(GRB.CharAttr attr, GRBVar[][] vars, char[][] newvals) throws GRBException
GRBExceptionpublic void set(GRB.DoubleAttr attr, GRBVar[][] vars, double[][] newvals) throws GRBException
GRBExceptionpublic void set(GRB.StringAttr attr, GRBVar[][] vars, String[][] newvals) throws GRBException
GRBExceptionpublic void set(GRB.IntAttr attr, GRBVar[][][] vars, int[][][] newvals) throws GRBException
GRBExceptionpublic void set(GRB.CharAttr attr, GRBVar[][][] vars, char[][][] newvals) throws GRBException
GRBExceptionpublic void set(GRB.DoubleAttr attr, GRBVar[][][] vars, double[][][] newvals) throws GRBException
GRBExceptionpublic void set(GRB.StringAttr attr, GRBVar[][][] vars, String[][][] newvals) throws GRBException
GRBExceptionpublic void set(GRB.IntAttr attr, GRBConstr[] constrs, int[] newvals) throws GRBException
GRBExceptionpublic void set(GRB.CharAttr attr, GRBConstr[] constrs, char[] newvals) throws GRBException
GRBExceptionpublic void set(GRB.DoubleAttr attr, GRBConstr[] constrs, double[] newvals) throws GRBException
GRBExceptionpublic void set(GRB.StringAttr attr, GRBConstr[] constrs, String[] newvals) throws GRBException
GRBException@Deprecated public void set(GRB.IntAttr attr, GRBConstr[] constrs, int[] newvals, int start, int len) throws GRBException
GRBException@Deprecated public void set(GRB.CharAttr attr, GRBConstr[] constrs, char[] newvals, int start, int len) throws GRBException
GRBException@Deprecated public void set(GRB.DoubleAttr attr, GRBConstr[] constrs, double[] newvals, int start, int len) throws GRBException
GRBException@Deprecated public void set(GRB.StringAttr attr, GRBConstr[] constrs, String[] newvals, int start, int len) throws GRBException
GRBExceptionpublic void set(GRB.IntAttr attr, GRBConstr[][] constrs, int[][] newvals) throws GRBException
GRBExceptionpublic void set(GRB.CharAttr attr, GRBConstr[][] constrs, char[][] newvals) throws GRBException
GRBExceptionpublic void set(GRB.DoubleAttr attr, GRBConstr[][] constrs, double[][] newvals) throws GRBException
GRBExceptionpublic void set(GRB.StringAttr attr, GRBConstr[][] constrs, String[][] newvals) throws GRBException
GRBExceptionpublic void set(GRB.IntAttr attr, GRBConstr[][][] constrs, int[][][] newvals) throws GRBException
GRBExceptionpublic void set(GRB.CharAttr attr, GRBConstr[][][] constrs, char[][][] newvals) throws GRBException
GRBExceptionpublic void set(GRB.DoubleAttr attr, GRBConstr[][][] constrs, double[][][] newvals) throws GRBException
GRBExceptionpublic void set(GRB.StringAttr attr, GRBConstr[][][] constrs, String[][][] newvals) throws GRBException
GRBExceptionpublic void set(GRB.IntAttr attr, GRBQConstr[] qconstrs, int[] newvals) throws GRBException
GRBExceptionpublic void set(GRB.CharAttr attr, GRBQConstr[] qconstrs, char[] newvals) throws GRBException
GRBExceptionpublic void set(GRB.DoubleAttr attr, GRBQConstr[] qconstrs, double[] newvals) throws GRBException
GRBExceptionpublic void set(GRB.StringAttr attr, GRBQConstr[] qconstrs, String[] newvals) throws GRBException
GRBException@Deprecated public void set(GRB.IntAttr attr, GRBQConstr[] qconstrs, int[] newvals, int start, int len) throws GRBException
GRBException@Deprecated public void set(GRB.CharAttr attr, GRBQConstr[] qconstrs, char[] newvals, int start, int len) throws GRBException
GRBException@Deprecated public void set(GRB.DoubleAttr attr, GRBQConstr[] qconstrs, double[] newvals, int start, int len) throws GRBException
GRBException@Deprecated public void set(GRB.StringAttr attr, GRBQConstr[] qconstrs, String[] newvals, int start, int len) throws GRBException
GRBExceptionpublic void set(GRB.IntAttr attr, GRBQConstr[][] qconstrs, int[][] newvals) throws GRBException
GRBExceptionpublic void set(GRB.CharAttr attr, GRBQConstr[][] qconstrs, char[][] newvals) throws GRBException
GRBExceptionpublic void set(GRB.DoubleAttr attr, GRBQConstr[][] qconstrs, double[][] newvals) throws GRBException
GRBExceptionpublic void set(GRB.StringAttr attr, GRBQConstr[][] qconstrs, String[][] newvals) throws GRBException
GRBExceptionpublic void set(GRB.IntAttr attr, GRBQConstr[][][] qconstrs, int[][][] newvals) throws GRBException
GRBExceptionpublic void set(GRB.CharAttr attr, GRBQConstr[][][] qconstrs, char[][][] newvals) throws GRBException
GRBExceptionpublic void set(GRB.DoubleAttr attr, GRBQConstr[][][] qconstrs, double[][][] newvals) throws GRBException
GRBExceptionpublic void set(GRB.StringAttr attr, GRBQConstr[][][] qconstrs, String[][][] newvals) throws GRBException
GRBExceptionpublic void set(GRB.IntAttr attr, GRBGenConstr[] genconstrs, int[] newvals) throws GRBException
GRBExceptionpublic void set(GRB.DoubleAttr attr, GRBGenConstr[] genconstrs, double[] newvals) throws GRBException
GRBExceptionpublic void set(GRB.StringAttr attr, GRBGenConstr[] genconstrs, String[] newvals) throws GRBException
GRBException@Deprecated public void set(GRB.IntAttr attr, GRBGenConstr[] genconstrs, int[] newvals, int start, int len) throws GRBException
GRBException@Deprecated public void set(GRB.DoubleAttr attr, GRBGenConstr[] genconstrs, double[] newvals, int start, int len) throws GRBException
GRBException@Deprecated public void set(GRB.StringAttr attr, GRBGenConstr[] genconstrs, String[] newvals, int start, int len) throws GRBException
GRBExceptionpublic void set(GRB.IntAttr attr, GRBGenConstr[][] genconstrs, int[][] newvals) throws GRBException
GRBExceptionpublic void set(GRB.DoubleAttr attr, GRBGenConstr[][] genconstrs, double[][] newvals) throws GRBException
GRBExceptionpublic void set(GRB.StringAttr attr, GRBGenConstr[][] genconstrs, String[][] newvals) throws GRBException
GRBExceptionpublic void set(GRB.IntAttr attr, GRBGenConstr[][][] genconstrs, int[][][] newvals) throws GRBException
GRBExceptionpublic void set(GRB.DoubleAttr attr, GRBGenConstr[][][] genconstrs, double[][][] newvals) throws GRBException
GRBExceptionpublic void set(GRB.StringAttr attr, GRBGenConstr[][][] genconstrs, String[][][] newvals) throws GRBException
GRBExceptionpublic void set(GRB.IntAttr attr, GRBNLConstr[] nlconstrs, int[] newvals) throws GRBException
GRBExceptionpublic void set(GRB.CharAttr attr, GRBNLConstr[] nlconstrs, char[] newvals) throws GRBException
GRBExceptionpublic void set(GRB.DoubleAttr attr, GRBNLConstr[] nlconstrs, double[] newvals) throws GRBException
GRBExceptionpublic void set(GRB.StringAttr attr, GRBNLConstr[] nlconstrs, String[] newvals) throws GRBException
GRBExceptionpublic void prefetchAttr(GRB.IntAttr attr) throws GRBException
GRBExceptionpublic void prefetchAttr(GRB.CharAttr attr) throws GRBException
GRBExceptionpublic void prefetchAttr(GRB.DoubleAttr attr) throws GRBException
GRBExceptionpublic void prefetchAttr(GRB.StringAttr attr) throws GRBException
GRBExceptionpublic void setCallback(GRBCallback cb) throws GRBException
GRBExceptionpublic void setCallback(GRBCallback cb, int wheres) throws GRBException
GRBExceptionpublic void setLogCallback(Consumer<String> logCallback) throws GRBException
GRBExceptionpublic int FSolve(int blen,
int[] bind,
double[] bval,
int[] xind,
double[] xval)
throws GRBException
GRBExceptionpublic int BinvColj(int col,
int[] xind,
double[] xval)
throws GRBException
GRBExceptionpublic int Binvj(int j,
int[] xind,
double[] xval)
throws GRBException
GRBExceptionpublic int BSolve(int blen,
int[] bind,
double[] bval,
int[] xind,
double[] xval)
throws GRBException
GRBExceptionpublic int Binvi(int i,
int[] xind,
double[] xval)
throws GRBException
GRBExceptionpublic int BinvRowi(int i,
int[] xind,
double[] xval)
throws GRBException
GRBExceptionpublic void BasisHead(int[] bhead)
throws GRBException
GRBExceptionCopyright © 2026 Gurobi Optimization, LLC. All rights reserved.