|
**Instructions for Linux**
|
|
INSTRUCTIONS FOR LINUX
|
|
|
|
|
|
Download CSMOn:
|
|
Download CSMOn:
|
|
|
|
|
|
***wget --no-check-certificate https://gitlab.c3sl.ufpr.br/pfperroni/CSMOn/repository/archive.tar.gz?ref=master -O CSMOn.tar.gz***
|
|
wget --no-check-certificate https://gitlab.c3sl.ufpr.br/pfperroni/CSMOn/repository/archive.tar.gz?ref=master -O CSMOn.tar.gz
|
|
|
|
|
|
Unpack it:
|
|
Unpack it:
|
|
|
|
|
|
***tar -xzvf CSMOn.tar.gz***
|
|
tar -xzvf CSMOn.tar.gz
|
|
|
|
|
|
Compile the package:<br>
|
|
Compile the package:
|
|
|
|
|
|
***cd CSMOn-\*/python***
|
|
cd CSMOn-*
|
|
|
|
|
|
***make***
|
|
make
|
|
|
|
|
|
Then finally, run the example code (provided with a standard PSO implementation):
|
|
make clean
|
|
|
|
|
|
***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 |