Skip to main content

Setting multiple number to facilities in a single location

Awaiting user input

Comments

3 comments

  • Official comment
    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?.
  • Maliheh Aramon
    Gurobi Staff Gurobi Staff

    Hi Kazi, 

    Changing the variable type to integer results into the exact same solution. It means that even you allow for opening of more than one depot at each location, the solution with the optimal cost is still to have at most one depot at each location (for the given input data).

    To better understand the problem you are trying to solve, could you please explain how opening more than one depot in each location affects the problem input? Is there additional fixed cost to open the second depot in a location? How about the total throughput of a location? Is it fixed in advance?

    Best regards,
    Maliheh

    0
  • Kazi Ullah
    Gurobi-versary
    First Question
    First Comment

    Hi Maliheh, 

    Thanks for your comments! I already solved the problem. Simply setting the variable type to GRB.INTEGER was my solution. Yes, it depends on the throughput of a location. In my case the material flows are much higher than a single depot in a location. Therefore, I needed to open more than one depot in the candidate locations. There is an additional fixed cost for opening a depot. With a cost minimizing approach, the model selected the optimum number of depos in the candidate locations. 

    Thanking you, 

    Kazi 

    0

Post is closed for comments.