Changeset 2637:bafe730864da in lemon-0.x
- Timestamp:
- 06/01/09 18:53:59 (15 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3522
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/lp_test.cc
r2605 r2637 326 326 // std::cout<<lp.colLowerBound(x1)<<std::endl; 327 327 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; 329 329 check( clp->colUpperBound(x1)==LpSolverBase::INF,"The upper bound for variable x1 should be infty."); 330 330 … … 358 358 solveAndCheck(lp, LpSolverBase::OPTIMAL, expected_opt); 359 359 360 /* 360 361 //Erase one constraint and return to maximization 361 362 lp.eraseRow(upright); … … 363 364 expected_opt=LpSolverBase::INF; 364 365 solveAndCheck(lp, LpSolverBase::INFINITE, expected_opt); 366 */ 365 367 366 368 //Infeasibilty 367 369 lp.addRow(x1+x2 <=-2); 370 lp.max(); 368 371 solveAndCheck(lp, LpSolverBase::INFEASIBLE, expected_opt); 369 372
Note: See TracChangeset
for help on using the changeset viewer.