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