14#ifndef OR_TOOLS_MATH_OPT_VALIDATORS_SPARSE_MATRIX_VALIDATOR_H_
15#define OR_TOOLS_MATH_OPT_VALIDATORS_SPARSE_MATRIX_VALIDATOR_H_
19#include "absl/status/status.h"
20#include "absl/types/span.h"
22#include "ortools/math_opt/model.pb.h"
34 bool enforce_upper_triangular =
false);
40 const IdNameBiMap& row_ids,
41 const IdNameBiMap& column_ids);
An object oriented wrapper for quadratic constraints in ModelStorage.
absl::Status SparseMatrixIdsAreKnown(const SparseDoubleMatrixProto &matrix, const IdNameBiMap &row_ids, const IdNameBiMap &column_ids)
absl::Status SparseMatrixValid(const SparseDoubleMatrixProto &matrix, const bool enforce_upper_triangular)