COIN-OR::LEMON - Graph Library

Changeset 2441:d8d6ab871608 in lemon-0.x for test/mip_test.cc


Ignore:
Timestamp:
05/07/07 20:19:55 (14 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3278
Message:

Conformity to new GLPK interface
Hacking Mip without integer variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/mip_test.cc

    r2391 r2441  
    4242  //int decimal,sign;
    4343  std::ostringstream buf;
    44   buf << "Primalstatus should be: " << int(stat)<<" and it is "<<int(lp.primalStatus());
     44  buf << "Primalstatus should be: " << int(stat)<<" and it is "<<int(lp.mipStatus());
    4545
    4646
     
    8282  //Constraints
    8383  mip.addRow(2*x1+x2 <=2); 
    84   mip.addRow(x1-2*x2 <=0); 
     84  mip.addRow(x1-2*x2 <=0);
    8585
    8686  //Nonnegativity of the variable x1
    8787  mip.colLowerBound(x1, 0);
    88 
    89 
    9088
    9189  //Maximization of x1
Note: See TracChangeset for help on using the changeset viewer.