Go to the documentation of this file.
6 #ifndef AbcPrimalColumnSteepest_H
7 #define AbcPrimalColumnSteepest_H
13 class CoinIndexedVector;
34 virtual int pivotColumn(CoinPartitionedVector *updates,
35 CoinPartitionedVector *spareRow2,
36 CoinPartitionedVector *spareColumn1);
38 void justDjs(CoinIndexedVector *updates,
39 CoinIndexedVector *spareColumn1);
46 CoinIndexedVector *spareRow2,
47 CoinIndexedVector *spareColumn1);
50 CoinIndexedVector *spareColumn1);
52 void justDevex(CoinIndexedVector *updates,
53 CoinIndexedVector *spareColumn1);
62 CoinPartitionedVector *spareRow2,
63 CoinPartitionedVector *spareColumn1,
71 CoinIndexedVector *rowArray1);
97 inline int mode()
const
143 return ((
reference_[i >> 5] >> (i & 31)) & 1) != 0;
152 value &= ~(1 << bit);
AbcPrimalColumnSteepest & operator=(const AbcPrimalColumnSteepest &rhs)
Assignment operator.
void setReference(int i, bool trueFalse)
virtual void updateWeights(CoinIndexedVector *input)
Updates weights - part 1 - also checks accuracy.
int mode_
0 is exact devex, 1 full steepest, 2 is partial exact devex 3 switches between 0 and 2 depending on f...
CoinIndexedVector * alternateWeights_
alternate weight array (so we can unroll)
void djsAndDevex(CoinIndexedVector *updates, CoinIndexedVector *spareRow2, CoinIndexedVector *spareColumn1)
Update djs, weights for Devex using djs.
double * savedWeights_
save weight array (so we can use checkpoint)
Persistence
enums for persistence
virtual void maximumPivotsChanged()
Called when maximum pivots changes.
virtual void saveWeights(AbcSimplex *model, int mode)
Save weights - this may initialize weights as well mode is - 1) before factorization 2) after factori...
virtual ~AbcPrimalColumnSteepest()
Destructor.
CoinIndexedVector * infeasible_
square of infeasibility array (just for infeasible columns)
int partialPricing(CoinIndexedVector *updates, int numberWanted, int numberLook)
Update djs doing partial pricing (dantzig)
Persistence persistence() const
unsigned int * reference_
void setPersistence(Persistence life)
Set/ get persistence.
void justDjs(CoinIndexedVector *updates, CoinIndexedVector *spareColumn1)
Just update djs.
double * weights_
weight array
void djsAndDevex2(CoinIndexedVector *updates, CoinIndexedVector *spareColumn1)
Update djs, weights for Devex using pivot row.
int numberSwitched_
Number of times switched from partial dantzig to 0/2.
virtual bool looksOptimal() const
Returns true if would not find any column.
void initializeWeights()
Initialize weights.
AbcSimplex * model()
Returns model.
virtual int pivotColumn(CoinPartitionedVector *updates, CoinPartitionedVector *spareRow2, CoinPartitionedVector *spareColumn1)
Returns pivot column, -1 if none.
virtual void clearArrays()
Gets rid of all arrays.
int state_
Status 0) Normal -1) Needs initialization 1) Weights are stored by sequence number.
void justDevex(CoinIndexedVector *updates, CoinIndexedVector *spareColumn1)
Update weights for Devex.
bool reference(int i) const
reference would be faster using AbcSimplex's status_, but I prefer to keep modularity.
Primal Column Pivot Steepest Edge Algorithm Class.
Persistence persistence_
Life of weights.
int doSteepestWork(CoinPartitionedVector *updates, CoinPartitionedVector *spareRow2, CoinPartitionedVector *spareColumn1, int type)
Does steepest work type - 0 - just djs 1 - just steepest 2 - both using scaleFactor 3 - both using ex...
virtual void unrollWeights()
Gets rid of last update.
int type()
Returns type (above 63 is extra information)
virtual AbcPrimalColumnPivot * clone(bool copyData=true) const
Clone.
void checkAccuracy(int sequence, double relativeTolerance, CoinIndexedVector *rowArray1)
Checks accuracy - just for debug.
Primal Column Pivot Abstract Base Class.
AbcPrimalColumnSteepest(int mode=3)
Default Constructor 0 is exact devex, 1 full steepest, 2 is partial exact devex 3 switches between 0 ...