COIN-OR::LEMON - Graph Library

Changeset 2213:2c094dfa176d in lemon-0.x for test/mip_test.cc


Ignore:
Timestamp:
09/08/06 17:51:32 (14 years ago)
Author:
athos
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2941
Message:

Some corrections.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/mip_test.cc

    r2149 r2213  
    1313
    1414  //  itoa(stat,buf1, 10);
    15   check(lp.primalStatus()==stat, buf.str());
     15  check(lp.mipStatus()==stat, buf.str());
    1616
    1717  if (stat ==  LpSolverBase::OPTIMAL) {
     
    3636
    3737
     38
     39
     40
     41  //Objective function
     42  mip.setObj(x1);
     43
     44  mip.max();
     45
     46
     47  //Unconstrained optimization
     48  mip.solve();
     49  //Check it out!
     50
    3851  //Constraints
    3952  mip.addRow(2*x1+x2 <=2); 
     
    4558
    4659
    47   //Objective function
    48   mip.setObj(x1);
    49 
    50   mip.max();
    51 
    52 
    5360  //Maximization of x1
    54   //over the triangle with vertices
     61  //over the triangle with vertices 
    5562  double expected_opt=4.0/5.0;
    5663  solveAndCheck(mip, Mip::OPTIMAL, expected_opt);
Note: See TracChangeset for help on using the changeset viewer.