propeller.problems.software.number-io

Number IO from iJava (http://ijava.cs.umass.edu/)

 This problem file defines the following problem:

There are two inputs, a float and an int. The program must read them in, find their sum as a float, and print the result as a float.

-main

(-main & args)

Runs the top-level genetic programming function, giving it a map of arguments with defaults that can be overridden from the command line or through a passed map.

error-function

(error-function argmap data individual)

Finds the behaviors and errors of an individual: Error is the absolute difference between program output and the correct output. The behavior is here defined as the final top item on the PRINT stack.

instructions

Stack-specific instructions, input instructions, close, and constants

random-float

(random-float)

Random float between -100.0 and 100.0

random-int

(random-int)

Random integer between -100 and 100

train-and-test-data

Inputs are random integers and random floats and outputs are the sum as a float.