test/mip_test.cc
changeset 2441 d8d6ab871608
parent 2391 14a343be7a5a
child 2553 bfced05fa852
     1.1 --- a/test/mip_test.cc	Mon May 07 11:42:18 2007 +0000
     1.2 +++ b/test/mip_test.cc	Mon May 07 18:19:55 2007 +0000
     1.3 @@ -41,7 +41,7 @@
     1.4    lp.solve();
     1.5    //int decimal,sign;
     1.6    std::ostringstream buf;
     1.7 -  buf << "Primalstatus should be: " << int(stat)<<" and it is "<<int(lp.primalStatus());
     1.8 +  buf << "Primalstatus should be: " << int(stat)<<" and it is "<<int(lp.mipStatus());
     1.9  
    1.10  
    1.11    //  itoa(stat,buf1, 10);
    1.12 @@ -81,13 +81,11 @@
    1.13  
    1.14    //Constraints
    1.15    mip.addRow(2*x1+x2 <=2);  
    1.16 -  mip.addRow(x1-2*x2 <=0);  
    1.17 +  mip.addRow(x1-2*x2 <=0);
    1.18  
    1.19    //Nonnegativity of the variable x1
    1.20    mip.colLowerBound(x1, 0);
    1.21  
    1.22 -
    1.23 -
    1.24    //Maximization of x1
    1.25    //over the triangle with vertices (0,0),(4/5,2/5),(0,2)
    1.26    double expected_opt=4.0/5.0;