11 #ifndef COUENNESOLVERINTERFACE_HPP
12 #define COUENNESOLVERINTERFACE_HPP
14 class OsiSolverInterface;
18 class CouenneCutGenerator;
27 template <
class T>
class CouenneSolverInterface:
public T {
41 virtual OsiSolverInterface *
clone (
bool copyData =
true)
const
140 #include "CouenneSolverInterface.cpp"
141 #include "CouenneLPtightenBounds.cpp"
142 #include "CouenneLPtightenBoundsCLP-light.cpp"
143 #include "CouenneLPtightenBoundsCLP.cpp"
Cut Generator for linear convexifications.
CouenneCutGenerator * cutgen_
The pointer to the Couenne cut generator.
virtual bool isProvenPrimalInfeasible() const
we need to overwrite this since we might have internal knowledge
bool isProvenDualInfeasible() const
set doingResolve_
bool knowOptimal_
Flag indicating that optimality was detected during solveFromHotStart.
virtual bool isProvenOptimal() const
we need to overwrite this since we might have internal knowledge
virtual int tightenBoundsCLP_Light(int lightweight)
Copy of the Clp version — light version.
virtual void initialSolve()
Solve initial LP relaxation.
virtual void solveFromHotStart()
Optimize starting from the hot start snapshot.
void setCutGenPtr(CouenneCutGenerator *cg)
Set cut generator pointer after setup, to avoid changes in the pointer due to cut generator cloning (...
virtual void resolve()
Resolve an LP relaxation after problem modification.
virtual void markHotStart()
Create a hot start snapshot of the optimization process.
virtual void unmarkHotStart()
Delete the hot start snapshot.
bool knowDualInfeasible_
Flag indicating this problem's continuous relaxation is unbounded.
CouenneCutGenerator * CutGen()
Return cut generator pointer.
CouenneSolverInterface(CouenneCutGenerator *cg=NULL)
Constructor.
~CouenneSolverInterface()
Destructor.
virtual int tightenBounds(int lightweight)
Tighten bounds on all variables (including continuous).
bool knowInfeasible_
Flag indicating that infeasibility was detected during solveFromHotStart.
virtual int tightenBoundsCLP(int lightweight)
Copy of the Clp version — not light version.
virtual OsiSolverInterface * clone(bool copyData=true) const
Clone.
virtual void resolve_nobt()
Resolve an LP without applying bound tightening beforehand.
virtual double getObjValue() const
Get the objective function value.