16#include "absl/log/check.h"
33 for (ColIndex col(0); col <
input.num_variables(); ++col) {
45 for (RowIndex row(0); row <
input.num_constraints(); ++row) {
65 for (
int i = 0; i <
input.variable_size(); ++i) {
75 for (
int j = 0; j <
input.constraint_size(); ++j) {
void set_name(Arg_ &&arg, Args_... args)
double lower_bound() const
const ::std::string & name() const
int var_index_size() const
void set_lower_bound(double value)
int coefficient_size() const
void add_coefficient(double value)
void set_upper_bound(double value)
double coefficient(int index) const
void add_var_index(::int32_t value)
::int32_t var_index(int index) const
double upper_bound() const
void set_maximize(bool value)
::operations_research::MPConstraintProto *PROTOBUF_NONNULL add_constraint()
::operations_research::MPVariableProto *PROTOBUF_NONNULL add_variable()
void set_objective_offset(double value)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void set_name(Arg_ &&arg, Args_... args)
void set_upper_bound(double value)
void set_name(Arg_ &&arg, Args_... args)
void set_is_integer(bool value)
void set_objective_coefficient(double value)
double lower_bound() const
double upper_bound() const
void set_lower_bound(double value)
const ::std::string & name() const
double objective_coefficient() const
void SetName(absl::string_view name)
void SetConstraintName(RowIndex row, absl::string_view name)
void SetObjectiveOffset(Fractional objective_offset)
void SetObjectiveCoefficient(ColIndex col, Fractional value)
void SetVariableBounds(ColIndex col, Fractional lower_bound, Fractional upper_bound)
void SetVariableType(ColIndex col, VariableType type)
void SetConstraintBounds(RowIndex row, Fractional lower_bound, Fractional upper_bound)
void SetCoefficient(RowIndex row, ColIndex col, Fractional value)
void SetVariableName(ColIndex col, absl::string_view name)
RowIndex CreateNewConstraint()
ColIndex CreateNewVariable()
void SetMaximizationProblem(bool maximize)
const SparseColumn & column(ColIndex col) const
void PopulateFromTranspose(const Matrix &input)
typename Iterator::Entry Entry
void LinearProgramToMPModelProto(const LinearProgram &input, MPModelProto *output)
ColIndex RowToColIndex(RowIndex row)
void MPModelProtoToLinearProgram(const MPModelProto &input, LinearProgram *output)
static int input(yyscan_t yyscanner)