6 #ifndef AbcDualRowSteepest_H
7 #define AbcDualRowSteepest_H
103 inline int mode()
const {
154 #undef DEVEX_TRY_NORM
155 #define DEVEX_TRY_NORM 1.0e-8
156 #define DEVEX_ADD_ONE 1.0
virtual bool looksOptimal() const
Returns true if would not find any row.
AbcSimplex * model() const
Model.
virtual void updatePrimalSolutionAndWeights(CoinIndexedVector &weightsVector, CoinIndexedVector &updateColumn, double theta)
Returns pivot row, -1 if none.
double factorizationRatio_
Ratio of size of factorization to number of rows.
CoinIndexedVector * infeasible() const
Infeasible vector.
virtual double updateWeights1(CoinIndexedVector &input, CoinIndexedVector &updateColumn)
Returns pivot row, -1 if none.
virtual void updateWeightsOnly(CoinIndexedVector &input)
Returns pivot row, -1 if none.
virtual AbcDualRowPivot * clone(bool copyData=true) const
Clone.
virtual void saveWeights(AbcSimplex *model, int mode)
Saves any weights round factorization as pivot rows may change Save model May also recompute infeasib...
AbcSimplex * model_
Pointer to model.
void fill(const AbcDualRowSteepest &rhs)
Fill most values.
AbcDualRowSteepest & operator=(const AbcDualRowSteepest &rhs)
Assignment operator.
virtual void updateWeights2(CoinIndexedVector &input, CoinIndexedVector &updateColumn)
Actually updates weights.
int state_
Status 0) Normal -1) Needs initialization 1) Weights are stored by sequence number.
virtual void updatePrimalSolution(CoinIndexedVector &input, double theta)
Updates primal solution (and maybe list of candidates) Uses input vector which it deletes...
virtual void recomputeInfeasibilities()
Recompute infeasibilities.
CoinIndexedVector * weights() const
Weights vector.
AbcDualRowSteepest(int mode=3)
Default Constructor 0 is uninitialized, 1 full, 2 is partial uninitialized, 3 starts as 2 but may swi...
virtual ~AbcDualRowSteepest()
Destructor.
CoinIndexedVector * savedWeights_
save weight array (so we can use checkpoint)
Persistence persistence_
Life of weights.
double norm_
Ratio of size of factorization to number of rows.
virtual int pivotRow()
Returns pivot row, -1 if none.
CoinIndexedVector * weights_
weight array
int mode_
If 0 then we are using uninitialized weights, 1 then full, if 2 then uninitialized partial...
Persistence persistence() const
Mode.
Dual Row Pivot Abstract Base Class.
virtual void clearArrays()
Gets rid of all arrays.
virtual double updateWeights(CoinIndexedVector &input, CoinIndexedVector &updatedColumn)
Updates weights and returns pivot alpha.
CoinIndexedVector * infeasible_
square of infeasibility array (just for infeasible rows)
void setPersistence(Persistence life)
Set/ get persistence.
Persistence
enums for persistence
Dual Row Pivot Steepest Edge Algorithm Class.