Unbounded constraint
回答済みDear Comunity,
I'm considering a dual problem and suppose it has such form. But I don't know how to model the constraint, though it looks like linear programming. I'm a little confused. Could you do me a favor? Thanks a lot.

-
正式なコメント
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. -
Let me be clear, I denote I the indicator function.
0 -
Hi Jun,
For the \(\min\) function, you can use the addGenContrMin method. Note that you will need an additional auxiliary variable to model the \(\min\) function.
Regarding the indicator constraint. Could you please clarify how exactly you define \(\bf{I}_{(\xi \leq 6)}\). Do you mean
\[\begin{align*}
\bf{I} = \begin{cases} 1 &, \xi \leq 6 \\ 0 &, \, \text{otherwise}\end{cases}
\end{align*}\]If yes, then please have a look at the Knowledge Base article How do I model conditional statements in Gurobi? In the article we model a strict inequality and thus need a positive tolerance \(\epsilon > 0\). Since you are modeling \( \leq\), you can ignore \(\epsilon\).
Best regards,
Jaromił0 -
Hi Jaromił
Thank a lot for your comment. I'll try it.
0
投稿コメントは受け付けていません。
コメント
4件のコメント