HiGHS and vcpkg: easy C++ support #1240
mathgeekcoder
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hopefully this type of contribution is welcome. I've recently added HiGHS to vcpkg, a cross-platform package management tool for C++.
If you're not familiar with vcpkg, the command:
vcpkg install highs
will automatically download the latest tagged release code, build it with your compiler, and provide access to the binaries/headers for any project on your system.Alternatively, you can use vcpkg per project using a manifest file. i.e.,
This will download/build/install HiGHS for a specific project. For a full example, see https://github.com/mathgeekcoder/highs-api.
vcpkg integrates into many different build systems, but for example, if you use cmake the only commands you need to add are:
BTW: The above example project is my quick experiment for an easier C++ interface, i.e., it makes it easier to build optimization models.
It is far from complete, but I think it looks promising:
Hopefully you find this useful. If you have any concerns or comments - please let me know!
Beta Was this translation helpful? Give feedback.
All reactions