OSDP is an OCaml frontend library to semi-definite programming (SDP)
solvers.
Explore the docs »
Report Bug
·
Request Feature
OSDP is an OCaml frontend library to semi-definite programming (SDP) solvers.
See directory example for how to use the library.
OSDP relies on external optimization tools
and on the following opam packages:
opam install ocamlfind dune conf-autoconf zarith ocplib-simplex.0.5 conf-csdpCsdp is free software and is available in most Unix systems. Eg. on Debian-based systems
apt-get install csdpor, on OSX
brew install csdpCsdp binary has to be available in the path.
Mosek is a commercial tool available at www.mosek.com. OSDP is linked against the dynamic library of Mosek. Make sure that the library is available in the dynamic library environment variable.
Let PATH_TO_MOSEKDIR be path that contains the dynamic library, eg. libmosek64.so on Linux and libmosek64.dylib on OSX.
export LD_LIBRARY_PATH = PATH_TO_MOSEKDIR:$LD_LIBRARY_PATH export DYLD_LIBRARY_PATH = PATH_TO_MOSEKDIR:$DYLD_LIBRARY_PATHCsdp is free software and is available in most Unix systems. Eg. on Debian-based systems
apt-get install sdpaLike CSDP, it has to be available as a binary in the user path.
See INSTALL.
opam install osdpClone the repo
git clone https://github.com/Embedded-SW-VnV/osdp.gitInstall dependencies
opam install ocamlfind dune conf-autoconf zarith ocplib-simplex.0.5 conf-csdpCompile
autoconf
./configure
make
make installopen OsdpTo use with the ocaml toplevel
% rlwrap ocaml
# #use "topfind";;
# #require "osdp";;These last two lines can be added to ~/.ocamlinit to avoid typing them again and again.
Type
% make docto generate documentation (then see doc/index.html) or visit https://embedded-sw-vnv.github.io/osdp/doc/
When running with OSX, some issues with the link of moseklib:
either run the final binary with
DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:`dirname \`which mosek\``" my_new_binaryDistributed under the LGPL-v2.1 License.