nicolapiccinelli / libmpc

libmpc++ is a C++ header-only library to solve linear and non-linear MPC
https://altairlab.gitlab.io/optcontrol/libmpc/
MIT License
138 stars 21 forks source link

Example codes #4

Closed ZhYGu closed 2 years ago

ZhYGu commented 2 years ago

Is there any example codes I can test whether I have rightly set up the lib and its dependences? Additionally, I also want learn how to use this lib.

nicolapiccinelli commented 2 years ago

Hello @ZhYGu you can look into the tests folder. To check if your dependencies are correctly installed you compile libmpc++ with debug flag cmake -DCMAKE_BUILD_TYPE=Debug and see if the tests run correctly.