How do I create an optimal MULTI-day work schedule using mixed integer linear programming?
古いコメントを表示
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 件のコメント
Serien Ali
2018 年 8 月 30 日
Hi Mee, I am trying to do the same thing. Were you able to formulate this for weekly optimization?
Thanks so much.
Mai
2018 年 8 月 31 日
Hi Serien, Yes, i was able to solve this using David’s suggestions. :)
Serien Ali
2018 年 9 月 2 日
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
2018 年 9 月 2 日
編集済み: Serien Ali
2018 年 9 月 2 日
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
2018 年 9 月 3 日
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
2018 年 9 月 5 日
Hi Mai, could you please help? I cant find any resources online. Thanks so much.
Mai
2018 年 9 月 5 日
Hi, I will reply soon when I get access to my laptop. :)
Serien Ali
2018 年 9 月 5 日
Thank you!
Serien Ali
2018 年 9 月 14 日
Hi Mai, were you able to get a hold of your laptop? Thanks
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Solver Outputs and Iterative Display についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!