quadwild
quadwild copied to clipboard
Unable to compile quadwild due to lack of gurobi
On Rocky Linux (rhel8).
- yum install boost-devel blas-devel ninja-build cmake
- cd quadwild/libs/CoMISo
- mkdir build
- cd build
- cmake .. -GNinja
- ninja
- sudo yum install -y qt5-devel
- make
Unable to compile due to lack of gurobi.
Investigating https://github.com/coin-or/Cbc as a replacement for gurobi.
See also https://github.com/ERGO-Code/HiGHS. https://github.com/ERGO-Code/HiGHS/blob/master/examples/call_highs_from_cpp.cpp
https://gist.github.com/fire/891aa2be44834f24303f4d1c3905aebf Has a sample of using HiGHS as a MILP solver.
yep same issue here. Gurobi not found:
/home/xxx/quadwild/libs/quadretopology/quadretopology/includes/qr_ilp.h:32: error: gurobi_c++.h: No such file or directory 32 | #include <gurobi_c++.h> | ^~~~~~~~~~~~~~
good point, we can try CbC soon.. at the moment I don't have any time to try the switch. but we will certainly try in 3 weeks or so. thanks for the idea
According to a popular benchmark Highs is a better solver than CBC so if you’re limited by time, I recommend that one first. What solver do you need?
integer variables with quadratic energy term and linear constraints
Guessing that "quadratic energy term" is in the objective function, you are looking to solve mixed-integer quadratic programming (MIQP) problems. HiGHS cannot solve MIQPs, although it is something we are looking to add, but not in the next 12 months.
Cbc itself cannot solve MIQP problems, but the following discussion may help you
coin-or/Sonnet#3
Closing because https://github.com/nicopietroni/quadwild/issues/1, https://github.com/nicopietroni/quadwild/issues/14, https://github.com/nicopietroni/quadwild/issues/8 and this one are duplicates.