I am new to python and currently using gurobi to solve some optimization problems. I know that i can use model.getAttr('Pi', m.getConstrs()) function to get the shadow(dual) prices. This function however just spits out an array of values. I have about 30 constraints and it is hard to track which value is attached to which constraint. Is there a way you can print out the shadow price where it specifies which shadow price is attached to which constraint?
Thank you very much.