alphaville / optimization-engine

Nonconvex embedded optimization: code generation for fast real-time optimization + ROS support
https://alphaville.github.io/optimization-engine/
Other
512 stars 53 forks source link

Autogenerated C/C++ code improvements and Makefile #152

Closed alphaville closed 4 years ago

alphaville commented 4 years ago

PR to address #149

Main changes:

build_config = og.config.BuildConfiguration() \
    .with_build_mode(og.config.BuildConfiguration.DEBUG_MODE)\
    .with_open_version(local_path="path/to/optimization-engine")
cd /path/to/auto-generated/optimizer
cmake .
make
make run # to run the example
make clean # to remove executable and compiled files