58 for (
int i = 0; i <
input.variable_size(); ++i) {
64 if (
var.is_integer()) {
68 for (
int j = 0; j <
input.constraint_size(); ++j) {
#define CHECK_EQ(val1, val2)
const std::string & name() const
::PROTOBUF_NAMESPACE_ID::int32 var_index(int index) const
int var_index_size() const
double upper_bound() const
int coefficient_size() const
double coefficient(int index) const
void set_name(ArgT0 &&arg0, ArgT... args)
void set_lower_bound(double value)
double lower_bound() const
void add_var_index(::PROTOBUF_NAMESPACE_ID::int32 value)
void add_coefficient(double value)
void set_upper_bound(double value)
::operations_research::MPVariableProto * add_variable()
void set_name(ArgT0 &&arg0, ArgT... args)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::operations_research::MPConstraintProto * add_constraint()
void set_maximize(bool value)
void set_objective_offset(double value)
void set_is_integer(bool value)
void set_objective_coefficient(double value)
void set_name(ArgT0 &&arg0, ArgT... args)
void set_lower_bound(double value)
void set_upper_bound(double value)
void SetVariableBounds(ColIndex col, Fractional lower_bound, Fractional upper_bound)
void SetConstraintName(RowIndex row, absl::string_view name)
void SetObjectiveOffset(Fractional objective_offset)
void SetCoefficient(RowIndex row, ColIndex col, Fractional value)
void SetVariableName(ColIndex col, absl::string_view name)
void SetConstraintBounds(RowIndex row, Fractional lower_bound, Fractional upper_bound)
ColIndex CreateNewVariable()
void SetVariableType(ColIndex col, VariableType type)
void SetName(const std::string &name)
void SetObjectiveCoefficient(ColIndex col, Fractional value)
RowIndex CreateNewConstraint()
void SetMaximizationProblem(bool maximize)
void PopulateFromTranspose(const Matrix &input)
const SparseColumn & column(ColIndex col) const
typename Iterator::Entry Entry
void MPModelProtoToLinearProgram(const MPModelProto &input, LinearProgram *output)
void LinearProgramToMPModelProto(const LinearProgram &input, MPModelProto *output)
ColIndex RowToColIndex(RowIndex row)
Collection of objects used to extend the Constraint Solver library.
static int input(yyscan_t yyscanner)