Skip to main content

2D bin packing problem

Answered

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 why not try our AI Gurobot?.
  • Darren O'Connor
    • Gurobi-versary
    • First Comment

    Hi Faria, I have a similar problem to model. Did you find an answer for this? - Darren

    0
  • Jaromił Najman
    • Gurobi Staff

    Hi,

    In your code snippet, \(\texttt{variable}\) is a Var object. The \(\texttt{range}\) function requires two integer objects as arguments thus, you get the \(\texttt{TypeError}\). It should be enough for your problem to replace \(\texttt{range(0, variable)}\) with \(\texttt{range(0, i)}\).

    Best regards,
    Jaromił

    0

Post is closed for comments.