ECJ-INTEREST-L Archives

February 2014

ECJ-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show HTML 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:
Francisco Lopez de la Franca <[log in to unmask]>
Reply To:
ECJ Evolutionary Computation Toolkit <[log in to unmask]>
Date:
Mon, 24 Feb 2014 12:57:00 +0100
Content-Type:
multipart/alternative
Parts/Attachments:
text/plain (757 bytes) , text/html (967 bytes)
Hello.

I am new in ECJ. I'm going to use ECJ to find the solution of a second
degree equation, that is, x=(-b+sqrt(b^2-4ac))/(2a).
I've implemented as FunctionSet the following nodes: add, sub, sqrt,
square, mul, div, neg, a, b, c, 2 and 4.
I've followed the instructions described both in the tutorial4 in the
documentations provided with ECJ and the one in the ECJ manual.

What I need and donot find the way, is to force to appear in the result
tree the nodes: a, b, c, 2, 4, -, +, sqrt, square, div and mul. That is, to
specify in some manner that the nodes must appear at least once. Moreover,
I'd like to know if it is possible to set that one node must appear a
number of times in the solution.

I hope to have explained well.

Thank you very much in advance.

Regards.


ATOM RSS1 RSS2