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
Cut Generator for linear convexifications.
virtual int tightenBoundsCLP(int lightweight)
Copy of the Clp version — not light version.
CouenneCutGenerator * cutgen_
The pointer to the Couenne cut generator.
virtual void unmarkHotStart()
Delete the hot start snapshot.
virtual void solveFromHotStart()
Optimize starting from the hot start snapshot.
bool isProvenDualInfeasible() const
set doingResolve_
bool knowOptimal_
Flag indicating that optimality was detected during solveFromHotStart.
virtual double getObjValue() const
Get the objective function value.
virtual bool isProvenOptimal() const
we need to overwrite this since we might have internal knowledge
void setCutGenPtr(CouenneCutGenerator *cg)
Set cut generator pointer after setup, to avoid changes in the pointer due to cut generator cloning (...
virtual int tightenBoundsCLP_Light(int lightweight)
Copy of the Clp version — light version.
virtual void initialSolve()
Solve initial LP relaxation.
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 void resolve()
Resolve an LP relaxation after problem modification.
virtual int tightenBounds(int lightweight)
Tighten bounds on all variables (including continuous).
bool knowInfeasible_
Flag indicating that infeasibility was detected during solveFromHotStart.
virtual void markHotStart()
Create a hot start snapshot of the optimization process.
virtual OsiSolverInterface * clone(bool copyData=true) const
Clone.
virtual void resolve_nobt()
Resolve an LP without applying bound tightening beforehand.
virtual bool isProvenPrimalInfeasible() const
we need to overwrite this since we might have internal knowledge