You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.8 KiB

3 months ago
  1. The program module in this subdirectory is a crude implementation of
  2. CPLEX-like interface to GLPK API. It consists of two files: cplex.c and
  3. cplex.h.
  4. NOTE that this module is NOT a clean room implementation of the CPLEX
  5. callable library. It only implements a CPLEX-like interface to the GLPK
  6. API routines, and its main purpose is to provide possibility to build
  7. and run applications which normally use the CPLEX callable library.
  8. This module approximately corresponds to CPLEX 9.0.
  9. Currently this module can be used as a linear programming solver for
  10. Concorde, the state-of-the-art computer code for solving the symmetric
  11. traveling salesman problem (TSP) developed by David Applegate, Robert
  12. Bixby, Vasek Chvatal, and William Cook. For details about Concorde see
  13. its web page at http://www.tsp.gatech.edu/concorde.html.
  14. To build Concorde along with GLPK you need to do the following:
  15. 1. Configure, build, and install GLPK.
  16. 2. Download the Concorde tarball co031219.tgz (version Dec 19, 2003),
  17. unpack and unarchive it.
  18. 3. Copy files cplex.h and cplex.c to subdirectory concorde/LP/.
  19. 4. Create file named lpglpk.c in subdirectory concorde/LP/. This file
  20. must contain the following two lines:
  21. #include "cplex.c"
  22. #include "lpcplex8.c"
  23. 5. Configure Concorde in usual way (./configure) and then build it with
  24. the following command:
  25. make CPPFLAGS=-I. LPSOLVER_INTERFACE=lpglpk.c LPSOLVER_LIB=-lglpk
  26. The Concorde executable can be found in subdirectory concorde/TSP/.
  27. Please note that currently this GLPK interface module does not support
  28. some important features (namely, CPXgetijdiv, CPXmdleave, CPXpivotin,
  29. CPXpivotout, and CPXstrongbranch), so large (more than 1000 nodes) TSP
  30. instances cannot be solved in a reasonable time, and some instances may
  31. cause abnormal termination of Concorde (if CPXgetijdiv is called).