|
Clp 1.17.11
|
BASE CLASS FOR THE IMPROVED SIMPLEX. More...
#include <ClpPESimplex.hpp>
Public Member Functions | |
| ClpPESimplex (ClpSimplex *model) | |
| Constructor. | |
| ~ClpPESimplex () | |
| Destructor. | |
| int | coPrimalDegenerates () |
| BASIC GET METHODS. | |
| int | coDualDegenerates () |
| int | coCompatibleCols () |
| int | coCompatibleRows () |
| bool | isCompatibleCol (int sequence) |
| bool | isCompatibleRow (int row) |
| ClpSimplex * | clpModel () |
| bool | checkSize () |
| void | updatePrimalDegenerates () |
| PUBLIC METHODS RELATED TO COMPATIBILITY. | |
| void | updateDualDegenerates () |
| Updates the set of dual degenerate variables. | |
| void | identifyCompatibleCols (int number, const int *which, CoinIndexedVector *spareRow2, CoinIndexedVector *wPrimal) |
| Identify the primal compatible columns The input argument is a temporary array that is needed for the Clp's BTRAN. | |
| void | identifyCompatibleRows (CoinIndexedVector *spare, CoinIndexedVector *wDual) |
| Identify the dual compatible rows. | |
| void | updateCompatibleRows (int sequence) |
| Update the dual compatible rows. | |
| bool | checkCompatibilityRow (int pivotRow) |
| DEBUG AND DISPLAY METHODS. | |
| double | lastObjectiveValue () |
| Tracking the degenerate iterations after compatible pivots. | |
| void | updateLastObjectiveValue () |
| bool | isDegeneratePivot () |
| bool | isLastPivotCompatible () |
| void | isLastPivotCompatible (bool yesOrNo) |
| void | startTimer () |
| Start and stop the timer, and print the total recorded time. | |
| void | stopTimer () |
| void | printTimer (std::ostream &out) |
| double | timeMultRandom () |
| double | timeLinearSystem () |
| double | timeCompatibility () |
| void | addDegeneratePivot () |
| Update and return the number of degenerate pivots and variables. | |
| int | coDegeneratePivots () |
| void | addDegeneratePivotConsecutive () |
| void | resetDegeneratePivotsConsecutive () |
| int | coDegeneratePivotsConsecutive () |
| void | updateDualDegeneratesAvg (int coPivots) |
| double | coDualDegeneratesAvg () |
| void | updatePrimalDegeneratesAvg (int coPivots) |
| double | coPrimalDegeneratesAvg () |
| double | coCompatibleRowsAvg () |
| void | updateCompatibleRowsAvg (int coPivots) |
| double | coCompatibleColsAvg () |
| void | updateCompatibleColsAvg (int coPivots) |
| int | coCompatiblePivots () |
| void | addCompatiblePivot () |
| int | coDegenerateCompatiblePivots () |
| void | addDegenerateCompatiblePivot () |
| void | addPriorityPivot () |
| int | coPriorityPivots () |
| int | doStatistics () const |
| void | setDoStatistics (int value) |
Protected Attributes | |
| int | coPrimalDegenerates_ |
| Indices of the variables that were not at one of their bounds during the last update (non primal degenerate variables). | |
| int * | primalDegenerates_ |
| bool * | isPrimalDegenerate_ |
| int | coDualDegenerates_ |
| Indices of the non basic variables with a zero reduced cost during the last update (ndual-degenerate variables). | |
| int * | dualDegenerates_ |
| bool * | isDualDegenerate_ |
| int | coCompatibleCols_ |
| Table of booleans indicating whether each variable is primal compatible (true) or not (false). | |
| double * | compatibilityCol_ |
| bool * | isCompatibleCol_ |
| int | coCompatibleRows_ |
| Table of booleans indicating whether each constraint is dual compatible (true) or not (false). | |
| double * | compatibilityRow_ |
| bool * | isCompatibleRow_ |
Private Attributes | |
| ClpSimplex * | model_ |
| pointer to the original model that shall be solved | |
| double | epsDegeneracy_ |
| tolerance used for the tests of degeneracy and compatibility (resp.) | |
| double | epsCompatibility_ |
| int | numberRows_ |
| size of the original model | |
| int | numberColumns_ |
| double * | tempRandom_ |
| w vectors that are used to identify the compatible columns and rows. | |
| int | coPrimalDegeneratesAvg_ |
| number of degenerate pivots and variables | |
| int | coDualDegeneratesAvg_ |
| int | coCompatibleColsAvg_ |
| int | coCompatibleRowsAvg_ |
| int | coUpdateDegenerates_ |
| int | coDegeneratePivots_ |
| int | coCompatiblePivots_ |
| int | coDegenerateCompatiblePivots_ |
| int | coDegeneratePivotsConsecutive_ |
| int | coPriorityPivots_ |
| number of compatible pivots that were done because of the priority factor | |
| int | doStatistics_ |
| Do statistics. | |
| double | lastObjectiveValue_ |
| tracking the degenerate iterations after compatible pivots | |
| bool | isLastPivotCompatible_ |
| double | timeCompatibility_ |
| Timer attribute recording the additional time spent in identifying compatible variables. | |
| double | timeMultRandom_ |
| double | timeLinearSystem_ |
| double | timeTmp_ |
BASE CLASS FOR THE IMPROVED SIMPLEX.
Definition at line 42 of file ClpPESimplex.hpp.
| ClpPESimplex::ClpPESimplex | ( | ClpSimplex * | model | ) |
Constructor.
| ClpPESimplex::~ClpPESimplex | ( | ) |
Destructor.
|
inline |
BASIC GET METHODS.
Definition at line 53 of file ClpPESimplex.hpp.
|
inline |
Definition at line 54 of file ClpPESimplex.hpp.
|
inline |
Definition at line 55 of file ClpPESimplex.hpp.
|
inline |
Definition at line 56 of file ClpPESimplex.hpp.
|
inline |
Definition at line 58 of file ClpPESimplex.hpp.
|
inline |
Definition at line 59 of file ClpPESimplex.hpp.
|
inline |
Definition at line 65 of file ClpPESimplex.hpp.
| bool ClpPESimplex::checkSize | ( | ) |
| void ClpPESimplex::updatePrimalDegenerates | ( | ) |
PUBLIC METHODS RELATED TO COMPATIBILITY.
Updates the set of variables that are not at their bounds
| void ClpPESimplex::updateDualDegenerates | ( | ) |
Updates the set of dual degenerate variables.
| void ClpPESimplex::identifyCompatibleCols | ( | int | number, |
| const int * | which, | ||
| CoinIndexedVector * | spareRow2, | ||
| CoinIndexedVector * | wPrimal ) |
Identify the primal compatible columns The input argument is a temporary array that is needed for the Clp's BTRAN.
| void ClpPESimplex::identifyCompatibleRows | ( | CoinIndexedVector * | spare, |
| CoinIndexedVector * | wDual ) |
Identify the dual compatible rows.
| void ClpPESimplex::updateCompatibleRows | ( | int | sequence | ) |
Update the dual compatible rows.
| bool ClpPESimplex::checkCompatibilityRow | ( | int | pivotRow | ) |
DEBUG AND DISPLAY METHODS.
Check that a basic row is indeed compatible
|
inline |
Tracking the degenerate iterations after compatible pivots.
Definition at line 106 of file ClpPESimplex.hpp.
|
inline |
Definition at line 107 of file ClpPESimplex.hpp.
|
inline |
Definition at line 108 of file ClpPESimplex.hpp.
|
inline |
Definition at line 109 of file ClpPESimplex.hpp.
|
inline |
Definition at line 110 of file ClpPESimplex.hpp.
|
inline |
Start and stop the timer, and print the total recorded time.
Definition at line 113 of file ClpPESimplex.hpp.
|
inline |
Definition at line 114 of file ClpPESimplex.hpp.
| void ClpPESimplex::printTimer | ( | std::ostream & | out | ) |
|
inline |
Definition at line 116 of file ClpPESimplex.hpp.
|
inline |
Definition at line 117 of file ClpPESimplex.hpp.
|
inline |
Definition at line 118 of file ClpPESimplex.hpp.
|
inline |
Update and return the number of degenerate pivots and variables.
Definition at line 121 of file ClpPESimplex.hpp.
|
inline |
Definition at line 122 of file ClpPESimplex.hpp.
|
inline |
Definition at line 123 of file ClpPESimplex.hpp.
|
inline |
Definition at line 124 of file ClpPESimplex.hpp.
|
inline |
Definition at line 125 of file ClpPESimplex.hpp.
| void ClpPESimplex::updateDualDegeneratesAvg | ( | int | coPivots | ) |
|
inline |
Definition at line 127 of file ClpPESimplex.hpp.
| void ClpPESimplex::updatePrimalDegeneratesAvg | ( | int | coPivots | ) |
|
inline |
Definition at line 129 of file ClpPESimplex.hpp.
|
inline |
Definition at line 130 of file ClpPESimplex.hpp.
| void ClpPESimplex::updateCompatibleRowsAvg | ( | int | coPivots | ) |
|
inline |
Definition at line 132 of file ClpPESimplex.hpp.
| void ClpPESimplex::updateCompatibleColsAvg | ( | int | coPivots | ) |
|
inline |
Definition at line 134 of file ClpPESimplex.hpp.
|
inline |
Definition at line 135 of file ClpPESimplex.hpp.
|
inline |
Definition at line 136 of file ClpPESimplex.hpp.
|
inline |
Definition at line 137 of file ClpPESimplex.hpp.
|
inline |
Definition at line 140 of file ClpPESimplex.hpp.
|
inline |
Definition at line 141 of file ClpPESimplex.hpp.
|
inline |
Definition at line 142 of file ClpPESimplex.hpp.
|
inline |
Definition at line 146 of file ClpPESimplex.hpp.
|
protected |
Indices of the variables that were not at one of their bounds during the last update (non primal degenerate variables).
Definition at line 154 of file ClpPESimplex.hpp.
|
protected |
Definition at line 155 of file ClpPESimplex.hpp.
|
protected |
Definition at line 156 of file ClpPESimplex.hpp.
|
protected |
Indices of the non basic variables with a zero reduced cost during the last update (ndual-degenerate variables).
Definition at line 160 of file ClpPESimplex.hpp.
|
protected |
Definition at line 161 of file ClpPESimplex.hpp.
|
protected |
Definition at line 162 of file ClpPESimplex.hpp.
|
protected |
Table of booleans indicating whether each variable is primal compatible (true) or not (false).
Definition at line 166 of file ClpPESimplex.hpp.
|
protected |
Definition at line 167 of file ClpPESimplex.hpp.
|
protected |
Definition at line 168 of file ClpPESimplex.hpp.
|
protected |
Table of booleans indicating whether each constraint is dual compatible (true) or not (false).
Definition at line 172 of file ClpPESimplex.hpp.
|
protected |
Definition at line 173 of file ClpPESimplex.hpp.
|
protected |
Definition at line 174 of file ClpPESimplex.hpp.
|
private |
pointer to the original model that shall be solved
Definition at line 178 of file ClpPESimplex.hpp.
|
private |
tolerance used for the tests of degeneracy and compatibility (resp.)
Definition at line 181 of file ClpPESimplex.hpp.
|
private |
Definition at line 182 of file ClpPESimplex.hpp.
|
private |
size of the original model
Definition at line 185 of file ClpPESimplex.hpp.
|
private |
Definition at line 186 of file ClpPESimplex.hpp.
|
private |
w vectors that are used to identify the compatible columns and rows.
The name w, refers to the notations of the articles on positive edge temporary vectors that are used to store colulns of the constraint matrix or random numbers
Definition at line 197 of file ClpPESimplex.hpp.
|
private |
number of degenerate pivots and variables
Definition at line 200 of file ClpPESimplex.hpp.
|
private |
Definition at line 201 of file ClpPESimplex.hpp.
|
private |
Definition at line 202 of file ClpPESimplex.hpp.
|
private |
Definition at line 203 of file ClpPESimplex.hpp.
|
private |
Definition at line 204 of file ClpPESimplex.hpp.
|
private |
Definition at line 206 of file ClpPESimplex.hpp.
|
private |
Definition at line 207 of file ClpPESimplex.hpp.
|
private |
Definition at line 208 of file ClpPESimplex.hpp.
|
private |
Definition at line 209 of file ClpPESimplex.hpp.
|
private |
number of compatible pivots that were done because of the priority factor
Definition at line 212 of file ClpPESimplex.hpp.
|
private |
Do statistics.
Definition at line 214 of file ClpPESimplex.hpp.
|
private |
tracking the degenerate iterations after compatible pivots
Definition at line 217 of file ClpPESimplex.hpp.
|
private |
Definition at line 218 of file ClpPESimplex.hpp.
|
private |
Timer attribute recording the additional time spent in identifying compatible variables.
Definition at line 222 of file ClpPESimplex.hpp.
|
private |
Definition at line 223 of file ClpPESimplex.hpp.
|
private |
Definition at line 224 of file ClpPESimplex.hpp.
|
private |
Definition at line 225 of file ClpPESimplex.hpp.