Cbc  2.10.10
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
List of all members
CbcSolver3 Class Reference

This is to allow the user to replace initialSolve and resolve. More...

#include <CbcSolver3.hpp>

+ Inheritance diagram for CbcSolver3:
+ Collaboration diagram for CbcSolver3:

Public Member Functions

Solve methods
virtual void initialSolve ()
 Solve initial LP relaxation. More...
 
virtual void resolve ()
 Resolve an LP relaxation after problem modification. More...
 
Constructors and destructors
 CbcSolver3 ()
 Default Constructor. More...
 
virtual OsiSolverInterface * clone (bool CopyData=true) const
 Clone. More...
 
 CbcSolver3 (const CbcSolver3 &)
 Copy constructor. More...
 
CbcSolver3operator= (const CbcSolver3 &rhs)
 Assignment operator. More...
 
virtual ~CbcSolver3 ()
 Destructor. More...
 
Sets and Getss
void initialize (CbcModel *model, const char *keep)
 Setup arrays - ones in keep will always be in. More...
 
const int * when () const
 get which ones have been used More...
 
int getMemory () const
 Get memory (i.e. how recent use should be) More...
 
int getCount () const
 Get current count. More...
 
void setMemory (int value)
 Set memory (i.e. how recent use should be) More...
 
void setBelieveInfeasible (bool yesNo)
 Say whether to believe infeasible. More...
 
void setAlgorithm (int value)
 Say whether to just count usage. More...
 
void setNested (double value)
 Do nested search if this fraction fixed. More...
 
int getAlgorithm () const
 Say whether to just count usage. More...
 
double getNested () const
 Do nested search if this fraction fixed. More...
 

Private Attributes

Private member data
double nestedSearch_
 Do nested search if this fraction fixed. More...
 
int * node_
 Node number when variable last in problem. More...
 
int * howMany_
 How many times in problem. More...
 
CbcModelmodel_
 Pointer back to model. More...
 
int count_
 Counter. More...
 
int memory_
 How recently it must have been used. More...
 
bool believeInfeasible_
 If infeasible on subset means infeasible. More...
 
bool algorithm_
 If 0 nothing, 1 compress and fix, 2 long thin. More...
 

Detailed Description

This is to allow the user to replace initialSolve and resolve.

Definition at line 18 of file CbcSolver3.hpp.

Constructor & Destructor Documentation

◆ CbcSolver3() [1/2]

CbcSolver3::CbcSolver3 ( )

Default Constructor.

◆ CbcSolver3() [2/2]

CbcSolver3::CbcSolver3 ( const CbcSolver3 )

Copy constructor.

◆ ~CbcSolver3()

virtual CbcSolver3::~CbcSolver3 ( )
virtual

Destructor.

Member Function Documentation

◆ initialSolve()

virtual void CbcSolver3::initialSolve ( )
virtual

Solve initial LP relaxation.

◆ resolve()

virtual void CbcSolver3::resolve ( )
virtual

Resolve an LP relaxation after problem modification.

◆ clone()

virtual OsiSolverInterface* CbcSolver3::clone ( bool  CopyData = true) const
virtual

Clone.

◆ operator=()

CbcSolver3& CbcSolver3::operator= ( const CbcSolver3 rhs)

Assignment operator.

◆ initialize()

void CbcSolver3::initialize ( CbcModel model,
const char *  keep 
)

Setup arrays - ones in keep will always be in.

◆ when()

const int* CbcSolver3::when ( ) const
inline

get which ones have been used

Definition at line 56 of file CbcSolver3.hpp.

◆ getMemory()

int CbcSolver3::getMemory ( ) const
inline

Get memory (i.e. how recent use should be)

Definition at line 61 of file CbcSolver3.hpp.

◆ getCount()

int CbcSolver3::getCount ( ) const
inline

Get current count.

Definition at line 66 of file CbcSolver3.hpp.

◆ setMemory()

void CbcSolver3::setMemory ( int  value)
inline

Set memory (i.e. how recent use should be)

Definition at line 71 of file CbcSolver3.hpp.

◆ setBelieveInfeasible()

void CbcSolver3::setBelieveInfeasible ( bool  yesNo)
inline

Say whether to believe infeasible.

Definition at line 76 of file CbcSolver3.hpp.

◆ setAlgorithm()

void CbcSolver3::setAlgorithm ( int  value)
inline

Say whether to just count usage.

Definition at line 81 of file CbcSolver3.hpp.

◆ setNested()

void CbcSolver3::setNested ( double  value)
inline

Do nested search if this fraction fixed.

Definition at line 86 of file CbcSolver3.hpp.

◆ getAlgorithm()

int CbcSolver3::getAlgorithm ( ) const
inline

Say whether to just count usage.

Definition at line 91 of file CbcSolver3.hpp.

◆ getNested()

double CbcSolver3::getNested ( ) const
inline

Do nested search if this fraction fixed.

Definition at line 96 of file CbcSolver3.hpp.

Member Data Documentation

◆ nestedSearch_

double CbcSolver3::nestedSearch_
private

Do nested search if this fraction fixed.

Definition at line 108 of file CbcSolver3.hpp.

◆ node_

int* CbcSolver3::node_
private

Node number when variable last in problem.

Definition at line 110 of file CbcSolver3.hpp.

◆ howMany_

int* CbcSolver3::howMany_
private

How many times in problem.

Definition at line 112 of file CbcSolver3.hpp.

◆ model_

CbcModel* CbcSolver3::model_
private

Pointer back to model.

Definition at line 114 of file CbcSolver3.hpp.

◆ count_

int CbcSolver3::count_
private

Counter.

Definition at line 116 of file CbcSolver3.hpp.

◆ memory_

int CbcSolver3::memory_
private

How recently it must have been used.

Definition at line 118 of file CbcSolver3.hpp.

◆ believeInfeasible_

bool CbcSolver3::believeInfeasible_
private

If infeasible on subset means infeasible.

Definition at line 120 of file CbcSolver3.hpp.

◆ algorithm_

bool CbcSolver3::algorithm_
private

If 0 nothing, 1 compress and fix, 2 long thin.

Definition at line 122 of file CbcSolver3.hpp.


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