79487997

Date: 2025-03-06 00:57:23
Score: 0.5
Natty:
Report link

The solution is quite simple, you can either add the path of the GLPK solver (gpsol.exe) to you user environment variables or / and you can specify the path to the solver directly on your script. Something like this:

Set the path to GLPK

path_to_glpk = r'C:\GLPK\glpk-4.65\w64\glpsol.exe'

Pass the path to Pulp

solver = pulp.GLPK_CMD(path=path_to_glpk)

Solve the model with the specified solver

model.solve(solver)

Reasons:
  • Whitelisted phrase (-1): solution is
  • No code block (0.5):
  • Low reputation (1):
Posted by: Manuel Soto