Clp
1.17.8
|
Base class for Clp disaster handling. More...
#include <ClpEventHandler.hpp>
Public Member Functions | |
Virtual methods that the derived classe should provide. | |
virtual void | intoSimplex ()=0 |
Into simplex. More... | |
virtual bool | check () const =0 |
Checks if disaster. More... | |
virtual void | saveInfo ()=0 |
saves information for next attempt More... | |
virtual int | typeOfDisaster () |
Type of disaster 0 can fix, 1 abort. More... | |
Constructors, destructor | |
ClpDisasterHandler (ClpSimplex *model=NULL) | |
Default constructor. More... | |
virtual | ~ClpDisasterHandler () |
Destructor. More... | |
ClpDisasterHandler (const ClpDisasterHandler &) | |
ClpDisasterHandler & | operator= (const ClpDisasterHandler &) |
virtual ClpDisasterHandler * | clone () const =0 |
Clone. More... | |
Sets/gets | |
void | setSimplex (ClpSimplex *model) |
set model. More... | |
ClpSimplex * | simplex () const |
Get model. More... | |
Protected Attributes | |
Data members | |
The data members are protected to allow access for derived classes. | |
ClpSimplex * | model_ |
Pointer to simplex. More... | |
Base class for Clp disaster handling.
This is here to allow for disaster handling. By disaster I mean that Clp would otherwise give up
Definition at line 138 of file ClpEventHandler.hpp.
ClpDisasterHandler::ClpDisasterHandler | ( | ClpSimplex * | model = NULL | ) |
Default constructor.
|
virtual |
Destructor.
ClpDisasterHandler::ClpDisasterHandler | ( | const ClpDisasterHandler & | ) |
|
pure virtual |
Into simplex.
Implemented in OsiClpDisasterHandler.
|
pure virtual |
Checks if disaster.
Implemented in OsiClpDisasterHandler.
|
pure virtual |
saves information for next attempt
Implemented in OsiClpDisasterHandler.
|
virtual |
Type of disaster 0 can fix, 1 abort.
Reimplemented in OsiClpDisasterHandler.
ClpDisasterHandler& ClpDisasterHandler::operator= | ( | const ClpDisasterHandler & | ) |
|
pure virtual |
Clone.
Implemented in OsiClpDisasterHandler.
void ClpDisasterHandler::setSimplex | ( | ClpSimplex * | model | ) |
set model.
|
inline |
Get model.
Definition at line 176 of file ClpEventHandler.hpp.
|
protected |
Pointer to simplex.
Definition at line 187 of file ClpEventHandler.hpp.