COIN-OR::LEMON - Graph Library

Changes in / [466:4f1431aeef42:467:a1155a9e8e09] in lemon-1.2


Ignore:
Files:
17 added
9 edited

Legend:

Unmodified
Added
Removed
  • .hgignore

    r385 r456  
    2727.deps/*
    2828demo/*.eps
     29m4/libtool.m4
     30m4/ltoptions.m4
     31m4/ltsugar.m4
     32m4/ltversion.m4
     33m4/lt~obsolete.m4
    2934
    3035syntax: regexp
  • configure.ac

    r363 r459  
    5151
    5252dnl Checks for libraries.
    53 #LX_CHECK_GLPK
    54 #LX_CHECK_CPLEX
    55 #LX_CHECK_SOPLEX
     53LX_CHECK_GLPK
     54LX_CHECK_CPLEX
     55LX_CHECK_SOPLEX
     56LX_CHECK_CLP
     57
     58AM_CONDITIONAL([HAVE_LP], [test x"$lx_lp_found" = x"yes"])
     59AM_CONDITIONAL([HAVE_MIP], [test x"$lx_mip_found" = x"yes"])
    5660
    5761dnl Disable/enable building the demo programs.
     
    115119echo C++ compiles flags............ : $WARNINGCXXFLAGS $CXXFLAGS
    116120echo
    117 #echo GLPK support.................. : $lx_glpk_found
    118 #echo CPLEX support................. : $lx_cplex_found
    119 #echo SOPLEX support................ : $lx_soplex_found
    120 #echo
     121echo GLPK support.................. : $lx_glpk_found
     122echo CPLEX support................. : $lx_cplex_found
     123echo SOPLEX support................ : $lx_soplex_found
     124echo CLP support................... : $lx_clp_found
     125echo
    121126echo Build demo programs........... : $enable_demo
    122127echo Build additional tools........ : $enable_tools
  • lemon/Makefile.am

    r445 r461  
    1111        lemon/base.cc \
    1212        lemon/color.cc \
     13        lemon/lp_base.cc \
     14        lemon/lp_skeleton.cc \
    1315        lemon/random.cc
    1416
    15 #lemon_libemon_la_CXXFLAGS = $(GLPK_CFLAGS) $(CPLEX_CFLAGS) $(SOPLEX_CXXFLAGS) $(AM_CXXFLAGS)
    16 #lemon_libemon_la_LDFLAGS = $(GLPK_LIBS) $(CPLEX_LIBS) $(SOPLEX_LIBS)
     17
     18lemon_libemon_la_CXXFLAGS = \
     19        $(GLPK_CFLAGS) \
     20        $(CPLEX_CFLAGS) \
     21        $(SOPLEX_CXXFLAGS) \
     22        $(CLP_CXXFLAGS)
     23
     24lemon_libemon_la_LDFLAGS = \
     25        $(GLPK_LIBS) \
     26        $(CPLEX_LIBS) \
     27        $(SOPLEX_LIBS) \
     28        $(CLP_LIBS)
     29
     30if HAVE_GLPK
     31lemon_libemon_la_SOURCES += lemon/glpk.cc
     32endif
     33
     34if HAVE_CPLEX
     35lemon_libemon_la_SOURCES += lemon/cplex.cc
     36endif
     37
     38if HAVE_SOPLEX
     39lemon_libemon_la_SOURCES += lemon/soplex.cc
     40endif
     41
     42if HAVE_CLP
     43lemon_libemon_la_SOURCES += lemon/clp.cc
     44endif
    1745
    1846lemon_HEADERS += \
     
    2351        lemon/bin_heap.h \
    2452        lemon/circulation.h \
     53        lemon/clp.h \
    2554        lemon/color.h \
    2655        lemon/concept_check.h \
    2756        lemon/counter.h \
    2857        lemon/core.h \
     58        lemon/cplex.h \
    2959        lemon/dfs.h \
    3060        lemon/dijkstra.h \
     
    3464        lemon/error.h \
    3565        lemon/full_graph.h \
     66        lemon/glpk.h \
    3667        lemon/graph_to_eps.h \
    3768        lemon/grid_graph.h \
     
    4172        lemon/lgf_reader.h \
    4273        lemon/lgf_writer.h \
     74        lemon/list_graph.h \
     75        lemon/lp.h \
     76        lemon/lp_base.h \
     77        lemon/lp_skeleton.h \
    4378        lemon/list_graph.h \
    4479        lemon/maps.h \
     
    5186        lemon/random.h \
    5287        lemon/smart_graph.h \
     88        lemon/soplex.h \
    5389        lemon/suurballe.h \
    5490        lemon/time_measure.h \
     
    67103        lemon/bits/map_extender.h \
    68104        lemon/bits/path_dump.h \
     105        lemon/bits/solver_bits.h \
    69106        lemon/bits/traits.h \
    70107        lemon/bits/variant.h \
  • lemon/config.h.in

    r1 r459  
     1/* Define to 1 if you have any LP solver. */
     2#undef HAVE_LP
     3
     4/* Define to 1 if you have any MIP solver. */
     5#undef HAVE_MIP
     6
    17/* Define to 1 if you have CPLEX. */
    28#undef HAVE_CPLEX
     
    410/* Define to 1 if you have GLPK. */
    511#undef HAVE_GLPK
     12
     13/* Define to 1 if you have SOPLEX */
     14#undef HAVE_SOPLEX
     15
     16/* Define to 1 if you have CLP */
     17#undef HAVE_CLP
  • m4/lx_check_cplex.m4

    r187 r457  
    6363    if test x"$lx_cplex_found" = x"yes"; then
    6464      AC_DEFINE([HAVE_CPLEX], [1], [Define to 1 if you have CPLEX.])
     65      lx_lp_found=yes
     66      AC_DEFINE([HAVE_LP], [1], [Define to 1 if you have any LP solver.])
     67      lx_mip_found=yes
     68      AC_DEFINE([HAVE_MIP], [1], [Define to 1 if you have any MIP solver.])
    6569      AC_MSG_RESULT([yes])
    6670    else
  • m4/lx_check_glpk.m4

    r187 r459  
    4343      }
    4444
     45      #if (GLP_MAJOR_VERSION < 4) \
     46         || (GLP_MAJOR_VERSION == 4 && GLP_MINOR_VERSION < 33)
     47      #error Supported GLPK versions: 4.33 or above
     48      #endif
     49
    4550      int main(int argc, char** argv)
    4651      {
     
    6166    if test x"$lx_glpk_found" = x"yes"; then
    6267      AC_DEFINE([HAVE_GLPK], [1], [Define to 1 if you have GLPK.])
     68      lx_lp_found=yes
     69      AC_DEFINE([HAVE_LP], [1], [Define to 1 if you have any LP solver.])
     70      lx_mip_found=yes
     71      AC_DEFINE([HAVE_MIP], [1], [Define to 1 if you have any MIP solver.])
    6372      AC_MSG_RESULT([yes])
    6473    else
  • m4/lx_check_soplex.m4

    r187 r457  
    5757    if test x"$lx_soplex_found" = x"yes"; then
    5858      AC_DEFINE([HAVE_SOPLEX], [1], [Define to 1 if you have SOPLEX.])
     59      lx_lp_found=yes
     60      AC_DEFINE([HAVE_LP], [1], [Define to 1 if you have any LP solver.])
    5961      AC_MSG_RESULT([yes])
    6062    else
  • test/CMakeLists.txt

    r465 r467  
    1919  heap_test
    2020  kruskal_test
     21  lp_test
     22  mip_test
    2123  maps_test
    2224  max_matching_test
  • test/Makefile.am

    r465 r467  
    3434        test/unionfind_test
    3535
     36if HAVE_LP
     37check_PROGRAMS += test/lp_test
     38endif HAVE_LP
     39if HAVE_MIP
     40check_PROGRAMS += test/mip_test
     41endif HAVE_MIP
     42
    3643TESTS += $(check_PROGRAMS)
    3744XFAIL_TESTS += test/test_tools_fail$(EXEEXT)
     
    5259test_kruskal_test_SOURCES = test/kruskal_test.cc
    5360test_hao_orlin_test_SOURCES = test/hao_orlin_test.cc
     61test_lp_test_SOURCES = test/lp_test.cc
    5462test_maps_test_SOURCES = test/maps_test.cc
     63test_mip_test_SOURCES = test/mip_test.cc
    5564test_max_matching_test_SOURCES = test/max_matching_test.cc
    5665test_path_test_SOURCES = test/path_test.cc
Note: See TracChangeset for help on using the changeset viewer.