After installing your license file, you might receive the message:
ERROR 10009: License is for 8 cores, machine has XX
This error message indicates you are trying to use the license on a machine that has more physical cores than the license allows. Note that setting the Threads parameter will not resolve this error.
For Named-User Academic and Educational Institution Site token licenses
To resolve this issue, please run the grbgetkey command once more.
For all other licenses
Your license includes a strict limit on the number of cores Gurobi can use. This is why you encounter an error when running Gurobi on a machine with more cores, even if you set parameters to restrict the number of threads. Unfortunately, there is no programmatic workaround for this limitation.
You have a few options:
- Run Gurobi on a machine with fewer cores.
- Use Gurobi within a VM or container that restricts the number of cores available to the process.
- Upgrade your license to support more cores. To do this, please submit a support request through Gurobot and include your license ID. For guidance, refer to How do I submit a help request as a Commercial user?