How do I create an optimal MULTI-day work schedule using mixed integer linear programming?
Show older comments
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 Comments
Serien Ali
on 30 Aug 2018
Hi Mee, I am trying to do the same thing. Were you able to formulate this for weekly optimization?
Thanks so much.
Mai
on 31 Aug 2018
Hi Serien, Yes, i was able to solve this using David’s suggestions. :)
Serien Ali
on 2 Sep 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
on 2 Sep 2018
Edited: Serien Ali
on 2 Sep 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
on 3 Sep 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
on 5 Sep 2018
Hi Mai, could you please help? I cant find any resources online. Thanks so much.
Mai
on 5 Sep 2018
Hi, I will reply soon when I get access to my laptop. :)
Serien Ali
on 5 Sep 2018
Thank you!
Serien Ali
on 14 Sep 2018
Hi Mai, were you able to get a hold of your laptop? Thanks
Accepted Answer
More Answers (0)
Categories
Find more on Solver Outputs and Iterative Display in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!