Skip to content

Repository files navigation

Logo

Build Status

Requirements

Installation

SuiteSparse

Before installing SuiteSparse, make sure you have a blas and lapack implementation installed. For convenience a suitesparse installer is available in the scripts/ directory. Make sure you are in the root Stuka directory and run the following command.

./scripts/install_suitesparse

If the scripts fails due to an inability to find blas or lapack you may need to manually specify the location of your implementation by editing the scripts/install_suitesparse.sh file with the following

make library BLAS=${BLAS_LOCATION}

Stuka

Stuka is built using the CMake build system. To create the library simply run the following commands from the root Stuka directory.

mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . --target stuka

This should create a shared library in the build/lib directory.

Python bindings

Building the python library is as simple running

python setup.py install

This should work assuming there are no issues in the previous step.

Examples

C++ example

In order to test the code, a test script is available to be built. Assuming you have build the library as described in the Installation section, run the following.

cd build
cmake --build . --target tester

This will create a tester executable in the build/bin directory. Running the tester will run into an error, but this is expected. In the final example, Bender's Decomposition is unable to determine the optimal solution due to degeneracy of the problem.

Python example

This will be added at a later date.

About

A general framework for solving certain classes of convex optimization problems

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages