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

Bounds for Variable

回答済み

コメント

3件のコメント

  • Matthias Miltenberger
    • Gurobi Staff 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 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

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