
Greg Glockner
- Total activity 174
- Last activity
- Member since
- Following 0 users
- Followed by 1 user
- Votes 20
- Subscriptions 64
Activity overview
Latest activity by Greg Glockner-
Greg Glockner created an article,
gurobipy on Apple Silicon and Monterey (macOS 12)
On macOS Monterey (macOS 12), the default python3 (/usr/bin/python3) is version 3.8. However, Gurobi 9.5 and 9.1 only support arm64 for Python 3.9. So if you are on a machine with an Apple Silicon ...
-
Greg Glockner commented,
2 things to check: Ensure your local machine configuration was updated correctly so that the computation is running on the cloud. The console and the log should show something like: Capacity avail...
-
Greg Glockner commented,
I'm sure there are a lot of details which we can't get into on this discussion forum, but let me point you in a direction that hopefully should help. Most importantly, you must formulate your model...
-
Greg Glockner commented,
Looks like K or SC are either decision variables or linear expressions. This isn't supported.
-
Greg Glockner commented,
Why not just write a for loop and call Model.addConstr() to add the constraints one at a time?
-
Greg Glockner commented,
Unfortunately, no. However, the following may be more efficient for this model since it avoids some intermediate Python objects: for i in range(u.shape[2]): model.addMConstrs(u[:, :, i], x, '>', v)
-
Greg Glockner commented,
You don't need to link with pthread.
-
Greg Glockner commented,
For C++, you need -lgurobi_c++ -lgurobi90 -lm; see the sample Makefile in the examples/build subdirectory.
-
Greg Glockner commented,
Official comment See GRBModel::addGenConstrAbs().
-
Greg Glockner commented,
It sounds like you're trying to solve different models on Gurobi Cloud using different algorithmic parameters. If that's correct, you don't need separate pools: each model can get its own algorithm...