How do I create an optimal MULTI-day work schedule using mixed integer linear programming?
Mostra commenti meno recenti
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 Commenti
Serien Ali
il 30 Ago 2018
Hi Mee, I am trying to do the same thing. Were you able to formulate this for weekly optimization?
Thanks so much.
Mai
il 31 Ago 2018
Hi Serien, Yes, i was able to solve this using David’s suggestions. :)
Serien Ali
il 2 Set 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
il 2 Set 2018
Modificato: Serien Ali
il 2 Set 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
il 3 Set 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
il 5 Set 2018
Hi Mai, could you please help? I cant find any resources online. Thanks so much.
Mai
il 5 Set 2018
Hi, I will reply soon when I get access to my laptop. :)
Serien Ali
il 5 Set 2018
Thank you!
Serien Ali
il 14 Set 2018
Hi Mai, were you able to get a hold of your laptop? Thanks
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Solver Outputs and Iterative Display in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!