Re: Assignmnet problem with rules
- From: "Rob Thorpe" <robert.thorpe@xxxxxxxxxxxx>
- Date: 27 Feb 2006 03:21:09 -0800
Ayende Rahien wrote:
Hi,
I know that you probably rehashed the subject many time here, but
googling doesn't give me any good info on the subject.
I need to find a good enough solution to the following problem:
Assign an employee to a shift with rules.
I've a set of employees and a set of shifts. Assigning an employee to a
shift change the results of rules for the whole system. So I can't just
use normal wieghts to find it.
I started out thinking about trying something like:
- Assign Employee to Shift
- Check system state
- If good, continue
- If bad, mark this combination as bad and move to next employee
- drop all bad states that were recorded before this step.
- Keep going until I run out of shifts, employees or valid states.
- If I found a solution (all shifts are assigned), finish
- If solution not found, back one step, mark it as invalid, and keep
trying.
The problem with this appraoch is that it would probably take too long.
(Normal workload would be about 100 - 300 employees with ~500 shifts
to assign.
I got some fixed assignments that helps me here, but I would appriciate
any pointers.
There are a lot of similar related problems in many fields. As others
have said, this problem is often studied in operational research and
AI. It also occurs in compilers.
There has been a lot written on it in those three areas, it's fairly
easy to find some of it by searching the web and reading books.
If it is a real scheduling problem involving real people, then its
likely that similar scenarios will come up many times. So it may be
useful to keep a cache of solutions to particular problems that the
program has encountered before.
.
- Follow-Ups:
- Re: Assignmnet problem with rules
- From: CBFalconer
- Re: Assignmnet problem with rules
- References:
- Assignmnet problem with rules
- From: Ayende Rahien
- Assignmnet problem with rules
- Prev by Date: [OT] Re: Assignmnet problem with rules
- Next by Date: Re: init
- Previous by thread: [OT] Re: Assignmnet problem with rules
- Next by thread: Re: Assignmnet problem with rules
- Index(es):
Relevant Pages
|