# CbcStopNow Class Reference

Support the use of a call back class to decide whether to stop. More...

`#include <CbcSolver.hpp>`

List of all members.

## Public Member Functions
Decision methods
virtual int | callBack (CbcModel *, int)
| Import.
Constructors and destructors etc
| CbcStopNow ()
| Default Constructor.
| CbcStopNow (const CbcStopNow &rhs)
| Copy constructor .
CbcStopNow & | operator= (const CbcStopNow &rhs)
| Assignment operator.
virtual CbcStopNow * | clone () const
| Clone.
virtual | ~CbcStopNow ()
| Destructor.

## Detailed Description

Support the use of a call back class to decide whether to stop.

Definitely under construction.

Definition at line 351 of file CbcSolver.hpp.

## Constructor & Destructor Documentation

CbcStopNow::CbcStopNow | ( |  | ) |

Default Constructor.

CbcStopNow::CbcStopNow | ( | const CbcStopNow & | rhs | ) |

Copy constructor .

virtual CbcStopNow::~CbcStopNow | ( |  | ) | `[virtual]`

Destructor.

## Member Function Documentation

virtual int CbcStopNow::callBack | ( | CbcModel * | ,
|  | int |  |
| ) |  |  | `[inline, virtual]`

Import.

Values for whereFrom:

- 1 after initial solve by dualsimplex etc
- 2 after preprocessing
- 3 just before branchAndBound (so user can override)
- 4 just after branchAndBound (before postprocessing)
- 5 after postprocessing
- 6 after a user called heuristic phase

Returns:
  0 if good nonzero return code to stop

Definition at line 369 of file CbcSolver.hpp.

CbcStopNow& CbcStopNow::operator= | ( | const CbcStopNow & | rhs | ) |

Assignment operator.

virtual CbcStopNow* CbcStopNow::clone | ( |  | ) | const`[virtual]`

Clone.

The documentation for this class was generated from the following file:

- /home/coin/svn-release/Cbc-2.7.8/Cbc/src/CbcSolver.hpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines