Repository navigation
HiPO not available in VC++ application? #3546
|
Hi, I'm keen to try the new HiPO solver in my application, which is built using C++ in Visual Studio. However, I am getting the following runtime error:
It then defaults to the simplex solver. This is what I'm doing to build it:
Am I missing anything? Thanks |
Replies: 4 comments 1 reply
|
Thank you for raising this, we are missing some documentation there. Please check out the "latest" branch instead of 1.15.1 ( we are about to release v1.16). You could download the zip too from https://github.com/ERGO-Code/HiGHS/tree/latest On Windows, Please let me know if this works! To link everything into your application instead, so that no shared library is needed, build with and link |
|
Performance: latest compiles OpenBLAS with clang-cl, which allows optimised kernels that MSVC can't build. For this you need the Visual Studio component "C++ Clang Compiler for Windows" (or LLVM), plus Ninja. If they're missing, CMake warns and falls back to MSVC, so check the configure output for Building OpenBLAS ... with ...clang-cl.exe. |
|
We may have a bug as well, I am looking into it further, your feedback is much appreciated! |
|
Thanks, based on your responses, I have got it working. For other's reference, this is what I did:
Now my application can use the HiPO solver without error. (After all that, it turns out that for my application the Dual Simplex SIP solver is still the fastest, but it was worth a try!) |
Performance: latest compiles OpenBLAS with clang-cl, which allows optimised kernels that MSVC can't build. For this you need the Visual Studio component "C++ Clang Compiler for Windows" (or LLVM), plus Ninja. If they're missing, CMake warns and falls back to MSVC, so check the configure output for Building OpenBLAS ... with ...clang-cl.exe.