gurobi
Class GRBCallback

java.lang.Object
  extended by gurobi.GRBCallback

public abstract class GRBCallback
extends java.lang.Object


Field Summary
protected  int where
           
 
Constructor Summary
GRBCallback()
           
 
Method Summary
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  java.lang.String getStringInfo(int what)
           
protected  void setSolution(GRBVar[] xvars, double[] sol)
           
protected  void setSolution(GRBVar v, double val)
           
protected  void stopOneMultiObj(int objnum)
           
protected  double useSolution()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

where

protected int where
Constructor Detail

GRBCallback

public GRBCallback()
Method Detail

callback

protected abstract void callback()

finalize

protected void finalize()
Overrides:
finalize in class java.lang.Object

getDoubleInfo

protected double getDoubleInfo(int what)
                        throws GRBException
Throws:
GRBException

getIntInfo

protected int getIntInfo(int what)
                  throws GRBException
Throws:
GRBException

getStringInfo

protected java.lang.String getStringInfo(int what)
                                  throws GRBException
Throws:
GRBException

getSolution

protected double getSolution(GRBVar v)
                      throws GRBException
Throws:
GRBException

getSolution

protected double[] getSolution(GRBVar[] xvars)
                        throws GRBException
Throws:
GRBException

getSolution

protected double[][] getSolution(GRBVar[][] xvars)
                          throws GRBException
Throws:
GRBException

getNodeRel

protected double getNodeRel(GRBVar v)
                     throws GRBException
Throws:
GRBException

getNodeRel

protected double[] getNodeRel(GRBVar[] xvars)
                       throws GRBException
Throws:
GRBException

getNodeRel

protected double[][] getNodeRel(GRBVar[][] xvars)
                         throws GRBException
Throws:
GRBException

setSolution

protected void setSolution(GRBVar v,
                           double val)
                    throws GRBException
Throws:
GRBException

setSolution

protected void setSolution(GRBVar[] xvars,
                           double[] sol)
                    throws GRBException
Throws:
GRBException

useSolution

protected double useSolution()
                      throws GRBException
Throws:
GRBException

addCut

protected void addCut(GRBLinExpr expr,
                      char sense,
                      double rhs)
               throws GRBException
Throws:
GRBException

addLazy

protected void addLazy(GRBLinExpr expr,
                       char sense,
                       double rhs)
                throws GRBException
Throws:
GRBException

abort

protected void abort()

stopOneMultiObj

protected void stopOneMultiObj(int objnum)
                        throws GRBException
Throws:
GRBException