I am working on DoCplex to run a large model with several variables and constraints. I used the following link from sensitivity analysis in python + Docplex to run the sensitivity analysis. In that example, there was a limited number of constraints and variables, which made it easy to interpret, but with a very large instance, the task becomes more tedious.
Therefore, I have a question if I name the set of constraints as mdl.add_constraint(nbbus40==nbbus30, 'samenumberofbuses')
, will it be possible to run sensitivity analysis on the values on the right-hand side of a specific set of constraints? Instead of having the values for print(cpx.solution.sensitivity.rhs())
which will give me the values on all constraints, I would only have it for what I am focusing on.