Running and Evolving Push Programs
<< previous | Chapter 15. "Push": a Language for Evolutionary Computation Integrated With breve | next >>

## Running and Evolving Push Programs

A program in the Push language is stored in a PushProgram object. This object provides methods for parsing Push programs, creating random programs, breeding and mutating programs and more. All of these features are described in detail in the class documentation.

Running a Push program is accomplished with help from the PushInterpeter object. Typically, the steps involved in running a Push program are:

- Create and configure the Push interpreter

- Clear the interpreter's stacks with the method clear-stacks.

- Push input values onto the interpreter's stacks (using various methods in the PushInterpreter class).

- Run the push program with the method run.

- Read output values from the interpreter's stacks (using various methods in the PushInterpreter class).

<< previous | Up | next >>
Creating and Configuring Push Environments | Table of Contents | Genetic Programming With the PushGP Class