Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*.class
.project
.classpath
*.class
.project
.classpath
/Run from CEFloatReg2
/target/
40 changes: 0 additions & 40 deletions Makefile

This file was deleted.

2 changes: 0 additions & 2 deletions Manifest

This file was deleted.

137 changes: 0 additions & 137 deletions PshEquationBuilder.java

This file was deleted.

88 changes: 0 additions & 88 deletions PshInspector.java

This file was deleted.

22 changes: 16 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,33 @@ Getting Started with Psh

Building Psh
------------
After getting Psh with get, build the package:
After downloading the source code from git, build the package with Maven (preferably version 3):

$ make
$ mvn install

Which will create a JAR file in folder `target/`.

And run tests with

$ mvn test

Using PshGP
----------
To run PshGP on a sample problem:

$ java PshGP gpsamples/intreg1.pushgp
$ ./pshgp examples/gpsamples/cartcenter.pushgp

or directly with Java command

$ java -jar target/psh-*.jar examples/gpsamples/cartcenter.pushgp

This problem uses integer symbolic regression to solve the equation y = 12x^2 + 5. Other sample problems are available, with descriptions, in `gpsamples/`. For example, `intreg2.pushgp` uses integer symbolic regression to solve the factorial function, and `regression1.pushgp` uses float symbolic regression to solve y = 12x^2 + 5.
This problem uses integer symbolic regression to solve the equation `y = 12x^2 + 5`. Other sample problems are available, with descriptions, in `gpsamples/`. For example, `intreg2.pushgp` uses integer symbolic regression to solve the factorial function, and `regression1.pushgp` uses float symbolic regression to solve `y = 12x^2 + 5`.

Using PshInspector
------------------
PshInspector allows you to examine every step of a Psh program as it executes. To run PshInspector on a sample psh program:

$ java PshInspector pushsamples/exampleProgram1.push
$ ./pshinspector examples/pushsamples/exampleProgram1.push

This push file runs the psh program `(2994 5 integer.+)` for 100 steps after pushing the inputs `44, 22, true, 17.76`. Other sample psh programs are available in `pushsamples/`.

Expand Down Expand Up @@ -209,4 +219,4 @@ Major Changes since v0.1:

Acknowledgement
===============
This material is based upon work supported by the National Science Foundation under Grant No. 1017817. Any opinions, findings, and conclusions or recommendations expressed in this publication are those of the authors and do not necessarily reflect the views of the National Science Foundation.
This material is based upon work supported by the National Science Foundation under Grant No. 1017817. Any opinions, findings, and conclusions or recommendations expressed in this publication are those of the authors and do not necessarily reflect the views of the National Science Foundation.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading