|
CoinUtils 2.11.13
|
Physically removes empty rows in presolve, and reinserts empty rows in postsolve. More...
#include <CoinPresolveEmpty.hpp>
Classes | |
| struct | action |
Public Member Functions | |
| const char * | name () const |
| Construct a postsolve object and add it to the transformation list. | |
| void | postsolve (CoinPostsolveMatrix *prob) const |
| Apply the postsolve transformation for this particular presolve action. | |
| virtual | ~drop_empty_rows_action () |
| Public Member Functions inherited from CoinPresolveAction | |
| virtual | ~CoinPresolveAction () |
| Virtual destructor. | |
Static Public Member Functions | |
| static const CoinPresolveAction * | presolve (CoinPresolveMatrix *prob, const CoinPresolveAction *next) |
| Static Public Member Functions inherited from CoinPresolveAction | |
| static void | throwCoinError (const char *error, const char *ps_routine) |
| Stub routine to throw exceptions. | |
Private Member Functions | |
| drop_empty_rows_action (int nactions, const action *actions, const CoinPresolveAction *next) | |
Private Attributes | |
| const int | nactions_ |
| const action *const | actions_ |
Additional Inherited Members | |
| Public Attributes inherited from CoinPresolveAction | |
| const CoinPresolveAction * | next |
| The next presolve transformation. | |
Physically removes empty rows in presolve, and reinserts empty rows 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 rows, the rows are renumbered, excluding empty rows. This involves rewriting CoinPrePostsolveMatrix::hrow_ and compressing the row bounds and (if present) the row portions of the solution.
Definition at line 86 of file CoinPresolveEmpty.hpp.
|
inlineprivate |
Definition at line 98 of file CoinPresolveEmpty.hpp.
|
inlinevirtual |
Definition at line 115 of file CoinPresolveEmpty.hpp.
|
inlinevirtual |
Construct a postsolve object and add it to the transformation list.
This is an `add to head' operation. This object will point to the one passed as the parameter. */ CoinPresolveAction(const CoinPresolveAction *next) : next(next) { } modify next (when building rather than passing) inline void setNext(const CoinPresolveAction *nextAction) { next = nextAction; }
/*! A name for debug printing.
It is expected that the name is not stored in the transform itself.
Implements CoinPresolveAction.
Definition at line 108 of file CoinPresolveEmpty.hpp.
|
static |
|
virtual |
Apply the postsolve transformation for this particular presolve action.
Implements CoinPresolveAction.
|
private |
Definition at line 95 of file CoinPresolveEmpty.hpp.
|
private |
Definition at line 96 of file CoinPresolveEmpty.hpp.