GRBGenConstr how to get slacks for this type of constriants
AnsweredI 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
Please sign in to leave a comment.
Comments
1 comment