Skip to main content

Bounds for Variable

Answered

Comments

4 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    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.
  • Matthias Miltenberger
    • Gurobi Staff

    Hi Alessandra!

    I am not sure I understand the problem or the error here. Could you please share a minimal reproducible example, including the error message?

    Thanks,
    Matthias

    0
  • ALESSANDRA VIEIRA
    • Gurobi-versary
    • Curious
    • Conversationalist

    Hi Matthias,

    The problem is my array P_wind is one single function output, that was randomly chosen from one data  2-D array [T][N] that will be the Upper Bound (UB) for the Gurobi variable W_curt[ ], my code is Gurobi C++ in VS. I just one be sure, is not problematic for a GRB_VAR have such output as UB.

    I would be very kind, to let me know about it.

    Best Regards,

    Alessandra

    0
  • Matthias Miltenberger
    • Gurobi Staff

    Hi Alessandra,

    This should be fine. Just be aware that you cannot have dynamically changing values (e.g. the output of a function that is part of your problem) as model parameters. The upper bound has to be a fixed value for Gurobi.

    I hope that answers your question.

    Cheers,
    Matthias 

    0

Post is closed for comments.