44 #include <coin/OsiSolverInterface.hpp> 45 #include <coin/CoinPackedVector.hpp> 52 enum class CallbackType { Cut = 1, Heuristic = 2, Incumbent = 4, Branch = 8 };
53 enum class CutReturn {
Error, SolutionValid, AddCuts, DontAddCuts, NoCutsFound };
57 enum class BranchReturn {
Error, ... };
63 virtual BranchReturn branchCallback() {
return BR_Error; };
68 bool registerCallbacks(OsiSolverInterface* _posi,
int callbackTypes);
73 static OsiSolverInterface* createCorrectOsiSolverInterface();
75 OsiSolverInterface* posi = createCorrectOsiSolverInterface();
81 static void logging(OsiSolverInterface* osi,
bool logMe);
virtual HeuristicReturn heuristicCallback(double &, double *)
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
bool registerCallbacks(OsiSolverInterface *_posi, int callbackTypes)
Basic declarations, included by all source files.
virtual CutReturn cutCallback(const double, const double *, OsiCuts *)
static OsiSolverInterface * createCorrectOsiSolverInterface(CoinCallbacks *ccc, int callbackTypes)
The namespace for all OGDF objects.
virtual IncumbentReturn incumbentCallback(const double, const double *)