18#include "absl/algorithm/container.h"
26 result.
mutable_ids()->Reserve(
static_cast<int>(terms_.size()));
28 for (
const auto [var, _] : terms_) {
32 for (
const int64_t
id : result.
ids()) {
SparseDoubleVectorProto Proto() const
::google::protobuf::RepeatedField<::int64_t > *PROTOBUF_NONNULL mutable_ids()
::int64_t ids(int index) const
void add_ids(::int64_t value)
void add_values(double value)
::google::protobuf::RepeatedField< double > *PROTOBUF_NONNULL mutable_values()
An object oriented wrapper for quadratic constraints in ModelStorage.
ElementId< ElementType::kVariable > VariableId