0
所以我试图用Gurobi python做敏感度分析,我发现最优值和影子价格(cons1.Pi
)以及降低成本(x.RC
)一起。但我不知道如何计算他们允许的增加和减少。我会很感激,如果有人可以帮助!如何计算gurobi python中降低成本(RC)和影子价格(Pi)的允许范围?
基本上我试图让这两个表填写:
Variable | Final_Val | Reduced_cost | Obj_Coeff | Allowable_increase | Allowable_decrease
Constraint | Final_Val | shadow_price | RHS | Allowable_increase | Allowable_decrease