MASON-INTEREST-L Archives

November 2008

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Sean Luke <[log in to unmask]>
Reply To:
Date:
Wed, 12 Nov 2008 18:16:14 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (29 lines)
We don't have any public ones, sorry.

But it's easy!  When Problem.evaluate() is called in ECJ, create a new 
MASON simulation, put in an individual who knows where the GP tree is 
and can call eval on it, add some special functions in your Problem 
subclass that your various GP nodes know how to call, and have those 
functions manipulate the agents in the simulation.  Manually step the 
simulation a few times like this:

	simulation.start();
	for a few times
		simulation.schedule.step(simulation)
	simulation.finish();

Then set the fitness of the individual based on results from the simulation.

Sean

Ben Moran wrote:

> I have not been able to find on the web any example source code for
> projects combining Mason and ECJ.  I'm sure there are many ways of doing
> this depending on the problems at hand, but would anyone be able to
> point me to a working example?
> 
> Thanks very much,
> 
> Ben

ATOM RSS1 RSS2