Overview | Group | Tree | Graph | Index | Concepts |
An instance of the class IloCplex::MIPCallbackI
represents
a user-written callback in an application that uses an instance of
IloCplex
to solve a mixed integer program
(MIP). IloCplex
calls the user-written callback prior to
solving each node in branch & cut search.
User-written callbacks of this class or
any of its subclasses are not
compatible with MIP dynamic search. If you are looking for support for
callbacks compatible with dynamic search, consider the class
IloCplex::MIPInfoCallbackI
instead.
This class offers member functions for accessing an incumbent solution and its objective value from a user-written callback. It also offers methods for accessing priority orders and statistical information, such as the number of cuts. Methods are also available to query the number of generated cuts for each type of cut CPLEX generates. See the ILOG CPLEX User's Manual for more information about cuts.
The methods of this class are protected for use in deriving a
user-written callback class and in implementing the main
method there.
If an attempt is made to access information not available to an instance of this class, an exception is thrown. For example, if there is no incumbent, the methods that query about incumbents will throw an exception.
This class also provides the common application programming interface (API) for these callback classes:
See Also:
IloCplex, IloCplex::BranchCallbackI, IloCplex::Callback, IloCplex::CallbackI, IloCplex::CutCallbackI, IloCplex::DisjunctiveCutCallbackI, IloCplex::FlowMIRCutCallbackI, IloCplex::FractionalCutCallbackI, IloCplex::HeuristicCallbackI, IloCplex::IncumbentCallbackI, IloCplex::NodeCallbackI, IloCplex::OptimizationCallbackI, IloCplex::ProbingCallbackI, IloCplex::SolveCallbackI, ILOMIPCALLBACK0
Constructor Summary | |
---|---|
protected | MIPCallbackI(IloEnv env) |
Method Summary | |
---|---|
protected IloInt | getNcliques() const |
protected IloInt | getNcovers() const |
protected IloInt | getNdisjunctiveCuts() const |
protected IloInt | getNflowCovers() const |
protected IloInt | getNflowPaths() const |
protected IloInt | getNfractionalCuts() const |
protected IloInt | getNGUBcovers() const |
protected IloInt | getNimpliedBounds() const |
protected IloInt | getNMIRs() const |
protected IloNum | getObjCoef(const IloIntVar var) const |
protected IloNum | getObjCoef(const IloNumVar var) const |
protected void | getObjCoefs(IloNumArray val, const IloIntVarArray vars) const |
protected void | getObjCoefs(IloNumArray val, const IloNumVarArray vars) const |
protected IloInt | getUserThreads() const |
Inherited Methods from OptimizationCallbackI |
---|
getModel, getNcols, getNQCs, getNrows |
Inherited Methods from CallbackI |
---|
abort, duplicateCallback, getEnv, main |
Inner Class |
---|
MIPCallbackI::NodeData |
Constructor Detail |
---|
This constructor creates a callback for use in
an application that uses an instance of IloCplex
to solve a mixed integer program (MIP).
Method Detail |
---|
Returns the total number of GUB cover cuts that have been added to the model so far during the current optimization.
Returns the total number of MIR cuts that have been added to the model so far during the current optimization.
Returns the total number of clique cuts that have been added to the model so far during the current optimization.
Returns the total number of cover cuts that have been added to the model so far during the current optimization.
Returns the total number of disjunctive cuts that have been added to the model so far during the current optimization.
Returns the total number of flow cover cuts that have been added to the model so far during the current optimization.
Returns the total number of flow path cuts that have been added to the model so far during the current optimization.
Returns the total number of fractional cuts that have been added to the model so far during the current optimization.
Returns the total number of implied bound cuts that have been added to the model so far during the current optimization.
Returns the linear objective coefficient for var
in the model currently being solved.
Returns the linear objective coefficient for var
in the model currently being solved.
Puts the linear objective coefficient of each of the
variables in the array vars
into the
corresponding element of the array vals
.
Puts the linear objective coefficient of each of the
variables in the array vars
into the
corresponding element of the array vals
.
Returns the total number of parallel threads currently running.