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

How to define a lower bound for POW function?

進行中

コメント

2件のコメント

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

サインインしてコメントを残してください。