Skip to content

routific/coin-or-clp-sys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Autogenerated bindings to the C interface of CLP.

The bindings depends on a local installation of the C++ library in a directory with a specific structure. The path to that directory is read during build time from the environment variable COIN_LIB_DIR. Such an setup can be achieved by following these instructions.

Installing COIN dependencies

We recommend using coinbrew. Download the script and run:

./coinbrew fetch \
  --main-proj=Clp \
  --main-proj-version=stable/1.17 \
  --git

./coinbrew build \
  --main-proj=Clp \
  --build-dir=$PWD/build \
  --prefix=$PWD/build \
  --test

If everything goes well 😅, you should get a message like:

Libraries have been installed in:
   <SOME_PATH>/build/lib

Then you can build the library with COIN_LIB_DIR=<SOME_PATH> cargo build.

Something went wrong?

Testing

For now there are only a single very simple integration test exercizing the bindings: COIN_LIB_DIR=<SOME_PATH> cargo test -- --nocapture.

License

This library is distributed under the MIT license. Note that the CLP library itself is distributed under the EPL.

About

Autogenerated bindings to the CoinOR LP solver

Resources

License

Stars

Watchers

Forks

Packages

No packages published