17#ifndef OR_TOOLS_LP_DATA_LP_DATA_UTILS_H_
18#define OR_TOOLS_LP_DATA_LP_DATA_UTILS_H_
20#include "ortools/glop/parameters.pb.h"
41void Scale(LinearProgram* lp, SparseMatrixScaler* scaler,
42 GlopParameters::ScalingAlgorithm scaling_method);
46void Scale(LinearProgram* lp, SparseMatrixScaler* scaler);
92 return objective_scaling_factor_;
void Scale(LinearProgram *lp)
Fractional ScaleConstraintActivity(RowIndex row, Fractional value) const
Fractional ScaleVariableValue(ColIndex col, Fractional value) const
Fractional VariableScalingFactor(ColIndex col) const
Fractional UnscaleVariableValue(ColIndex col, Fractional value) const
Fractional UnscaleReducedCost(ColIndex col, Fractional value) const
void UnscaleUnitRowLeftSolve(ColIndex basis_col, ScatteredRow *left_inverse) const
void UnscaleColumnRightSolve(const RowToColMapping &basis, ColIndex col, ScatteredColumn *right_inverse) const
Fractional UnscaleDualValue(RowIndex row, Fractional value) const
Fractional ScaleReducedCost(ColIndex col, Fractional value) const
Fractional UnscaleConstraintActivity(RowIndex row, Fractional value) const
Fractional ScaleDualValue(RowIndex row, Fractional value) const
Fractional BoundsScalingFactor() const
Fractional ObjectiveScalingFactor() const
StrictITIVector< ColIndex, Fractional > DenseRow
void ComputeSlackVariablesValues(const LinearProgram &linear_program, DenseRow *values)
void Scale(LinearProgram *lp, SparseMatrixScaler *scaler)
Collection of objects used to extend the Constraint Solver library.