alpar@2391: /* -*- C++ -*- alpar@2391: * alpar@2391: * This file is a part of LEMON, a generic C++ optimization library alpar@2391: * alpar@2391: * Copyright (C) 2003-2007 alpar@2391: * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport alpar@2391: * (Egervary Research Group on Combinatorial Optimization, EGRES). alpar@2391: * alpar@2391: * Permission to use, modify and distribute this software is granted alpar@2391: * provided that this copyright notice appears in all copies. For alpar@2391: * precise terms see the accompanying LICENSE file. alpar@2391: * alpar@2391: * This software is provided "AS IS" with no warranty of any kind, alpar@2391: * express or implied, and with no claim as to its suitability for any alpar@2391: * purpose. alpar@2391: * alpar@2391: */ alpar@2391: 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; deba@2441: buf << "Primalstatus should be: " << int(stat)<<" and it is "<