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
-
正式なコメント
This post is more than two years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support. -
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
投稿コメントは受け付けていません。
コメント
2件のコメント