 |
OR-Tools
8.1
|
Go to the documentation of this file.
14 #ifndef OR_TOOLS_GLOP_BASIS_REPRESENTATION_H_
15 #define OR_TOOLS_GLOP_BASIS_REPRESENTATION_H_
81 void LeftSolveWithDenseEta(
DenseRow* y)
const;
82 void LeftSolveWithSparseEta(
DenseRow* y)
const;
93 const ColIndex eta_col_;
119 void Update(ColIndex entering_col, RowIndex leaving_variable_row,
135 std::vector<EtaMatrix*> eta_matrix_;
159 max_num_updates_ =
parameters.basis_refactorization_period();
160 use_middle_product_form_update_ =
209 ABSL_MUST_USE_RESULT
Status Update(ColIndex entering_col,
210 RowIndex leaving_variable_row,
276 return stats_.StatString() + lu_factorization_.
StatString();
287 bool IsIdentityBasis()
const;
292 ABSL_MUST_USE_RESULT
Status
293 MiddleProductFormUpdate(ColIndex entering_col, RowIndex leaving_variable_row);
297 void BumpDeterministicTimeForSolve(
int num_entries)
const;
303 refactorization_interval(
"refactorization_interval", this) {}
309 mutable Stats stats_;
310 GlopParameters parameters_;
313 const CompactSparseMatrix& compact_matrix_;
318 RankOneUpdateFactorization rank_one_factorization_;
320 mutable std::vector<RowIndex> scratchpad_non_zeros_;
325 mutable ScatteredColumn tau_;
343 mutable bool tau_computation_can_be_optimized_;
344 mutable bool tau_is_computed_;
350 mutable CompactSparseMatrix storage_;
351 mutable CompactSparseMatrix right_storage_;
355 bool use_middle_product_form_update_;
356 int max_num_updates_;
358 EtaFactorization eta_factorization_;
359 LuFactorization lu_factorization_;
362 mutable double deterministic_time_;
370 #endif // OR_TOOLS_GLOP_BASIS_REPRESENTATION_H_
void SetColumnPermutationToIdentity()
Fractional ComputeInverseInfinityNorm() const
Fractional ComputeOneNormConditionNumber() const
std::string StatString() const
Fractional ComputeOneNorm() const
void SparseLeftSolve(DenseRow *y, ColIndexVector *pos) const
ABSL_MUST_USE_RESULT Status Update(ColIndex entering_col, RowIndex leaving_variable_row, const ScatteredColumn &direction)
Fractional ComputeInfinityNorm() const
RowIndex num_rows() const
StrictITIVector< RowIndex, ColIndex > RowToColMapping
The vehicle routing library lets one model and solve generic vehicle routing problems ranging from th...
virtual ~EtaFactorization()
bool IsRefactorized() const
void LeftSolve(DenseRow *y) const
void Update(ColIndex entering_col, RowIndex leaving_variable_row, const ScatteredColumn &direction)
const DenseColumn & RightSolveForTau(const ScatteredColumn &a) const
void SparseLeftSolve(DenseRow *y, ColIndexVector *pos) const
Fractional DualEdgeSquaredNorm(RowIndex row) const
void LeftSolveForUnitRow(ColIndex j, ScatteredRow *y) const
ABSL_MUST_USE_RESULT Status Refactorize()
ABSL_MUST_USE_RESULT Status Initialize()
double DeterministicTime() const
Fractional RightSolveSquaredNorm(const ColumnView &a) const
void LeftSolve(ScatteredRow *y) const
ABSL_MUST_USE_RESULT Status ForceRefactorization()
const ColumnPermutation & GetColumnPermutation() const
void SetColumnPermutationToIdentity()
std::vector< ColIndex > ColIndexVector
void RightSolve(DenseColumn *d) const
BasisFactorization(const CompactSparseMatrix *compact_matrix, const RowToColMapping *basis)
void RightSolve(ScatteredColumn *d) const
#define DCHECK(condition)
void LeftSolve(DenseRow *y) const
StrictITIVector< ColIndex, ColIndex > ColMapping
virtual ~BasisFactorization()
Fractional ComputeInverseOneNorm() const
void SetParameters(const GlopParameters ¶meters)
RowIndex GetNumberOfRows() const
StrictITIVector< RowIndex, Fractional > DenseColumn
Fractional ComputeInfinityNormConditionNumberUpperBound() const
void SetParameters(const GlopParameters ¶meters)
EtaMatrix(ColIndex eta_col, const ScatteredColumn &direction)
const ColumnPermutation & GetColumnPermutation() const
void RightSolveForProblemColumn(ColIndex col, ScatteredColumn *d) const
void TemporaryLeftSolveForUnitRow(ColIndex j, ScatteredRow *y) const
std::string StatString() const
void RightSolve(DenseColumn *d) const
Fractional ComputeInfinityNormConditionNumber() const