14 #include "CbcModel.hpp"
int nObjects_
number of objects.
double bestObj_
objValue of MIP
int mipIterationCount_
get total number of iterations in last mip solved.
virtual void operator()(BabSetupBase *s)
operator() performs the branchAndBound
CoinMessageHandler * modelHandler_
Message handler for CbcModel.
MipStatuses mipStatus_
Status of the mip solved.
MipStatuses
Integer optimization return codes.
CbcModel & model()
Get cbc model used to solve as non-const, in case we want to change options before things happen...
double continuousRelaxation()
returns the value of the continuous relaxation.
double * bestSolution_
Stores the solution of MIP.
CbcModel model_
CbcModel used to solve problem.
double continuousRelaxation_
Continuous relaxation of the problem.
int numNodes_
Number of nodes enumerated.
virtual void operator()(BabSetupBase &s)
operator() performs the branchAndBound
virtual void replaceIntegers(OsiObject **objects, int numberObjects)
virtual callback function to eventually modify objects for integer variable (replace with user set)...
A class to have all elements necessary to setup a branch-and-bound.
double bestObj() const
return objective value of the bestSolution
int iterationCount()
return the total number of iterations in the last mip solved.
Problem has been proven to be infeasible.
void fint fint fint fint fint fint fint fint fint fint real real real real real real real real * s
double bestBound_
best known (lower) bound.
MipStatuses mipStatus() const
return Mip Status
virtual ~Bab()
destructor.
const double * bestSolution() const
get the best solution known to the problem (is optimal if MipStatus is FeasibleOptimal).
An integer solution to the problem has been found.
No feasible solution to the problem is known.
Optimum solution has been found and its optimality proved.
int numNodes() const
return the total number of nodes explored.
virtual void branchAndBound(BabSetupBase &s)
Perform a branch-and-bound using given setup.
double bestBound()
return the best known lower bound on the objective value
OsiObject ** objects_
OsiObjects of the model.
const CbcModel & model() const
Get cbc model used to solve.