Employee Scheduling Problem MIP
$begingroup$
I am trying to create a mathematical model for employee scheduling.
I have already got an idea on how I should model it but I do not know whether it is the best way to do it so.
Take for example a day.
A working day consists of 10 hours, from 10:00 till 20:00.
Suppose there is an employee working for 4 hours.
Now such a schedule can start from 10:00 and is dependent on the working hours of that employee.
The way that the available schedules could be written in the A Matrix ($A*x leq b$) would be one column per schedule filled with 1's and 0's.
e.g.
For the 4 hours schedule, I would have 7 different available shifts.
- 10:00 to 14:00
- 11:00 to 15:00
- ...
- 16:00 to 20:00
For that, I would need 7 columns. The first would be filled with
- 1,1,1,1,0,0,...,0
the second with
- 0,1,1,1,1,0...,0
and so goes on.
This way in the A matrix I will have many columns with 0 as matrix Elements. Is there a more efficient way to model such a schedule?
My goal is to solve it as a MIP problem.
linear-programming mathematical-modeling simplex mixed-integer-programming
$endgroup$
add a comment |
$begingroup$
I am trying to create a mathematical model for employee scheduling.
I have already got an idea on how I should model it but I do not know whether it is the best way to do it so.
Take for example a day.
A working day consists of 10 hours, from 10:00 till 20:00.
Suppose there is an employee working for 4 hours.
Now such a schedule can start from 10:00 and is dependent on the working hours of that employee.
The way that the available schedules could be written in the A Matrix ($A*x leq b$) would be one column per schedule filled with 1's and 0's.
e.g.
For the 4 hours schedule, I would have 7 different available shifts.
- 10:00 to 14:00
- 11:00 to 15:00
- ...
- 16:00 to 20:00
For that, I would need 7 columns. The first would be filled with
- 1,1,1,1,0,0,...,0
the second with
- 0,1,1,1,1,0...,0
and so goes on.
This way in the A matrix I will have many columns with 0 as matrix Elements. Is there a more efficient way to model such a schedule?
My goal is to solve it as a MIP problem.
linear-programming mathematical-modeling simplex mixed-integer-programming
$endgroup$
1
$begingroup$
This is a good approach. And if you cannot generate all the feasible columns a priori you can do column generation (which does it dynamically). But can be tricky to implement.
$endgroup$
– Kuifje
Dec 21 '18 at 16:07
$begingroup$
@Kuifje Thank you for your comment. Could you please provide an example or a link of the dynamical creation of the columns? I still find it performance-wise quite "expensive". If I I would implement it for multiple employees and days that would create a massive Matrix.
$endgroup$
– Georgios
Dec 21 '18 at 22:29
$begingroup$
Check this for example : gist.github.com/Bart6114/8414730
$endgroup$
– Kuifje
Dec 21 '18 at 22:48
$begingroup$
See link for an example of CG applied to employee scheduling (the links at the bottom show alternative approaches).
$endgroup$
– Erwin Kalvelagen
Dec 22 '18 at 14:26
$begingroup$
@Erwin Kalvelagen Lovely! Thank you for the link. This is what I was looking for. I still have to read multiple times the content on your page to comprehend it. To that, the first reference (Loren Shure) on your page is what I have in my mind. I find such methods so fascinating but I do not know, whether there is already commercial software that is applied in practice e.g. Starbucks employee Scheduling.
$endgroup$
– Georgios
Dec 22 '18 at 15:39
add a comment |
$begingroup$
I am trying to create a mathematical model for employee scheduling.
I have already got an idea on how I should model it but I do not know whether it is the best way to do it so.
Take for example a day.
A working day consists of 10 hours, from 10:00 till 20:00.
Suppose there is an employee working for 4 hours.
Now such a schedule can start from 10:00 and is dependent on the working hours of that employee.
The way that the available schedules could be written in the A Matrix ($A*x leq b$) would be one column per schedule filled with 1's and 0's.
e.g.
For the 4 hours schedule, I would have 7 different available shifts.
- 10:00 to 14:00
- 11:00 to 15:00
- ...
- 16:00 to 20:00
For that, I would need 7 columns. The first would be filled with
- 1,1,1,1,0,0,...,0
the second with
- 0,1,1,1,1,0...,0
and so goes on.
This way in the A matrix I will have many columns with 0 as matrix Elements. Is there a more efficient way to model such a schedule?
My goal is to solve it as a MIP problem.
linear-programming mathematical-modeling simplex mixed-integer-programming
$endgroup$
I am trying to create a mathematical model for employee scheduling.
I have already got an idea on how I should model it but I do not know whether it is the best way to do it so.
Take for example a day.
A working day consists of 10 hours, from 10:00 till 20:00.
Suppose there is an employee working for 4 hours.
Now such a schedule can start from 10:00 and is dependent on the working hours of that employee.
The way that the available schedules could be written in the A Matrix ($A*x leq b$) would be one column per schedule filled with 1's and 0's.
e.g.
For the 4 hours schedule, I would have 7 different available shifts.
- 10:00 to 14:00
- 11:00 to 15:00
- ...
- 16:00 to 20:00
For that, I would need 7 columns. The first would be filled with
- 1,1,1,1,0,0,...,0
the second with
- 0,1,1,1,1,0...,0
and so goes on.
This way in the A matrix I will have many columns with 0 as matrix Elements. Is there a more efficient way to model such a schedule?
My goal is to solve it as a MIP problem.
linear-programming mathematical-modeling simplex mixed-integer-programming
linear-programming mathematical-modeling simplex mixed-integer-programming
asked Dec 21 '18 at 15:46
GeorgiosGeorgios
63
63
1
$begingroup$
This is a good approach. And if you cannot generate all the feasible columns a priori you can do column generation (which does it dynamically). But can be tricky to implement.
$endgroup$
– Kuifje
Dec 21 '18 at 16:07
$begingroup$
@Kuifje Thank you for your comment. Could you please provide an example or a link of the dynamical creation of the columns? I still find it performance-wise quite "expensive". If I I would implement it for multiple employees and days that would create a massive Matrix.
$endgroup$
– Georgios
Dec 21 '18 at 22:29
$begingroup$
Check this for example : gist.github.com/Bart6114/8414730
$endgroup$
– Kuifje
Dec 21 '18 at 22:48
$begingroup$
See link for an example of CG applied to employee scheduling (the links at the bottom show alternative approaches).
$endgroup$
– Erwin Kalvelagen
Dec 22 '18 at 14:26
$begingroup$
@Erwin Kalvelagen Lovely! Thank you for the link. This is what I was looking for. I still have to read multiple times the content on your page to comprehend it. To that, the first reference (Loren Shure) on your page is what I have in my mind. I find such methods so fascinating but I do not know, whether there is already commercial software that is applied in practice e.g. Starbucks employee Scheduling.
$endgroup$
– Georgios
Dec 22 '18 at 15:39
add a comment |
1
$begingroup$
This is a good approach. And if you cannot generate all the feasible columns a priori you can do column generation (which does it dynamically). But can be tricky to implement.
$endgroup$
– Kuifje
Dec 21 '18 at 16:07
$begingroup$
@Kuifje Thank you for your comment. Could you please provide an example or a link of the dynamical creation of the columns? I still find it performance-wise quite "expensive". If I I would implement it for multiple employees and days that would create a massive Matrix.
$endgroup$
– Georgios
Dec 21 '18 at 22:29
$begingroup$
Check this for example : gist.github.com/Bart6114/8414730
$endgroup$
– Kuifje
Dec 21 '18 at 22:48
$begingroup$
See link for an example of CG applied to employee scheduling (the links at the bottom show alternative approaches).
$endgroup$
– Erwin Kalvelagen
Dec 22 '18 at 14:26
$begingroup$
@Erwin Kalvelagen Lovely! Thank you for the link. This is what I was looking for. I still have to read multiple times the content on your page to comprehend it. To that, the first reference (Loren Shure) on your page is what I have in my mind. I find such methods so fascinating but I do not know, whether there is already commercial software that is applied in practice e.g. Starbucks employee Scheduling.
$endgroup$
– Georgios
Dec 22 '18 at 15:39
1
1
$begingroup$
This is a good approach. And if you cannot generate all the feasible columns a priori you can do column generation (which does it dynamically). But can be tricky to implement.
$endgroup$
– Kuifje
Dec 21 '18 at 16:07
$begingroup$
This is a good approach. And if you cannot generate all the feasible columns a priori you can do column generation (which does it dynamically). But can be tricky to implement.
$endgroup$
– Kuifje
Dec 21 '18 at 16:07
$begingroup$
@Kuifje Thank you for your comment. Could you please provide an example or a link of the dynamical creation of the columns? I still find it performance-wise quite "expensive". If I I would implement it for multiple employees and days that would create a massive Matrix.
$endgroup$
– Georgios
Dec 21 '18 at 22:29
$begingroup$
@Kuifje Thank you for your comment. Could you please provide an example or a link of the dynamical creation of the columns? I still find it performance-wise quite "expensive". If I I would implement it for multiple employees and days that would create a massive Matrix.
$endgroup$
– Georgios
Dec 21 '18 at 22:29
$begingroup$
Check this for example : gist.github.com/Bart6114/8414730
$endgroup$
– Kuifje
Dec 21 '18 at 22:48
$begingroup$
Check this for example : gist.github.com/Bart6114/8414730
$endgroup$
– Kuifje
Dec 21 '18 at 22:48
$begingroup$
See link for an example of CG applied to employee scheduling (the links at the bottom show alternative approaches).
$endgroup$
– Erwin Kalvelagen
Dec 22 '18 at 14:26
$begingroup$
See link for an example of CG applied to employee scheduling (the links at the bottom show alternative approaches).
$endgroup$
– Erwin Kalvelagen
Dec 22 '18 at 14:26
$begingroup$
@Erwin Kalvelagen Lovely! Thank you for the link. This is what I was looking for. I still have to read multiple times the content on your page to comprehend it. To that, the first reference (Loren Shure) on your page is what I have in my mind. I find such methods so fascinating but I do not know, whether there is already commercial software that is applied in practice e.g. Starbucks employee Scheduling.
$endgroup$
– Georgios
Dec 22 '18 at 15:39
$begingroup$
@Erwin Kalvelagen Lovely! Thank you for the link. This is what I was looking for. I still have to read multiple times the content on your page to comprehend it. To that, the first reference (Loren Shure) on your page is what I have in my mind. I find such methods so fascinating but I do not know, whether there is already commercial software that is applied in practice e.g. Starbucks employee Scheduling.
$endgroup$
– Georgios
Dec 22 '18 at 15:39
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3048628%2femployee-scheduling-problem-mip%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3048628%2femployee-scheduling-problem-mip%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
$begingroup$
This is a good approach. And if you cannot generate all the feasible columns a priori you can do column generation (which does it dynamically). But can be tricky to implement.
$endgroup$
– Kuifje
Dec 21 '18 at 16:07
$begingroup$
@Kuifje Thank you for your comment. Could you please provide an example or a link of the dynamical creation of the columns? I still find it performance-wise quite "expensive". If I I would implement it for multiple employees and days that would create a massive Matrix.
$endgroup$
– Georgios
Dec 21 '18 at 22:29
$begingroup$
Check this for example : gist.github.com/Bart6114/8414730
$endgroup$
– Kuifje
Dec 21 '18 at 22:48
$begingroup$
See link for an example of CG applied to employee scheduling (the links at the bottom show alternative approaches).
$endgroup$
– Erwin Kalvelagen
Dec 22 '18 at 14:26
$begingroup$
@Erwin Kalvelagen Lovely! Thank you for the link. This is what I was looking for. I still have to read multiple times the content on your page to comprehend it. To that, the first reference (Loren Shure) on your page is what I have in my mind. I find such methods so fascinating but I do not know, whether there is already commercial software that is applied in practice e.g. Starbucks employee Scheduling.
$endgroup$
– Georgios
Dec 22 '18 at 15:39