deba@481: /* -*- mode: C++; indent-tabs-mode: nil; -*- deba@481: * deba@481: * This file is a part of LEMON, a generic C++ optimization library. deba@481: * deba@481: * Copyright (C) 2003-2008 deba@481: * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport deba@481: * (Egervary Research Group on Combinatorial Optimization, EGRES). deba@481: * deba@481: * Permission to use, modify and distribute this software is granted deba@481: * provided that this copyright notice appears in all copies. For deba@481: * precise terms see the accompanying LICENSE file. deba@481: * deba@481: * This software is provided "AS IS" with no warranty of any kind, deba@481: * express or implied, and with no claim as to its suitability for any deba@481: * purpose. deba@481: * deba@481: */ deba@481: deba@481: #include "test_tools.h" deba@481: deba@481: deba@481: #ifdef HAVE_CONFIG_H deba@481: #include deba@481: #endif deba@481: deba@481: #ifdef HAVE_CPLEX alpar@484: #include deba@481: #endif deba@481: deba@481: #ifdef HAVE_GLPK alpar@484: #include deba@481: #endif deba@481: deba@481: deba@481: using namespace lemon; deba@481: deba@482: void solveAndCheck(MipSolver& mip, MipSolver::ProblemType stat, deba@481: double exp_opt) { deba@481: using std::string; deba@481: deba@482: mip.solve(); deba@481: //int decimal,sign; deba@481: std::ostringstream buf; deba@482: buf << "Type should be: " << int(stat)<<" and it is "<