test/mip_test.cc
changeset 551 9d0d7e20f76d
parent 542 fc6c7aab4b8d
child 567 3314f58e7b25
     1.1 --- a/test/mip_test.cc	Wed Mar 18 16:18:05 2009 +0000
     1.2 +++ b/test/mip_test.cc	Thu Mar 19 08:40:34 2009 +0100
     1.3 @@ -2,7 +2,7 @@
     1.4   *
     1.5   * This file is a part of LEMON, a generic C++ optimization library.
     1.6   *
     1.7 - * Copyright (C) 2003-2008
     1.8 + * Copyright (C) 2003-2009
     1.9   * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
    1.10   * (Egervary Research Group on Combinatorial Optimization, EGRES).
    1.11   *
    1.12 @@ -109,7 +109,7 @@
    1.13  template<class MIP>
    1.14  void cloneTest()
    1.15  {
    1.16 -  
    1.17 +
    1.18    MIP* mip = new MIP();
    1.19    MIP* mipnew = mip->newSolver();
    1.20    MIP* mipclone = mip->cloneSolver();
    1.21 @@ -133,6 +133,7 @@
    1.22    try {
    1.23      CplexMip mip2;
    1.24      aTest(mip2);
    1.25 +    cloneTest<CplexMip>();
    1.26    } catch (CplexEnv::LicenseError& error) {
    1.27  #ifdef LEMON_FORCE_CPLEX_CHECK
    1.28      check(false, error.what());
    1.29 @@ -141,7 +142,6 @@
    1.30      std::cerr << "Cplex license check failed, lp check skipped" << std::endl;
    1.31  #endif
    1.32    }
    1.33 -  cloneTest<CplexMip>();
    1.34  #endif
    1.35  
    1.36    return 0;