[Osi] COIN OSI not working with cplex 124

Christophe-Marie Duquesne chmd at chmd.fr
Fri Jul 20 15:31:57 EDT 2012


If you want to avoid the fuss of recompilling OSI everytime you
upgrade a targeted solver, maybe you could have a try with
lazylpsolverlibs [1].

It's a project I've been polishing for a while. Basically it's a set
of proxy libraries: they offer the same interface as
cplex/gurobi/xpress, and they forward calls to the targetted solver.
Just build lazylpsolverlibs and link Osi to lazycplex instead of
cplex, as explained on [2]. After this, you don't need to recompile
Osi anymore when there is a cplex/gurobi/xpress update (provided the
update is binary backward-compatible concerning the functions made by
Osi).

You instruct lazylpsolverlibs which cplex library should be loaded
through the environment variable LAZLPSOLVERLIBS_CPLEX_LIB. Tests are
provided to ensure your setup is correct, through lazycplex-config,
lazygurobi-config and lazyxprs-config (which are provided with
manpages).

[1]: https://code.google.com/p/lazylpsolverlibs/
[2]: https://projects.coin-or.org/Osi


More information about the Osi mailing list