Cbc
2.10.10
|
This is to allow the user to replace initialSolve and resolve. More...
#include <CbcSolver2.hpp>
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... | |
CbcSolver2 & | operator= (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... | |
CbcModel * | model_ |
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... | |
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.
CbcSolver2::CbcSolver2 | ( | ) |
Default Constructor.
CbcSolver2::CbcSolver2 | ( | const CbcSolver2 & | ) |
Copy constructor.
|
virtual |
Destructor.
|
virtual |
Solve initial LP relaxation.
|
virtual |
Resolve an LP relaxation after problem modification.
|
virtual |
Clone.
CbcSolver2& CbcSolver2::operator= | ( | const CbcSolver2 & | rhs | ) |
Assignment operator.
void CbcSolver2::initialize | ( | CbcModel * | model, |
const char * | keep | ||
) |
Setup arrays - ones in keep will always be in.
|
inline |
get which ones have been used
Definition at line 60 of file CbcSolver2.hpp.
|
inline |
Get memory (i.e. how recent use should be)
Definition at line 65 of file CbcSolver2.hpp.
|
inline |
Get current count.
Definition at line 70 of file CbcSolver2.hpp.
|
inline |
Set memory (i.e. how recent use should be)
Definition at line 75 of file CbcSolver2.hpp.
|
inline |
Say whether to just count usage.
Definition at line 80 of file CbcSolver2.hpp.
|
inline |
Say whether to just count usage.
Definition at line 85 of file CbcSolver2.hpp.
|
inline |
Strategy.
Definition at line 90 of file CbcSolver2.hpp.
|
inline |
Strategy.
Definition at line 95 of file CbcSolver2.hpp.
|
private |
Node number when variable last in problem.
Definition at line 107 of file CbcSolver2.hpp.
|
private |
How many times in problem.
Definition at line 109 of file CbcSolver2.hpp.
|
private |
Pointer back to model.
Definition at line 111 of file CbcSolver2.hpp.
|
private |
Counter.
Definition at line 113 of file CbcSolver2.hpp.
|
private |
How recently it must have been used.
Definition at line 115 of file CbcSolver2.hpp.
|
private |
If 0 nothing, 1 compress and fix, 2 long thin.
Definition at line 117 of file CbcSolver2.hpp.
|
private |
If 0 get rid of rows, 1 keep rows (to stay dual feasible)
Definition at line 119 of file CbcSolver2.hpp.