External Evaluator

62 views
Skip to first unread message

yael zaritsky

unread,
May 31, 2012, 4:26:06 AM5/31/12
to heuris...@googlegroups.com
Hello,

I wanted to ask about the External Evaluator described in this link.
I thought I put all the relevant code together, but apparently I didn't :) - Where should I get the PushService, ServerSocketListenerFactory and SolutionMessage classes and the IEvaluationService interface and a class that implements it, from? What am I missing?
I should mention that I downloaded the HL3ExternalEvaluation.jar  and put it in my project's build path, but it still doesn't work. (what classes are in that jar? it says Java serice library used to build the java forwarding client - ?)

Thank you,

Yael

Andreas Beham

unread,
May 31, 2012, 3:12:33 PM5/31/12
to HeuristicLab
Hi Yael,

Everything should be in the jar file that you mentioned. Did you
download the actual file by clicking on the link where it says "try
downloading the file instead" or did you just right click on the
attachment and choose "Save file as.."? You can check the size of the
file that you downloaded, it should be about ~616kb. You can open that
file with any zip compatible program (such as 7-zip) since .jar files
are also zip files. Does it contain the classes in the com\heuristiclab
\problems\externalevaluation folder?

The classes that you mentioned are part of the package
com.heuristiclab.problems.externalevaluation. Did you add the
according import statement to your code?

Are you getting any specific error message?

Sincerely,
Andreas


On May 31, 10:26 am, yael zaritsky <yaelzarit...@gmail.com> wrote:
> Hello,
>
> I wanted to ask about the External Evaluator described in this
> link<http://dev.heuristiclab.com/trac/hl/core/wiki/UsersHowtosOptimizingEx...>
> .
> I thought I put all the relevant code together, but apparently I didn't :)
> - Where should I get the PushService, ServerSocketListenerFactory and
> SolutionMessage classes and the IEvaluationService interface and a class
> that implements it, from? What am I missing?
> I should mention that I downloaded the
> HL3ExternalEvaluation.jar<http://dev.heuristiclab.com/trac/hl/core/attachment/wiki/UsersHowtosO...>

yael zaritsky

unread,
Jun 1, 2012, 3:58:14 AM6/1/12
to heuris...@googlegroups.com
Hello Andreas,
You got it right -  I didn't download the jar file as I should have.
Everything's compiled now.
Thank you!
Yael

yael zaritsky

unread,
Jun 4, 2012, 9:11:35 AM6/4/12
to heuris...@googlegroups.com
Hi again,
In your external evaluation tutorial, you mention the four parameters of the Evaluator in the External Evaluation Problem.
I'm working with version 3.3.6.7260, with which I see only two parameters in the evaluator - Clients and MessageBuilder, while The tutorial mentions four params.
The tutorial says that the "Quality" parameter (which is missing in my version (?) ) denotes the variable that houses the fitness value, and so it looks to me as if it's going to be used by the evaluator... But that parameter doesn't exist from where I see it, and I can't add it either.
What's wrong..? Are these differences because of the version changes (there are some more things that aren't exactly as mentioned in the manual) or is there something I'm not seeing right?
If it's the version, can you please mention what version you're using of whether it matters if some things are missing?
Thanks!
Yael

Achiya Elyasaf

unread,
Jun 4, 2012, 9:21:46 AM6/4/12
to heuris...@googlegroups.com
Yael, there are hidden parameters. these parameters can't be override but are important.
The quality is one of them. In the parameters window click on the "ab" button and you will see the hidden ones.
achiya

yael zaritsky

unread,
Jun 4, 2012, 9:48:46 AM6/4/12
to heuris...@googlegroups.com

Thanks!

Reply all
Reply to author
Forward
0 new messages