public abstract class GRBCallback extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
where |
| Constructor and Description |
|---|
GRBCallback() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
abort() |
protected void |
addCut(GRBLinExpr expr,
char sense,
double rhs) |
protected void |
addLazy(GRBLinExpr expr,
char sense,
double rhs) |
protected abstract void |
callback() |
protected void |
finalize() |
protected double |
getDoubleInfo(int what) |
protected int |
getIntInfo(int what) |
protected double |
getNodeRel(GRBVar v) |
protected double[] |
getNodeRel(GRBVar[] xvars) |
protected double[][] |
getNodeRel(GRBVar[][] xvars) |
protected double |
getSolution(GRBVar v) |
protected double[] |
getSolution(GRBVar[] xvars) |
protected double[][] |
getSolution(GRBVar[][] xvars) |
protected String |
getStringInfo(int what) |
void |
proceed() |
protected void |
set(GRB.DoubleParam param,
double newvalue) |
protected void |
set(GRB.IntParam param,
int newvalue) |
protected void |
set(GRB.StringParam param,
String newvalue) |
protected void |
setSolution(GRBVar[] xvars,
double[] sol) |
protected void |
setSolution(GRBVar v,
double val) |
protected void |
stopOneMultiObj(int objnum) |
protected double |
useSolution() |
protected abstract void callback()
protected double getDoubleInfo(int what)
throws GRBException
GRBExceptionprotected int getIntInfo(int what)
throws GRBException
GRBExceptionprotected String getStringInfo(int what) throws GRBException
GRBExceptionprotected double getSolution(GRBVar v) throws GRBException
GRBExceptionprotected double[] getSolution(GRBVar[] xvars) throws GRBException
GRBExceptionprotected double[][] getSolution(GRBVar[][] xvars) throws GRBException
GRBExceptionprotected double getNodeRel(GRBVar v) throws GRBException
GRBExceptionprotected double[] getNodeRel(GRBVar[] xvars) throws GRBException
GRBExceptionprotected double[][] getNodeRel(GRBVar[][] xvars) throws GRBException
GRBExceptionprotected void setSolution(GRBVar v, double val) throws GRBException
GRBExceptionprotected void setSolution(GRBVar[] xvars, double[] sol) throws GRBException
GRBExceptionprotected double useSolution()
throws GRBException
GRBExceptionprotected void addCut(GRBLinExpr expr, char sense, double rhs) throws GRBException
GRBExceptionprotected void addLazy(GRBLinExpr expr, char sense, double rhs) throws GRBException
GRBExceptionprotected void abort()
public void proceed()
throws GRBException
GRBExceptionprotected void stopOneMultiObj(int objnum)
throws GRBException
GRBExceptionprotected void set(GRB.IntParam param, int newvalue) throws GRBException
GRBExceptionprotected void set(GRB.DoubleParam param, double newvalue) throws GRBException
GRBExceptionprotected void set(GRB.StringParam param, String newvalue) throws GRBException
GRBExceptionCopyright © 2025 Gurobi Optimization, LLC. All rights reserved.