14 #ifndef OR_TOOLS_GLOP_INITIAL_BASIS_H_
15 #define OR_TOOLS_GLOP_INITIAL_BASIS_H_
84 template <
bool only_allow_zero_cost_column>
85 void CompleteTriangularBasis(ColIndex num_cols,
RowToColMapping* basis);
87 template <
bool only_allow_zero_cost_column>
93 int GetColumnCategory(ColIndex
col)
const;
96 int GetMarosPriority(RowIndex
row)
const;
97 int GetMarosPriority(ColIndex
col)
const;
109 struct BixbyColumnComparator {
110 explicit BixbyColumnComparator(
const InitialBasis& initial_basis)
111 : initial_basis_(initial_basis) {}
112 bool operator()(ColIndex col_a, ColIndex col_b)
const;
114 } bixby_column_comparator_;
118 struct TriangularColumnComparator {
119 explicit TriangularColumnComparator(
const InitialBasis& initial_basis)
120 : initial_basis_(initial_basis) {}
121 bool operator()(ColIndex col_a, ColIndex col_b)
const;
123 } triangular_column_comparator_;
void CompleteTriangularPrimalBasis(ColIndex num_cols, RowToColMapping *basis)
void CompleteTriangularDualBasis(ColIndex num_cols, RowToColMapping *basis)
InitialBasis(const CompactSparseMatrix &compact_matrix, const DenseRow &objective, const DenseRow &lower_bound, const DenseRow &upper_bound, const VariableTypeRow &variable_type)
void CompleteBixbyBasis(ColIndex num_cols, RowToColMapping *basis)
void GetDualMarosBasis(ColIndex num_cols, RowToColMapping *basis)
void GetPrimalMarosBasis(ColIndex num_cols, RowToColMapping *basis)
void ComputeCandidates(ColIndex num_cols, std::vector< ColIndex > *candidates)
Collection of objects used to extend the Constraint Solver library.