Skip to main content

Workforce scheduling / minimising the number of staff.

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?.
  • Silke Horn
    • Gurobi Staff

    Here is one approach that you could pursue to model this:

    Add enough staff to your model (use an upper bound on the number of persons you need) and for each of them add a binary auxiliary variable that is 1 if and only if the respective person is used/needed. If you want to minimize the number of persons needed, minimize the sum of these binary variables. Then you can use a secondary objective to schedule the staff.

    Alternatively, if you have a model that takes a fixed number of persons as input, you could run this for different inputs to find the smallest number for which the model is feasible.

    0
  • Ahmet CÜREBAL
    • Gurobi-versary
    • First Question
    • First Comment

    Hello Silke Horn,

    Thank you for replying, i will try this approach.

    0

Post is closed for comments.