26 auto model = std::make_unique<Model>(
"small_model");
27 const Variable x_1 =
model->AddVariable(0.0, 1.0, integer,
"x_1");
28 const Variable y_1 =
model->AddVariable(0.0, 1.0, integer,
"y_1");
29 model->AddLinearConstraint(x_1 + y_1 <= 1.5);
31 const Variable x_2 =
model->AddVariable(0.0, 1.0, integer,
"x_2");
32 const Variable y_2 =
model->AddVariable(0.0, 1.0, integer,
"y_2");
33 model->AddLinearConstraint(x_2 + y_2 <= 1.5);
35 const Variable x_3 =
model->AddVariable(0.0, 1.0, integer,
"x_3");
36 const Variable y_3 =
model->AddVariable(0.0, 1.0, integer,
"y_3");
37 model->AddLinearConstraint(x_3 + y_3 <= 1.5);
39 model->Maximize(3.0 * x_1 + 2.0 * y_1 + 3.0 * x_2 + 2.0 * y_2 + 3.0 * x_3 +