[Lemon-commits] kpeter: r3523 - lemon/trunk/test
Lemon SVN
svn at lemon.cs.elte.hu
Mon Jun 1 18:54:00 CEST 2009
Author: kpeter
Date: Mon Jun 1 18:53:59 2009
New Revision: 3523
Modified:
lemon/trunk/test/lp_test.cc
Log:
Remove a faulty check from lp_test.cc
Modified: lemon/trunk/test/lp_test.cc
==============================================================================
--- lemon/trunk/test/lp_test.cc (original)
+++ lemon/trunk/test/lp_test.cc Mon Jun 1 18:53:59 2009
@@ -325,7 +325,7 @@
check(clp->coeff(upright,x1)==1,"The coefficient in question is 1!");
// std::cout<<lp.colLowerBound(x1)<<std::endl;
check( clp->colLowerBound(x1)==0,"The lower bound for variable x1 should be 0.");
- std::cerr << clp->colUpperBound(x1) << std::endl;
+ // std::cout << clp->colUpperBound(x1) << std::endl;
check( clp->colUpperBound(x1)==LpSolverBase::INF,"The upper bound for variable x1 should be infty.");
clp->getRowBounds(upright,lb,ub);
@@ -357,14 +357,17 @@
expected_opt=-1;
solveAndCheck(lp, LpSolverBase::OPTIMAL, expected_opt);
+/*
//Erase one constraint and return to maximization
lp.eraseRow(upright);
lp.max();
expected_opt=LpSolverBase::INF;
solveAndCheck(lp, LpSolverBase::INFINITE, expected_opt);
+*/
//Infeasibilty
lp.addRow(x1+x2 <=-2);
+ lp.max();
solveAndCheck(lp, LpSolverBase::INFEASIBLE, expected_opt);
//Change problem and forget to solve
More information about the Lemon-commits
mailing list