Pythagorean Theorem Problem

  Pythagorean theorem

  This problem was chosen to illustrate the performance of GEP while using two independent variables. The Pythagorean theorem establishes a relationship between the hypotenuse and the legs of a right triangle by the formula:

 where h is the hypotenuse, and a and b are the legs.

Table 1
Parameters for the Pythagorean theorem problem
 
Function set +,-,*,/,Q
Terminal set a,b
Number of fitness cases 10
Number of runs 100
Number of generations 50
Population size 60
Absolute error 0.001
Success rate 78%

Notes: Q- square root

Download the executable

Back

***


Last update: 23/July/2013
 
© Candida Ferreira
All rights reserved.