-
After finding a solution I would like to do a sensitivity analysis on the results. E.g. I would like to get information about shadow prices and slack for the constraints. This is possible with python PuLp library as described at https://machinelearninggeek.com/sensitivity-analysis-in-python/ and also with gurobipy (see https://support.gurobi.com/hc/en-us/community/posts/360063478872-How-to-generate-sensitivity-analysis-report-in-detail). Can I do the same with Google OR Tools and if so, how? I couldn't find anything about that in the documentation. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
See this and this. There is the option of getting dual_value as well as reduced_cost. |
Beta Was this translation helpful? Give feedback.
-
Do I understand correctly: |
Beta Was this translation helpful? Give feedback.
Thank you for your hints. It seems slack can be calculated by subtracting the activities from the upper bound of the constraint. With that I managed to convert the example from https://machinelearninggeek.com/sensitivity-analysis-in-python/ written in Python PuLP into Google OR Tools: