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

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

#include <CbcSolver2.hpp>

+ Inheritance diagram for CbcSolver2:
+ Collaboration diagram for CbcSolver2:

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
 CbcSolver2 ()
 Default Constructor. More...
 
virtual OsiSolverInterface * clone (bool CopyData=true) const
 Clone. More...
 
 CbcSolver2 (const CbcSolver2 &)
 Copy constructor. More...
 
CbcSolver2operator= (const CbcSolver2 &rhs)
 Assignment operator. More...
 
virtual ~CbcSolver2 ()
 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 setAlgorithm (int value)
 Say whether to just count usage. More...
 
int getAlgorithm () const
 Say whether to just count usage. More...
 
void setStrategy (int value)
 Strategy. More...
 
int getStrategy () const
 Strategy. More...
 

Private Attributes

Private member data
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...
 
int algorithm_
 If 0 nothing, 1 compress and fix, 2 long thin. More...
 
int strategy_
 If 0 get rid of rows, 1 keep rows (to stay dual feasible) More...
 

Detailed Description

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

This version is to try and speed up long thin problems.

This particular version assumes unit elements and rhs Can be E or G rhs

Definition at line 22 of file CbcSolver2.hpp.

Constructor & Destructor Documentation

◆ CbcSolver2() [1/2]

CbcSolver2::CbcSolver2 ( )

Default Constructor.

◆ CbcSolver2() [2/2]

CbcSolver2::CbcSolver2 ( const CbcSolver2 )

Copy constructor.

◆ ~CbcSolver2()

virtual CbcSolver2::~CbcSolver2 ( )
virtual

Destructor.

Member Function Documentation

◆ initialSolve()

virtual void CbcSolver2::initialSolve ( )
virtual

Solve initial LP relaxation.

◆ resolve()

virtual void CbcSolver2::resolve ( )
virtual

Resolve an LP relaxation after problem modification.

◆ clone()

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

Clone.

◆ operator=()

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

Assignment operator.

◆ initialize()

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

Setup arrays - ones in keep will always be in.

◆ when()

const int* CbcSolver2::when ( ) const
inline

get which ones have been used

Definition at line 60 of file CbcSolver2.hpp.

◆ getMemory()

int CbcSolver2::getMemory ( ) const
inline

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

Definition at line 65 of file CbcSolver2.hpp.

◆ getCount()

int CbcSolver2::getCount ( ) const
inline

Get current count.

Definition at line 70 of file CbcSolver2.hpp.

◆ setMemory()

void CbcSolver2::setMemory ( int  value)
inline

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

Definition at line 75 of file CbcSolver2.hpp.

◆ setAlgorithm()

void CbcSolver2::setAlgorithm ( int  value)
inline

Say whether to just count usage.

Definition at line 80 of file CbcSolver2.hpp.

◆ getAlgorithm()

int CbcSolver2::getAlgorithm ( ) const
inline

Say whether to just count usage.

Definition at line 85 of file CbcSolver2.hpp.

◆ setStrategy()

void CbcSolver2::setStrategy ( int  value)
inline

Strategy.

Definition at line 90 of file CbcSolver2.hpp.

◆ getStrategy()

int CbcSolver2::getStrategy ( ) const
inline

Strategy.

Definition at line 95 of file CbcSolver2.hpp.

Member Data Documentation

◆ node_

int* CbcSolver2::node_
private

Node number when variable last in problem.

Definition at line 107 of file CbcSolver2.hpp.

◆ howMany_

int* CbcSolver2::howMany_
private

How many times in problem.

Definition at line 109 of file CbcSolver2.hpp.

◆ model_

CbcModel* CbcSolver2::model_
private

Pointer back to model.

Definition at line 111 of file CbcSolver2.hpp.

◆ count_

int CbcSolver2::count_
private

Counter.

Definition at line 113 of file CbcSolver2.hpp.

◆ memory_

int CbcSolver2::memory_
private

How recently it must have been used.

Definition at line 115 of file CbcSolver2.hpp.

◆ algorithm_

int CbcSolver2::algorithm_
private

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

Definition at line 117 of file CbcSolver2.hpp.

◆ strategy_

int CbcSolver2::strategy_
private

If 0 get rid of rows, 1 keep rows (to stay dual feasible)

Definition at line 119 of file CbcSolver2.hpp.


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