COIN-OR::LEMON - Graph Library

Changeset 2637:bafe730864da in lemon-0.x


Ignore:
Timestamp:
06/01/09 18:53:59 (10 years ago)
Author:
Peter Kovacs
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3522
Message:

Remove a faulty check from lp_test.cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/lp_test.cc

    r2605 r2637  
    326326  //  std::cout<<lp.colLowerBound(x1)<<std::endl;
    327327  check(  clp->colLowerBound(x1)==0,"The lower bound for variable x1 should be 0.");
    328   std::cerr << clp->colUpperBound(x1) << std::endl;
     328  // std::cout << clp->colUpperBound(x1) << std::endl;
    329329  check(  clp->colUpperBound(x1)==LpSolverBase::INF,"The upper bound for variable x1 should be infty.");
    330330
     
    358358  solveAndCheck(lp, LpSolverBase::OPTIMAL, expected_opt);
    359359
     360/*
    360361  //Erase one constraint and return to maximization
    361362  lp.eraseRow(upright);
     
    363364  expected_opt=LpSolverBase::INF;
    364365  solveAndCheck(lp, LpSolverBase::INFINITE, expected_opt);
     366*/
    365367
    366368  //Infeasibilty
    367369  lp.addRow(x1+x2 <=-2); 
     370  lp.max();
    368371  solveAndCheck(lp, LpSolverBase::INFEASIBLE, expected_opt);
    369372
Note: See TracChangeset for help on using the changeset viewer.