-
Hi All, I have already asked this question on Stack Overflow but didn't get a reply; so, I am cross-posting it here: In the sensitivity analysis, I want to calculate the allowable increases and decreases in the objective function coefficients and the right hand side parameters of the constraints. I could not figure out a way of doing it in PuLP's native solver; hence, I am looking at GLPK. Could you please help me out? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I paste the answer I gave in SO: The options argument to pass to GLPK_CMD need to have no spaces, so:
Then it works. With your cases, GLPK gave an error without solving the problem saying:
|
Beta Was this translation helpful? Give feedback.
I paste the answer I gave in SO:
The options argument to pass to GLPK_CMD need to have no spaces, so:
prob.solve(GLPK(msg=True, options=['--ranges', 'sensitivity.txt']))
Then it works. With your cases, GLPK gave an error without solving the problem saying: