coin-Bcp
List of all members
OsiClpDisasterHandler Class Reference

#include <OsiClpSolverInterface.hpp>

Inheritance diagram for OsiClpDisasterHandler:
Inheritance graph
[legend]
Collaboration diagram for OsiClpDisasterHandler:
Collaboration graph
[legend]

Public Member Functions

Virtual methods that the derived classe should provide.
virtual void intoSimplex ()
 Into simplex. More...
 
virtual bool check () const
 Checks if disaster. More...
 
virtual void saveInfo ()
 saves information for next attempt More...
 
virtual int typeOfDisaster ()
 Type of disaster 0 can fix, 1 abort. More...
 
Constructors, destructor
 OsiClpDisasterHandler (OsiClpSolverInterface *model=NULL)
 Default constructor. More...
 
virtual ~OsiClpDisasterHandler ()
 Destructor. More...
 
 OsiClpDisasterHandler (const OsiClpDisasterHandler &)
 Default constructor. More...
 
OsiClpDisasterHandleroperator= (const OsiClpDisasterHandler &)
 Default constructor. More...
 
virtual ClpDisasterHandlerclone () const
 Clone. More...
 
Sets/gets
void setOsiModel (OsiClpSolverInterface *model)
 set model. More...
 
OsiClpSolverInterfaceosiModel () const
 Get model. More...
 
void setWhereFrom (int value)
 Set where from. More...
 
int whereFrom () const
 Get where from. More...
 
void setPhase (int value)
 Set phase. More...
 
int phase () const
 Get phase. More...
 
bool inTrouble () const
 are we in trouble More...
 
- Public Member Functions inherited from ClpDisasterHandler
 ClpDisasterHandler (ClpSimplex *model=NULL)
 Default constructor. More...
 
virtual ~ClpDisasterHandler ()
 Destructor. More...
 
 ClpDisasterHandler (const ClpDisasterHandler &)
 Default constructor. More...
 
ClpDisasterHandleroperator= (const ClpDisasterHandler &)
 Default constructor. More...
 
void setSimplex (ClpSimplex *model)
 set model. More...
 
ClpSimplexsimplex () const
 Get model. More...
 

Protected Attributes

Data members

The data members are protected to allow access for derived classes.

OsiClpSolverInterfaceosiModel_
 Pointer to model. More...
 
int whereFrom_
 Where from 0 dual (resolve) 1 crunch 2 primal (resolve) 4 dual (initialSolve) 6 primal (initialSolve) More...
 
int phase_
 phase 0 initial 1 trying continuing with back in and maybe different perturb 2 trying continuing with back in and different scaling 3 trying dual from all slack 4 trying primal from previous stored basis More...
 
bool inTrouble_
 Are we in trouble. More...
 
- Protected Attributes inherited from ClpDisasterHandler
ClpSimplexmodel_
 Pointer to simplex. More...
 

Detailed Description

Definition at line 1509 of file OsiClpSolverInterface.hpp.

Constructor & Destructor Documentation

OsiClpDisasterHandler::OsiClpDisasterHandler ( OsiClpSolverInterface model = NULL)

Default constructor.

virtual OsiClpDisasterHandler::~OsiClpDisasterHandler ( )
virtual

Destructor.

OsiClpDisasterHandler::OsiClpDisasterHandler ( const OsiClpDisasterHandler )

Default constructor.

Member Function Documentation

virtual void OsiClpDisasterHandler::intoSimplex ( )
virtual

Into simplex.

Implements ClpDisasterHandler.

virtual bool OsiClpDisasterHandler::check ( ) const
virtual

Checks if disaster.

Implements ClpDisasterHandler.

virtual void OsiClpDisasterHandler::saveInfo ( )
virtual

saves information for next attempt

Implements ClpDisasterHandler.

virtual int OsiClpDisasterHandler::typeOfDisaster ( )
virtual

Type of disaster 0 can fix, 1 abort.

Reimplemented from ClpDisasterHandler.

OsiClpDisasterHandler& OsiClpDisasterHandler::operator= ( const OsiClpDisasterHandler )

Default constructor.

virtual ClpDisasterHandler* OsiClpDisasterHandler::clone ( ) const
virtual

Clone.

Implements ClpDisasterHandler.

void OsiClpDisasterHandler::setOsiModel ( OsiClpSolverInterface model)

set model.

OsiClpSolverInterface* OsiClpDisasterHandler::osiModel ( ) const
inline

Get model.

Definition at line 1546 of file OsiClpSolverInterface.hpp.

References osiModel_.

void OsiClpDisasterHandler::setWhereFrom ( int  value)
inline

Set where from.

Definition at line 1551 of file OsiClpSolverInterface.hpp.

References whereFrom_.

int OsiClpDisasterHandler::whereFrom ( ) const
inline

Get where from.

Definition at line 1556 of file OsiClpSolverInterface.hpp.

References whereFrom_.

void OsiClpDisasterHandler::setPhase ( int  value)
inline

Set phase.

Definition at line 1561 of file OsiClpSolverInterface.hpp.

References phase_.

int OsiClpDisasterHandler::phase ( ) const
inline

Get phase.

Definition at line 1566 of file OsiClpSolverInterface.hpp.

References phase_.

bool OsiClpDisasterHandler::inTrouble ( ) const

are we in trouble

Member Data Documentation

OsiClpSolverInterface* OsiClpDisasterHandler::osiModel_
protected

Pointer to model.

Definition at line 1580 of file OsiClpSolverInterface.hpp.

Referenced by osiModel().

int OsiClpDisasterHandler::whereFrom_
protected

Where from 0 dual (resolve) 1 crunch 2 primal (resolve) 4 dual (initialSolve) 6 primal (initialSolve)

Definition at line 1588 of file OsiClpSolverInterface.hpp.

Referenced by setWhereFrom(), and whereFrom().

int OsiClpDisasterHandler::phase_
protected

phase 0 initial 1 trying continuing with back in and maybe different perturb 2 trying continuing with back in and different scaling 3 trying dual from all slack 4 trying primal from previous stored basis

Definition at line 1596 of file OsiClpSolverInterface.hpp.

Referenced by phase(), and setPhase().

bool OsiClpDisasterHandler::inTrouble_
protected

Are we in trouble.

Definition at line 1598 of file OsiClpSolverInterface.hpp.


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