[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Sub-swarms
From: |
Marcus Vinicius Pereira Pessoa |
Subject: |
Sub-swarms |
Date: |
Mon, 04 Aug 1997 06:34:09 -0300 |
Hi all,
Im trying to call swarms within a swarm. Im making an application in
which I will evolve a group strategy. In a model similar to hello-world,
I will use a variation from Merelos GA lib. So I have some questions:
1) How can I call a whole application via the main-ModelSwarm?
2) From which sub-ObserverSwarm method can I receive a parameter back?
3) Will the matter previously discussed, about problems with the
schedule, have any influence in the model?
I think that the evaluation function will be something like:
float evalFunc( id<Chromosome> a ) {
int argc;
char ** argv;
PplObserverSwarm * observerSwarm;
initSwarm(argc, argv);
observerSwarm = [PplObserverSwarm create: globalZone];
[observerSwarm buildObjects: a]; //here Im passing the group of
agents
[observerSwarm buildActions];
[observerSwarm activateIn: nil];
[observerSwarm go];
return "evaluated value"; //a value must return
}
Thanks in advance,
Vinicius.
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
==================================
- Sub-swarms,
Marcus Vinicius Pereira Pessoa <=