Skip to main content

1D Bin Packing Problem, big interval between bins filled

Answered

Comments

2 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.
  • Mario Ruthmair
    • Gurobi Staff

    Hi Julie,

    You could enforce an order for bins to be used in the sense that bin i+1 is only allowed to be used if bin i is already used:

    model.addConstrs( y[i+1] <= y[i] for i in range(UB-1), name="order")

    Best regards,
    Mario

    0

Post is closed for comments.