Skip to main content

How to define a lower bound for POW function?

Ongoing

Comments

3 comments

  • Official comment
    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.
  • Jaromił Najman
    • Gurobi Staff

    It looks like the lower bound of your \(q\) variables can be slightly negative due to numerical issues in the model. Note that you set the lower bound to \(0\) explicitly, but there can still be tolerances in play.  Could you try setting the lower bound of your \(q\) variables to something slightly positive, e.g., \(10^{-5}\)?

    If the above does not help, could you please write the model you have to a file via the write method

    m.write("myLP.lp")

    and share the file as described in Posting to the Community Forum?

    Best regards, 
    Jaromił

    0
  • Yuelan Zhu
    • Gurobi-versary
    • First Comment
    • First Question

    Hello Jaromił,

    Thanks for your help. 

    I set a positive lower bound of variables but it did not work. 

    Here is my current model and I will be appreciate if you can give further advance.

    myLP.lp

    0

Post is closed for comments.