Go to the documentation of this file.
10 #ifndef CbcEventHandler_H
11 #define CbcEventHandler_H
218 (*eaMap_)[
event] = action;
void setAction(CbcEvent event, CbcAction action)
Set the action code associated with an event.
On entry to small branch and bound.
Take action on modified data.
virtual CbcAction event(CbcEvent whichEvent)
Return the action to be taken for an event.
virtual CbcEventHandler * clone() const
Clone (virtual) constructor.
CbcEventHandler(CbcModel *model=0)
Default constructor.
CbcEventHandler & operator=(const CbcEventHandler &rhs)
Assignment.
Pretend solution never happened.
std::map< CbcEvent, CbcAction > eaMapPair
Data type for event/action pairs.
void setModel(CbcModel *model)
Set model.
CbcModel * model_
Pointer to associated CbcModel.
eaMapPair * eaMap_
Pointer to a map that holds non-default event/action pairs.
RestartRoot — undo root node and start branch-and-cut afresh.
Having generated cuts, allows user to think.
Simple Branch and bound class.
A tree status interval has arrived.
Base class for Cbc event handling.
virtual ~CbcEventHandler()
Destructor.
After a pass of heuristic.
CbcAction
Action codes returned by the event handler.
Restart — restart branch-and-cut search; do not undo root node processing.
CbcAction dfltAction_
Default action.
A solution will be found unless user takes action (thorough check).
Processing of the current node is complete.
CbcEvent
Events known to cbc.
When converting constraints to cuts.
A solution will be found unless user takes action (first check).
A heuristic solution has been found.
Stop — abort the current run at the next opportunity.
void setDfltAction(CbcAction action)
Set the default action.
Continue — no action required.
const CbcModel * getModel() const
Get model.
A solution has been found.