Re: Assignmnet problem with rules
- From: "Daniel T." <postmaster@xxxxxxxxxxxxx>
- Date: Tue, 28 Feb 2006 12:03:23 GMT
In article <DlPMf.52347$7y1.48046@xxxxxxxxxxxxxxxxxxxx>,
Logan Shaw <lshaw-usenet@xxxxxxxxxxxxx> wrote:
Willem wrote:
Daniel wrote:
) Come up with initial assignments that don't break the independent rules,
) then check to see how many of the dependent rules are broken. Start
) swapping assignments, if fewer rules are broken, keep the swap, if more
) rules are broken swap back. The longer the program runs, the fewer rules
) that will be broken, but you can get a solution at any time.
This way, you'll only reach a local minimum. You could add a variable that
indicates the probability of continuing with a 'worse' swap, and decrease
that variable over time. (I think that's how it works at least...)
This approach is starting to sound more and more like a genetic algorithm.
Which actually might be a good approach to this problem, since it is
designed for problems where there is no direct route to an optimal
solution and since it is usually fairly good at avoiding getting stuck
in a local minimum ("hill climbing"). And a genetic algorithm will also
(up to a point) get better and better solutions the longer it runs, but
will give you a solution at any time.
Yes, and I'm thinking the first time the program runs, the seed is
basically random, but if the system allows people's input (as in when
they swap shifts between each-other) that can affect the seed for then
next run.
--
Magic depends on tradition and belief. It does not welcome observation,
nor does it profit by experiment. On the other hand, science is based
on experience; it is open to correction by observation and experiment.
.
- References:
- Assignmnet problem with rules
- From: Ayende Rahien
- Re: Assignmnet problem with rules
- From: Willem
- Re: Assignmnet problem with rules
- From: Ayende Rahien
- Re: Assignmnet problem with rules
- From: Daniel T.
- Re: Assignmnet problem with rules
- From: Willem
- Re: Assignmnet problem with rules
- From: Logan Shaw
- Assignmnet problem with rules
- Prev by Date: Re: Graph optimization
- Next by Date: Re: Generating PDF report using ASP
- Previous by thread: Re: Assignmnet problem with rules
- Next by thread: Re: Assignmnet problem with rules
- Index(es):
Relevant Pages
|