ECJ-INTEREST-L Archives

November 2015

ECJ-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:
Reply To:
ECJ Evolutionary Computation Toolkit <[log in to unmask]>
Date:
Fri, 13 Nov 2015 16:45:49 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (13 lines)
Hi All,

Hope you all are doing good! I am learning ECJ and getting a problem.

I need to modify the first cell of an individual's genome and then send that individual to problem's evaluate(). As for example, if the genome is [10, 5, 3, 11, 12], I want to keep the first number (here it is 10) between 1 to 5. I can do that using IntegerVectorIndividual's genome field. But I can't modify the Individual in that way. As a result, I am not able to send a modified individual to problem's evaluate().

I read about Individual and the documentation says that Individual is immuatable but modification can be done and it is safe in a single threaded environment. But I am not finding any way (eg. any method like SetGenome() in IntegerVectorIndividual) to do that. Any suggestion is appreciated.

NB: I am not subclassing EvolutionState directly, I am using state = ec.simple.simpleEvolutionState in param file but eval is replaced by my own evaluator which is extending ec.simple.SimpleEvaluator.

Thanks for your time
-Bari  

ATOM RSS1 RSS2