adding programmable operator in tree-grammar terminals

25 views
Skip to first unread message

Achiya Elyasaf

unread,
Jun 3, 2012, 4:27:41 AM6/3/12
to heuris...@googlegroups.com
Hi
most of the grammars used in gp include functions as terminals and not only numbers/variables.
is there a way to do that?
thanks
achiya

Gabriel Kronberger

unread,
Jun 4, 2012, 2:03:36 AM6/4/12
to heuris...@googlegroups.com

Dear Achiya,

 

yes, you can do that by implementing custom functions for your problem. The functions we implemented for symbolic regression all need some kind of input to produce an output.

 

Please have a look at [1] to get more information about the implementation of custom symbols.

 

Kind regards,

Gabriel

 

[1] https://dev.heuristiclab.com/trac/hl/core/wiki/UsersHowtosImplementGeneticProgrammingProblems

Achiya Elyasaf

unread,
Jun 4, 2012, 10:52:56 AM6/4/12
to heuris...@googlegroups.com
Dear Gabriel
According to what you say I will have to code a new problem plugin which make everything more complicated because now I have to learn how to use plugins and install visual studio.
I have a suggestion, i can't see a reason why it won't be possible to implement...
When I click the plus sign of the symbols of the tree grammar I will be able to add new Programmable Operator and then program it within the HeuristicLab framework.
What do you say? should I expect it in the next daily build ;-)
Thanks
Achiya

Gabriel Kronberger

unread,
Jun 4, 2012, 11:38:41 AM6/4/12
to heuris...@googlegroups.com

Dear Achiya,

 

you are right, it is quite cumbersome to define custom symbols right now. Your suggestion to provide a ‘programmable symbol’ is a very good idea. We should definitely add it soon.

 

In fact we have a very old (almost ancient) ticket [1] for this feature, however, up to now we haven’t felt enough pressure to implement it.

 

Anyway, I can’t promise that we can add it with the next release because we are already in a feature freeze state for 3.3.7 as we are preparing to release the next version before GECCO. If it’s not too much hassle to implement it I might still add it for 3.3.7.

 

Best regards,

Gabriel

 

[1] https://dev.heuristiclab.com/trac/hl/core/ticket/106

Reply all
Reply to author
Forward
0 new messages