equal
deleted
inserted
replaced
63 //Nonnegativity of the variables |
63 //Nonnegativity of the variables |
64 lp.colLowerBound(x1, 0); |
64 lp.colLowerBound(x1, 0); |
65 lp.colLowerBound(x2, 0); |
65 lp.colLowerBound(x2, 0); |
66 lp.colLowerBound(x3, 0); |
66 lp.colLowerBound(x3, 0); |
67 //Objective function |
67 //Objective function |
68 lp.setObj(10*x1+6*x2+4*x3); |
68 lp.obj(10*x1+6*x2+4*x3); |
69 |
69 |
70 //Call the routine of the underlying LP solver |
70 //Call the routine of the underlying LP solver |
71 lp.solve(); |
71 lp.solve(); |
72 |
72 |
73 //Print results |
73 //Print results |