demo/mip_demo.cc
changeset 2369 6ae1a97055a2
parent 2148 ab368e0ab662
child 2391 14a343be7a5a
equal deleted inserted replaced
1:de442e3b70b4 2:1e8f2052aae1
    29   
    29   
    30   ilp.colLowerBound(x1, 0);
    30   ilp.colLowerBound(x1, 0);
    31   ilp.colLowerBound(x2, 0);
    31   ilp.colLowerBound(x2, 0);
    32   ilp.colLowerBound(x3, 0);
    32   ilp.colLowerBound(x3, 0);
    33   //Objective function
    33   //Objective function
    34   ilp.setObj(10*x1+6*x2+4*x3);
    34   ilp.obj(10*x1+6*x2+4*x3);
    35   
    35   
    36   //Call the routine of the underlying LP solver
    36   //Call the routine of the underlying LP solver
    37   ilp.solve();
    37   ilp.solve();
    38   
    38   
    39   //Print results
    39   //Print results