Clp
1.17.8
|
This deals with Factorization and Updates for network structures. More...
#include <ClpNetworkBasis.hpp>
Public Member Functions | |
Constructors and destructor and copy | |
ClpNetworkBasis () | |
Default constructor. More... | |
ClpNetworkBasis (const ClpSimplex *model, int numberRows, const CoinFactorizationDouble *pivotRegion, const int *permuteBack, const int *startColumn, const int *numberInColumn, const int *indexRow, const CoinFactorizationDouble *element) | |
Constructor from CoinFactorization. More... | |
ClpNetworkBasis (const ClpNetworkBasis &other) | |
Copy constructor. More... | |
~ClpNetworkBasis () | |
Destructor. More... | |
ClpNetworkBasis & | operator= (const ClpNetworkBasis &other) |
= copy More... | |
Do factorization | |
int | factorize (const ClpMatrixBase *matrix, int rowIsBasic[], int columnIsBasic[]) |
When part of LP - given by basic variables. More... | |
rank one updates which do exist | |
int | replaceColumn (CoinIndexedVector *column, int pivotRow) |
Replaces one Column to basis, returns 0=OK, 1=Probably OK, 2=singular!! More... | |
Private Attributes | |
data | |
int | numberRows_ |
Number of Rows in factorization. More... | |
int | numberColumns_ |
Number of Columns in factorization. More... | |
const ClpSimplex * | model_ |
model More... | |
int * | parent_ |
Parent for each column. More... | |
int * | descendant_ |
Descendant. More... | |
int * | pivot_ |
Pivot row. More... | |
int * | rightSibling_ |
Right sibling. More... | |
int * | leftSibling_ |
Left sibling. More... | |
double * | sign_ |
Sign of pivot. More... | |
int * | stack_ |
Stack. More... | |
int * | permute_ |
Permute into array. More... | |
int * | permuteBack_ |
Permute back array. More... | |
int * | stack2_ |
Second stack. More... | |
int * | depth_ |
Depth. More... | |
char * | mark_ |
To mark rows. More... | |
various uses of factorization (return code number elements) | |
double | updateColumn (CoinIndexedVector *regionSparse, CoinIndexedVector *regionSparse2, int pivotRow) |
Updates one column (FTRAN) from region, Returns pivot value if "pivotRow" >=0. More... | |
int | updateColumn (CoinIndexedVector *regionSparse, double array[]) const |
Updates one column (FTRAN) to/from array For large problems you should ALWAYS know where the nonzeros are, so please try and migrate to previous method after you have got code working using this simple method - thank you! (the only exception is if you know input is dense e.g. More... | |
int | updateColumnTranspose (CoinIndexedVector *regionSparse, double array[]) const |
Updates one column transpose (BTRAN) For large problems you should ALWAYS know where the nonzeros are, so please try and migrate to previous method after you have got code working using this simple method - thank you! (the only exception is if you know input is dense e.g. More... | |
int | updateColumnTranspose (CoinIndexedVector *regionSparse, CoinIndexedVector *regionSparse2) const |
Updates one column (BTRAN) from region2. More... | |
void | check () |
void | print () |
This deals with Factorization and Updates for network structures.
Definition at line 25 of file ClpNetworkBasis.hpp.
ClpNetworkBasis::ClpNetworkBasis | ( | ) |
Default constructor.
ClpNetworkBasis::ClpNetworkBasis | ( | const ClpSimplex * | model, |
int | numberRows, | ||
const CoinFactorizationDouble * | pivotRegion, | ||
const int * | permuteBack, | ||
const int * | startColumn, | ||
const int * | numberInColumn, | ||
const int * | indexRow, | ||
const CoinFactorizationDouble * | element | ||
) |
Constructor from CoinFactorization.
ClpNetworkBasis::ClpNetworkBasis | ( | const ClpNetworkBasis & | other | ) |
Copy constructor.
ClpNetworkBasis::~ClpNetworkBasis | ( | ) |
Destructor.
ClpNetworkBasis& ClpNetworkBasis::operator= | ( | const ClpNetworkBasis & | other | ) |
= copy
int ClpNetworkBasis::factorize | ( | const ClpMatrixBase * | matrix, |
int | rowIsBasic[], | ||
int | columnIsBasic[] | ||
) |
When part of LP - given by basic variables.
Actually does factorization. Arrays passed in have non negative value to say basic. If status is okay, basic variables have pivot row - this is only needed if increasingRows_ >1. If status is singular, then basic variables have pivot row and ones thrown out have -1 returns 0 -okay, -1 singular, -2 too many in basis
int ClpNetworkBasis::replaceColumn | ( | CoinIndexedVector * | column, |
int | pivotRow | ||
) |
Replaces one Column to basis, returns 0=OK, 1=Probably OK, 2=singular!!
double ClpNetworkBasis::updateColumn | ( | CoinIndexedVector * | regionSparse, |
CoinIndexedVector * | regionSparse2, | ||
int | pivotRow | ||
) |
Updates one column (FTRAN) from region, Returns pivot value if "pivotRow" >=0.
int ClpNetworkBasis::updateColumn | ( | CoinIndexedVector * | regionSparse, |
double | array[] | ||
) | const |
Updates one column (FTRAN) to/from array For large problems you should ALWAYS know where the nonzeros are, so please try and migrate to previous method after you have got code working using this simple method - thank you! (the only exception is if you know input is dense e.g.
rhs)
int ClpNetworkBasis::updateColumnTranspose | ( | CoinIndexedVector * | regionSparse, |
double | array[] | ||
) | const |
Updates one column transpose (BTRAN) For large problems you should ALWAYS know where the nonzeros are, so please try and migrate to previous method after you have got code working using this simple method - thank you! (the only exception is if you know input is dense e.g.
dense objective) returns number of nonzeros
int ClpNetworkBasis::updateColumnTranspose | ( | CoinIndexedVector * | regionSparse, |
CoinIndexedVector * | regionSparse2 | ||
) | const |
Updates one column (BTRAN) from region2.
|
private |
|
private |
|
private |
Number of Rows in factorization.
Definition at line 112 of file ClpNetworkBasis.hpp.
|
private |
Number of Columns in factorization.
Definition at line 114 of file ClpNetworkBasis.hpp.
|
private |
model
Definition at line 116 of file ClpNetworkBasis.hpp.
|
private |
Parent for each column.
Definition at line 118 of file ClpNetworkBasis.hpp.
|
private |
Descendant.
Definition at line 120 of file ClpNetworkBasis.hpp.
|
private |
Pivot row.
Definition at line 122 of file ClpNetworkBasis.hpp.
|
private |
Right sibling.
Definition at line 124 of file ClpNetworkBasis.hpp.
|
private |
Left sibling.
Definition at line 126 of file ClpNetworkBasis.hpp.
|
private |
Sign of pivot.
Definition at line 128 of file ClpNetworkBasis.hpp.
|
private |
Stack.
Definition at line 130 of file ClpNetworkBasis.hpp.
|
private |
Permute into array.
Definition at line 132 of file ClpNetworkBasis.hpp.
|
private |
Permute back array.
Definition at line 134 of file ClpNetworkBasis.hpp.
|
private |
Second stack.
Definition at line 136 of file ClpNetworkBasis.hpp.
|
private |
Depth.
Definition at line 138 of file ClpNetworkBasis.hpp.
|
private |
To mark rows.
Definition at line 140 of file ClpNetworkBasis.hpp.