Go to the documentation of this file.
10 #ifndef CbcEventHandler_H
11 #define CbcEventHandler_H
220 (*eaMap_)[
event] = action;
void setAction(CbcEvent event, CbcAction action)
Set the action code associated with an event.
@ smallBranchAndBound
On entry to small branch and bound.
@ takeAction
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.
@ killSolution
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.
@ endSearch
End of search.
@ restartRoot
RestartRoot — undo root node and start branch-and-cut afresh.
@ generatedCuts
Having generated cuts, allows user to think.
Simple Branch and bound class.
@ treeStatus
A tree status interval has arrived.
Base class for Cbc event handling.
virtual ~CbcEventHandler()
Destructor.
@ heuristicPass
After a pass of heuristic.
CbcAction
Action codes returned by the event handler.
@ restart
Restart — restart branch-and-cut search; do not undo root node processing.
@ addCuts
Add special cuts.
@ afterRootCuts
Just before starting branching i.e.
CbcAction dfltAction_
Default action.
@ beforeSolution2
A solution will be found unless user takes action (thorough check).
@ node
Processing of the current node is complete.
@ afterHeuristic
After failed heuristic.
CbcEvent
Events known to cbc.
@ convertToCuts
When converting constraints to cuts.
@ beforeSolution1
A solution will be found unless user takes action (first check).
@ heuristicSolution
A heuristic solution has been found.
@ stop
Stop — abort the current run at the next opportunity.
void setDfltAction(CbcAction action)
Set the default action.
@ noAction
Continue — no action required.
const CbcModel * getModel() const
Get model.
@ solution
A solution has been found.