ECJ-INTEREST-L Archives

February 2014

ECJ-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Proportional 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:
Tomas nikima <[log in to unmask]>
Reply To:
ECJ Evolutionary Computation Toolkit <[log in to unmask]>
Date:
Tue, 11 Feb 2014 12:44:57 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (17 lines)
I want to define a non-terminal node in GP that can have different number of
children. For example, in a case it has two children, and in another case 5
children. However, it must have at least one child.

I tried to define a constrain with no size, but it does not work.

#No size is set
gp.nc.1 = ec.gp.GPNodeConstraints
gp.nc.1.name = undefinedChildren
gp.nc.1.returns = nil

Please let me know how can I define a node capable of having different
number of children.

Thanks.
Tomas.

ATOM RSS1 RSS2