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
-
Hi Sebastian,
Please see Eli's very thorough answer here:
https://support.gurobi.com/hc/en-us/community/posts/360048150752/comments/7959340889745- Riley
1
サインインしてコメントを残してください。
コメント
1件のコメント