Physically removes empty columns in presolve, and reinserts empty columns in postsolve. More...
#include <CoinPresolveEmpty.hpp>
Classes | |
struct | action |
Public Member Functions | |
const char * | name () const |
A name for debug printing. More... | |
void | postsolve (CoinPostsolveMatrix *prob) const |
Apply the postsolve transformation for this particular presolve action. More... | |
virtual | ~drop_empty_cols_action () |
![]() | |
CoinPresolveAction (const CoinPresolveAction *next) | |
Construct a postsolve object and add it to the transformation list. More... | |
void | setNext (const CoinPresolveAction *nextAction) |
modify next (when building rather than passing) More... | |
virtual | ~CoinPresolveAction () |
Virtual destructor. More... | |
Static Public Member Functions | |
static const CoinPresolveAction * | presolve (CoinPresolveMatrix *, const int *ecols, int necols, const CoinPresolveAction *) |
static const CoinPresolveAction * | presolve (CoinPresolveMatrix *prob, const CoinPresolveAction *next) |
![]() | |
static void | throwCoinError (const char *error, const char *ps_routine) |
Stub routine to throw exceptions. More... | |
Private Member Functions | |
drop_empty_cols_action (int nactions, const action *const actions, const CoinPresolveAction *next) | |
Private Attributes | |
const int | nactions_ |
const action *const | actions_ |
Additional Inherited Members | |
![]() | |
const CoinPresolveAction * | next |
The next presolve transformation. More... | |
Physically removes empty columns in presolve, and reinserts empty columns in postsolve.
Physical removal of rows and columns should be the last activities performed during presolve. Do them exactly once. The row-major matrix is not maintained by this transform.
To physically drop the columns, CoinPrePostsolveMatrix::mcstrt_ and CoinPrePostsolveMatrix::hincol_ are compressed, along with column bounds, objective, and (if present) the column portions of the solution. This renumbers the columns. drop_empty_cols_action::presolve will reconstruct CoinPresolveMatrix::clink_.
Definition at line 34 of file CoinPresolveEmpty.hpp.
|
inlineprivate |
Definition at line 47 of file CoinPresolveEmpty.hpp.
|
inlinevirtual |
Definition at line 68 of file CoinPresolveEmpty.hpp.
|
inlinevirtual |
A name for debug printing.
It is expected that the name is not stored in the transform itself.
Implements CoinPresolveAction.
Definition at line 56 of file CoinPresolveEmpty.hpp.
|
static |
|
static |
|
virtual |
Apply the postsolve transformation for this particular presolve action.
Implements CoinPresolveAction.
|
private |
Definition at line 36 of file CoinPresolveEmpty.hpp.
|
private |
Definition at line 45 of file CoinPresolveEmpty.hpp.