Indicator constraints and objective function
回答済みHey Gurobi team,
I have a question about something I noticed and I would like to confirm my theory and get more info about it.
It is the following: I added some vars and I have some restrictions associated with them, however, those restrictions are indicator constraints. When I look at the objective function, I see those variables there (so far as I have read, all variables related to any constraint are shown there multiplied by zero) but I guess I should not see them there since they are linked and restricted via the addConstr() method.
My question is: are those variables, whose unique usage in the model is done with indicator constraints, still displayed in the objective function?
Here are some screenshots for clarification:
Objective function:

Constraint:

Any clarification is more than appreciated!
Thanks.
Sebastian
-
正式なコメント
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. -
Hi Sebastian,
Please see Eli's very thorough answer here:
https://support.gurobi.com/hc/en-us/community/posts/360048150752/comments/7959340889745- Riley
1
投稿コメントは受け付けていません。
コメント
2件のコメント