GRBGenConstr how to get slacks for this type of constriants
回答済みI am using AddGenConstrIndicator in C# how to get constraint slacks. I am able to get slacks for GRBConstr constraints. But how to get for GRBGenConstr
0
-
I think there is no direct way. You can get the Indicator constraint via GRBModel.GetGenConstrIndicator Optimization then get the value of the linear expression (lhs) with GRBLinExpr.Value and compare it with the RHS.
1
サインインしてコメントを残してください。
コメント
1件のコメント