How do I create an optimal MULTI-day work schedule using mixed integer linear programming?
Mostrar comentarios más antiguos
Hi,
In this blog by Loren Shure Generating an Optimal Employee Work Schedule Using Integer Linear Programming, she showed how to solve a complicated scheduling problem. I am trying to recreate this but I want to do a weekly optimization with the constraint that an employee can work maximum 40 hours a week and one can work only one shift a day. Sean de Wolski made a comment that I could just duplicate the constraints to look at a longer time period at once but I do not know how to formulate it. Can someone please help me?
9 comentarios
Serien Ali
el 30 de Ag. de 2018
Hi Mee, I am trying to do the same thing. Were you able to formulate this for weekly optimization?
Thanks so much.
Mai
el 31 de Ag. de 2018
Hi Serien, Yes, i was able to solve this using David’s suggestions. :)
Serien Ali
el 2 de Sept. de 2018
Thanks for your reply! I am having some issues formulating it. Did you add the weekly constraints into the already made A and b matrix, or did you need to create an Aeq and beq matrix? When I tried adding the constraint into the A and b matrix, I get an error that the sizes do not match. Also, because I am creating a weekly model, I removed the circular loop that was in place (GALLERY). To which I get more errors. Did you keep gallery in place?
Thank you so much!
Serien Ali
el 2 de Sept. de 2018
Editada: Serien Ali
el 2 de Sept. de 2018
Also, I used hourMatrix as the total hours worked for each employee, however I think this is wrong. I am new to matlab, sorry in advance!
Serien Ali
el 3 de Sept. de 2018
Hi again Mai, sorry to be a bother. I cant seem to formulate it for a weekly optimization. Could you please walk me through how you managed to formulate it? It would be a huge help to me. Thank you so much!
Serien Ali
el 5 de Sept. de 2018
Hi Mai, could you please help? I cant find any resources online. Thanks so much.
Mai
el 5 de Sept. de 2018
Hi, I will reply soon when I get access to my laptop. :)
Serien Ali
el 5 de Sept. de 2018
Thank you!
Serien Ali
el 14 de Sept. de 2018
Hi Mai, were you able to get a hold of your laptop? Thanks
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Solver Outputs and Iterative Display en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!