メインコンテンツへスキップ

Infeasible subset when using computeIIS()

回答済み

コメント

4件のコメント

  • 正式なコメント
    Simranjit Kaur
    • Gurobi Staff
    This post is more than three 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.
  • Matthias Miltenberger
    • Gurobi Staff

    Hi Jingfeng,

    If you solve the quadratic constraint for \(\texttt{z}\), you see that this is in fact infeasible with the condition of \(\texttt{z} \geq -1\):

    \[
    \begin{aligned}
    - r_1^2 + r_2^2 - 6.558 \cdot r_2 \cdot z &= -10.751841 \\
    z &= \frac{- r_1^2 + r_2^2 + 10.751841}{6.558 \cdot r_2} \\
    z &= -1.89869347362
    \end{aligned}
    \]

    Cheers,
    Matthias

    0
  • Jingfeng Yang
    • Gurobi-versary
    • First Question
    • First Comment

    Hi Matthias, 

    Thanks for pointing the error. I have another question when I am modeling the optimization with Python. I have a Piecewise Function (nonlinear) in the model, for example, I would like to calculate the overlap area of two circles A and B. The formula is:

    Do you know how to add this into the constraints? It seems like it need if it satisfy a condition, then the model can add set of variables and constraints. I have no idea how to implement this. Thanks a lot!

    0
  • Jaromił Najman
    • Gurobi Staff

    Answered in Conditional piecewise constraints modeling in Gurobi.

    0

投稿コメントは受け付けていません。