swarm-support
[Top][All Lists]
Advanced

[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,

I’m trying to call swarms within a swarm. I’m making an application in
which I will evolve a group strategy. In a model similar to hello-world,
I will use a variation from Merelo’s 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 I’m 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.
                  ==================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]