26int main(
int argc,
char* argv[]) {
30 std::unique_ptr<operations_research::GScip> gscip = *std::move(gscip_or);
32 const auto x_or = gscip->AddVariable(
35 SCIP_VAR*
const x = *x_or;
40 QCHECK_OK(gscip->SetLb(x, 0.0));
41 QCHECK_OK(gscip->SetUb(x, 0.0));
42 QCHECK_EQ(gscip->Lb(x), 0.0);
43 QCHECK_EQ(gscip->Ub(x), 0.0);
47 QCHECK_OK(gscip->SetLb(x, 1.0));
48 QCHECK_OK(gscip->SetUb(x, 1.0));
49 QCHECK_EQ(gscip->Lb(x), 1.0);
50 QCHECK_EQ(gscip->Ub(x), 1.0);
54 QCHECK_OK(gscip->SetLb(x, 0.0));
55 QCHECK_OK(gscip->SetUb(x, 1.0));
56 QCHECK_EQ(gscip->Lb(x), 0.0);
57 QCHECK_EQ(gscip->Ub(x), 1.0);
62 QCHECK_OK(gscip->SetLb(x, 0.25));
63 QCHECK_OK(gscip->SetUb(x, 0.75));
64 QCHECK_EQ(gscip->Lb(x), 1.0);
65 QCHECK_EQ(gscip->Ub(x), 0.0);
69 gscip->SetUb(x, 2.0).IgnoreError();