hmm, I've got a problem and I thought maybe you guys know of an easy way to sort this out.
I've got jobs that need a certain amount of people to be completed. each job has a priority (meaning some are more important than other).
I've also got people that are qualified to work.
What I need to do is assign people that are qualified (some people are qualified in more than one job, others just one) to those job. A person can be assigned to only one qualification.
So basically I need to read what people can do, and then start assigning them into jobs. IF there aren't enough people to staff all jobs, and a person is qualified to do more than one job then he's sent to the job with the higher priority.
I'm not sure how to approach this problem... I don't want to create somethings that goes over all of the options. I'm looking for something efficent, but I haven't found anything that's good enough.
first of all I check who can be assigned to only one job, and then I assign them to it.
After that I'm not sure how to continue...
This will be implemented in SQL server 2005.
to illustarte the problem. These are quite simple, but this will get ugly, once I start having 4 or 5 jobs...
I've got Jobs:
A (needs 3 people), B (2) , C (1) [ordered by priority]
and people:
1 (qualified in A)
2 (B)
3 (A)
4 (AC)
5 (AB)
6 (AB)
-------- this is a situation that I can fill all jobs. ------
or this:
1)A
2)B
3)AC
4)CB
5)AB
6)B
I've got jobs that need a certain amount of people to be completed. each job has a priority (meaning some are more important than other).
I've also got people that are qualified to work.
What I need to do is assign people that are qualified (some people are qualified in more than one job, others just one) to those job. A person can be assigned to only one qualification.
So basically I need to read what people can do, and then start assigning them into jobs. IF there aren't enough people to staff all jobs, and a person is qualified to do more than one job then he's sent to the job with the higher priority.
I'm not sure how to approach this problem... I don't want to create somethings that goes over all of the options. I'm looking for something efficent, but I haven't found anything that's good enough.
first of all I check who can be assigned to only one job, and then I assign them to it.
After that I'm not sure how to continue...
This will be implemented in SQL server 2005.
to illustarte the problem. These are quite simple, but this will get ugly, once I start having 4 or 5 jobs...
I've got Jobs:
A (needs 3 people), B (2) , C (1) [ordered by priority]
and people:
1 (qualified in A)
2 (B)
3 (A)
4 (AC)
5 (AB)
6 (AB)
-------- this is a situation that I can fill all jobs. ------
or this:
1)A
2)B
3)AC
4)CB
5)AB
6)B
