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

How do I divide by a variable in Gurobi?

回答済み

コメント

5件のコメント

  • 正式なコメント
    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.
  • Jonasz Staszek
    • Community Moderator
    • Gurobi-versary
    • Thought Leader
    • First Question

    Hi Johan,

    Did you set the NonConvex parameter to 2, as suggested in the article you linked?

    Additionally, for the second auxiliary variable, which you defined as:

    gp.max_(a[t], 1) for t in range (T)

    Are there cases where \(a[t] \in (0, 1)\)? If yes, you may want to choose a different constant than 1 to supply to the max function - you risk distorting the denominator value this way.

    Best regards
    Jonasz

    0
  • Johan van Haperen
    • Gurobi-versary
    • Conversationalist
    • First Question
    Hi Jonasz,
     
    Yea the NonConvex parameter is set to 2.
    Fortunately, there are nog values between 0 and 1 for a. 
    Therefore, this approach should work in my opinion.
    However, I still encounter the infeasibility.
    Do you perhaps have a tip on how to trackdown where this infeasibility is caused?
     
    Regards,
    Johan
    0
  • Jonasz Staszek
    • Community Moderator
    • Gurobi-versary
    • Thought Leader
    • First Question

    Normally I would compute an IIS. This article will tell you how to achieve this.

    Best regards,
    Jonasz

    0
  • Johan van Haperen
    • Gurobi-versary
    • Conversationalist
    • First Question

    Hi Jonasz,

    I figured it out!

    The approach for the divison variable worked.

    Thanks for the help

    Regards

    0

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