60#ifndef OR_TOOLS_LP_DATA_MATRIX_SCALER_H_
61#define OR_TOOLS_LP_DATA_MATRIX_SCALER_H_
67#include "ortools/glop/parameters.pb.h"
113 void Scale(GlopParameters::ScalingAlgorithm method);
133 Fractional VarianceOfAbsoluteValueOfNonZeros()
const;
137 RowIndex ScaleRowsGeometrically();
141 ColIndex ScaleColumnsGeometrically();
145 RowIndex EquilibrateRows();
149 ColIndex EquilibrateColumns();
153 RowIndex ScaleMatrixRows(
const DenseColumn& factors);
162 std::string DebugInformationString()
const;
const DenseRow & col_scales() const
These are unscaling factor, same as [Col|Row]UnscalingFactor().
void ScaleColumnVector(bool up, DenseColumn *column_vector) const
const DenseColumn & row_scales() const
SparseMatrixScaler(const SparseMatrixScaler &)=delete
This type is neither copyable nor movable.
SparseMatrixScaler & operator=(const SparseMatrixScaler &)=delete
void Init(SparseMatrix *matrix)
Fractional RowScalingFactor(RowIndex row) const
void ScaleRowVector(bool up, DenseRow *row_vector) const
Fractional ColScalingFactor(ColIndex col) const
Fractional RowUnscalingFactor(RowIndex row) const
void Scale(GlopParameters::ScalingAlgorithm method)
Scales the matrix.
Fractional ColUnscalingFactor(ColIndex col) const
In SWIG mode, we don't want anything besides these top-level includes.