I have finished defining my GP set for a problem. I use ECJ only for
creating and modifying
the individuals but the fitness is measured by a remote system which I
contact via TCP/IP
for evaluating. Now I am wondering where to put the code for setting the
server up or to
close it. First I thought the appropriate place was the class
where my own code "starts" and the evaluation happens. So the server
startup would be
done in the constructor. But where to put the closing sequence?
I see only two ways: using finalize (which is quite unreliable) or to
modify the class which
calls the ProblemClass (evolver). Any better ways?