#include <ClpDualRowSteepest.hpp>
Inheritance diagram for ClpDualRowSteepest:
Public Types | |
enum | Persistence { normal = 0x00, keep = 0x01 } |
enums for persistence More... | |
Public Methods | |
Algorithmic methods | |
virtual int | pivotRow () |
Returns pivot row, -1 if none. | |
virtual double | updateWeights (CoinIndexedVector *input, CoinIndexedVector *spare, CoinIndexedVector *updatedColumn) |
Updates weights and returns pivot alpha. | |
virtual void | updatePrimalSolution (CoinIndexedVector *input, double theta, double &changeInObjective) |
Updates primal solution (and maybe list of candidates) Uses input vector which it deletes Computes change in objective function. | |
virtual void | saveWeights (ClpSimplex *model, int mode) |
Saves any weights round factorization as pivot rows may change Save model May also recompute infeasibility stuff 1) before factorization 2) after good factorization (if weights empty may initialize) 3) after something happened but no factorization (e.g. | |
virtual void | unrollWeights () |
Gets rid of last update. | |
virtual void | clearArrays () |
Gets rid of all arrays. | |
virtual bool | looksOptimal () const |
Returns true if would not find any row. | |
Constructors and destructors | |
ClpDualRowSteepest (int mode=3) | |
Default Constructor 0 is uninitialized, 1 full, 2 is partial uninitialized, 3 starts as 2 but may switch to 1. | |
ClpDualRowSteepest (const ClpDualRowSteepest &) | |
Copy constructor. | |
ClpDualRowSteepest & | operator= (const ClpDualRowSteepest &rhs) |
Assignment operator. | |
virtual | ~ClpDualRowSteepest () |
Destructor. | |
virtual ClpDualRowPivot * | clone (bool copyData=true) const |
Clone. | |
gets and sets | |
int | mode () const |
Mode. | |
void | setPersistence (Persistence life) |
Set/ get persistence. | |
Persistence | persistence () const |
Mode. | |
Private Attributes | |
Private member data | |
int | state_ |
Status 0) Normal -1) Needs initialization 1) Weights are stored by sequence number. | |
int | mode_ |
If 0 then we are using uninitialized weights, 1 then full, if 2 then uninitialized partial, 3 switchable. | |
Persistence | persistence_ |
Life of weights. | |
double * | weights_ |
weight array | |
CoinIndexedVector * | infeasible_ |
square of infeasibility array (just for infeasible rows) | |
CoinIndexedVector * | alternateWeights_ |
alternate weight array (so we can unroll) | |
CoinIndexedVector * | savedWeights_ |
save weight array (so we can use checkpoint) | |
int * | dubiousWeights_ |
Dubious weights. |
|
enums for persistence
Definition at line 62 of file ClpDualRowSteepest.hpp. Referenced by persistence(). |
|
Default Constructor 0 is uninitialized, 1 full, 2 is partial uninitialized, 3 starts as 2 but may switch to 1. By partial is meant that the weights are updated as normal but only part of the infeasible basic variables are scanned. This can be faster on very easy problems. |
|
Copy constructor.
|
|
Destructor.
|
|
Returns pivot row, -1 if none.
Implements ClpDualRowPivot. |
|
Updates weights and returns pivot alpha.
Implements ClpDualRowPivot. |
|
Updates primal solution (and maybe list of candidates) Uses input vector which it deletes Computes change in objective function.
Implements ClpDualRowPivot. |
|
Saves any weights round factorization as pivot rows may change Save model May also recompute infeasibility stuff 1) before factorization 2) after good factorization (if weights empty may initialize) 3) after something happened but no factorization (e.g. check for infeasible) 4) as 2 but restore weights from previous snapshot 5) for strong branching - initialize (uninitialized) , infeasibilities Reimplemented from ClpDualRowPivot. |
|
Gets rid of last update.
Reimplemented from ClpDualRowPivot. |
|
Gets rid of all arrays.
Reimplemented from ClpDualRowPivot. |
|
Returns true if would not find any row.
Reimplemented from ClpDualRowPivot. |
|
Assignment operator.
|
|
Clone.
Implements ClpDualRowPivot. |
|
Mode.
Definition at line 94 of file ClpDualRowSteepest.hpp. References mode_. |
|
Set/ get persistence.
Definition at line 97 of file ClpDualRowSteepest.hpp. References persistence_. |
|
Mode.
Definition at line 99 of file ClpDualRowSteepest.hpp. References Persistence, and persistence_. |
|
Status 0) Normal -1) Needs initialization 1) Weights are stored by sequence number.
Definition at line 112 of file ClpDualRowSteepest.hpp. |
|
If 0 then we are using uninitialized weights, 1 then full, if 2 then uninitialized partial, 3 switchable.
Definition at line 115 of file ClpDualRowSteepest.hpp. Referenced by mode(). |
|
Life of weights.
Definition at line 117 of file ClpDualRowSteepest.hpp. Referenced by persistence(), and setPersistence(). |
|
weight array
Definition at line 119 of file ClpDualRowSteepest.hpp. |
|
square of infeasibility array (just for infeasible rows)
Definition at line 121 of file ClpDualRowSteepest.hpp. |
|
alternate weight array (so we can unroll)
Definition at line 123 of file ClpDualRowSteepest.hpp. |
|
save weight array (so we can use checkpoint)
Definition at line 125 of file ClpDualRowSteepest.hpp. |
|
Dubious weights.
Definition at line 127 of file ClpDualRowSteepest.hpp. |