[Osi-tickets] [COIN-OR Open Solver Interface] #95: Have osi load solvers libraries at runtime rather than linking to them
COIN-OR Open Solver Interface
coin-trac at coin-or.org
Thu Mar 29 08:30:31 EDT 2012
#95: Have osi load solvers libraries at runtime rather than linking to them
-----------------------------+---------------------
Reporter: chm.duquesne | Owner: mjs
Type: defect | Status: new
Priority: major | Milestone:
Component: Osi Base Class | Version: 0.100.2
Resolution: | Keywords:
-----------------------------+---------------------
Comment (by chm.duquesne):
The patch runtime_library_discovery.patch applies to trunk.
How to test:
1) apply the patch
2) run BuildTools/run_autotools from trunk (you should have the right
version of the autotools installed. If you don't, use the patch I wrote
for the BuildTools project - see ticket 95 in their bugtracker [1])
3) install lazylpsolverlibs [2]
4) run ./configure --prefix /usr/local; make (prefixing is optional. To be
sure this works, I installed my version full time on my system so that I
am the first to experiment bugs)
5) replace the files osi-cplex.pc, osi-xpress.pc, osi-gurobi.pc with the
ones I attached in the archive pkgconfig.tar.gz (sorry I could not
generate these files properly using the autotools macros)
6) (sudo) sudo make install
7) compile the test case I attached in osi_solver.tar.gz, run ./solver:
- if you don't specify where the solvers are, no problem should be solved.
- otherwise if you give the full path to the proper library to
lazylpsolverlibs through one of the variables
LAZYLPSOLVERLIBS_CPLEX_LIB_PATH, LAZYLPSOLVERLIBS_XPRESS_LIB_PATH or
LAZYLPSOLVERLIBS_GUROBI_LIB_PATH, it will solve the problem.
[1]: https://projects.coin-or.org/BuildTools/ticket/95
[2]: https://code.google.com/p/lazylpsolverlibs/
--
Ticket URL: <https://projects.coin-or.org/ticket/95#comment:1>
COIN-OR Open Solver Interface <http://projects.coin-or.org/Osi>
An API for a variety of LP and MIP solvers (and more).
More information about the Osi-tickets
mailing list