athos@2149: #include "test_tools.h" athos@2146: athos@2218: athos@2221: #ifdef HAVE_CONFIG_H athos@2221: #include athos@2221: #endif athos@2221: deba@2227: #ifdef HAVE_CPLEX deba@2227: #include deba@2227: #endif deba@2227: deba@2227: #ifdef HAVE_GLPK deba@2227: #include deba@2227: #endif athos@2221: athos@2218: athos@2146: using namespace lemon; athos@2146: athos@2218: void solveAndCheck(MipSolverBase& lp, MipSolverBase::SolutionStatus stat, athos@2149: double exp_opt) { athos@2149: using std::string; athos@2218: athos@2149: lp.solve(); athos@2149: //int decimal,sign; athos@2149: std::ostringstream buf; athos@2149: buf << "Primalstatus should be: " << int(stat)<<" and it is "<