14#ifndef OR_TOOLS_GLOP_PRIMAL_EDGE_NORMS_H_
15#define OR_TOOLS_GLOP_PRIMAL_EDGE_NORMS_H_
20#include "ortools/glop/parameters.pb.h"
111 RowIndex leaving_row,
122 pricing_rule_ = rule;
132 std::string
StatString()
const {
return stats_.StatString(); }
144 direction_left_inverse_density(
"direction_left_inverse_density",
146 direction_left_inverse_accuracy(
"direction_left_inverse_accuracy",
148 edges_norm_accuracy(
"edges_norm_accuracy", this),
149 lower_bounded_norms(
"lower_bounded_norms", this) {}
157 void ComputeMatrixColumnNorms();
160 void ComputeEdgeSquaredNorms();
164 void ComputeDirectionLeftInverse(ColIndex entering_col,
165 const ScatteredColumn& direction);
168 void UpdateEdgeSquaredNorms(ColIndex entering_col, ColIndex leaving_col,
169 RowIndex leaving_row,
171 const UpdateRow& update_row);
174 void ResetDevexWeights();
177 void UpdateDevexWeights(ColIndex entering_col, ColIndex leaving_col,
178 RowIndex leaving_row,
const DenseColumn& direction,
179 const UpdateRow& update_row);
182 const CompactSparseMatrix& compact_matrix_;
183 const VariablesInfo& variables_info_;
184 const BasisFactorization& basis_factorization_;
187 GlopParameters parameters_;
188 GlopParameters::PricingRule pricing_rule_ = GlopParameters::DANTZIG;
192 bool must_refactorize_basis_;
193 bool recompute_edge_squared_norms_;
194 bool reset_devex_weights_;
209 int num_devex_updates_since_reset_;
215 ScatteredRow direction_left_inverse_;
218 int64_t num_operations_;
222 std::vector<bool*> watchers_;
const DenseRow & GetSquaredNorms()
void AddRecomputationWatcher(bool *watcher)
PrimalEdgeNorms(const CompactSparseMatrix &compact_matrix, const VariablesInfo &variables_info, const BasisFactorization &basis_factorization)
const DenseRow & GetMatrixColumnNorms()
const DenseRow & GetEdgeSquaredNorms()
const DenseRow & GetDevexWeights()
void UpdateBeforeBasisPivot(ColIndex entering_col, ColIndex leaving_col, RowIndex leaving_row, const ScatteredColumn &direction, UpdateRow *update_row)
void SetPricingRule(GlopParameters::PricingRule rule)
void TestEnteringEdgeNormPrecision(ColIndex entering_col, const ScatteredColumn &direction)
void SetParameters(const GlopParameters ¶meters)
double DeterministicTime() const
bool NeedsBasisRefactorization() const
std::string StatString() const
StrictITIVector< ColIndex, Fractional > DenseRow
StrictITIVector< RowIndex, Fractional > DenseColumn
static double DeterministicTimeForFpOperations(int64_t n)
Collection of objects used to extend the Constraint Solver library.