Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Efficient Assignment of Many People To Many Locations?

by heezy (Monk)
on Feb 25, 2005 at 11:00 UTC ( [id://434425]=note: print w/replies, xml ) Need Help??


in reply to Efficient Assignment of Many People To Many Locations?

The psuedo-code you have listed above is the basic principle of a genetic algorithm (GA) but to really go down the GA route you need to initially constuct MANY random solutions as follows...

  1. Define a way of encoding your solutions into a data set e.g. Binary, hex, tree...
  2. Create 20 random candidate solutions using your encoding.
  3. Measure how well each of these work (the 'fitness')
  4. Mutate the populations at random.
  5. Crossover different candidate solutions. (many different methods can be applied here to choose which to cross)
  6. Measure the new fitness of the new 20 candidate colutions.
  7. Is this fitness satisfactory? If not go back to step 4 (or stop if you are on the Nth itteration)
  • Comment on Re: Efficient Assignment of Many People To Many Locations?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://434425]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-24 07:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found