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

How to round up in gurobi python?

進行中

コメント

3件のコメント

  • 正式なコメント
    Simranjit Kaur
    • Gurobi Staff 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 why not try our AI Gurobot?.
  • Jaromił Najman
    • Gurobi Staff Gurobi Staff

    Hi,

    What values can your continuous-time parameters take? Is it possible that \(\texttt{tp[s]+twg[s]}\geq 2\) for some \(s\)? If yes, then you have to somehow limit \(s\) even further to, e.g., \(\texttt{0 <= s <= 20}\).

    A different approach would be to compute the value of \(\texttt{math.ceil(s+p[s]+twg[s])}\) before adding the constraint and then adjust it appropriately such that it fits within the slot bounds.

    Best regards,
    Jaromił

    0
  • Jaromił Najman
    • Gurobi Staff Gurobi Staff

    This is a cross-post from https://stackoverflow.com/questions/63775312/how-to-round-up-in-gurobi-python

    0

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