diff --git a/README.md b/README.md index 05feff05ab6be1b9be41281afdfa9ae706398395..a326cbea8f133d42aff02a0df989b96e6cfdcb39 100644 --- a/README.md +++ b/README.md @@ -10,10 +10,22 @@ Unpack it: Compile the package: - cd CSMOn-*/python + cd CSMOn-* make + + make clean -Then finally, run the example code (provided with a standard PSO implementation): - python pso_example.py \ No newline at end of file +The standard PSO implementation is provided with the code. + +To run the Python example code: + + cd python + + python pso_example.py + + +And to run the C++ example code: + + cpp/pso_example pso -s1 -5.12 -s2 5.12 -w -0.5 -c1 -0.2 -c2 0.35 -n 100 -p 30 -M 50000 -R -0.08 \ No newline at end of file