January 2012


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
George Papaioannou <[log in to unmask]>
Reply To:
ECJ Evolutionary Computation Toolkit <[log in to unmask]>
Wed, 18 Jan 2012 10:22:07 +0200
text/plain (44 lines)
Dear Warren,
Thanks for your fast reply! Maybe you 're right.
If I can use the standard Java functions is OK for me, in order to 
populate the data in my classes.
Let me make the question in another way:
Where is the appropriate point (method) to put the loading of the data in?

Suppose we have a List of objects: The Object has the following 
attributes Id (which is an unique identity integer number ), 
TextField(which is a text field).
I want to put the Ids of the object list into the IntegerVectorIndividual.

So the next question is which method should I use in order to load them 
into the Vector.

.... and my last question is about the evolve method. Can I use my 
class' methods inside this function?

Thanks a lot for your help


As I mention before I'm novice in ECJ, so

On 18/1/2012 3:14 πμ, Warren Henning wrote:
> On Tue, Jan 17, 2012 at 12:53 PM, George Papaioannou<[log in to unmask]>  wrote:
>> 1. I will define some classes in order to load the algorithms data i.e.
>> Students , Lessons. How can I load the data from a file, in order to use
>> them in ECJ?
> Could you elaborate a little more? Do you need to do something besides
> standard Java file I/O in order to read in your data?
>> 2. Is it possible to create a global array in order to load the data in it
>> and using it in ECJ?
> Why do you need to have global variables rather than creating public
> Java methods or something within the language's normal facilities?
> Maybe I misunderstood, but these questions seem more like issues about
> Java programming rather than ECJ per se.
> Best regards,
> Warren Henning