... | ... | @@ -17,13 +17,13 @@ Compile the package: |
|
|
|
|
|
The standard PSO implementation is provided with the code.
|
|
|
|
|
|
To run the Python example code:
|
|
|
To run the Python example code (update pso_example.py as necessary):
|
|
|
|
|
|
cd python
|
|
|
|
|
|
python pso_example.py
|
|
|
|
|
|
|
|
|
And to run the C++ example code:
|
|
|
And to run the C++ example code (update the parameters as necessary):
|
|
|
|
|
|
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 |