#include <pso.hpp>
Public Member Functions | |
void | run (ostream &output, unsigned int outiter, unsigned int outend) |
Start the optimization run. |
<optimizer type="pso"> <!-- name of the optimizer--> <par val="100000"/> <!-- iterations --> <par val="30"/> <!-- particle count --> <par val="1"/> <!-- inertia weight start --> <par val="0.7"/> <!-- inertia weight end --> <par val="1.4"/> <!-- cognitive weight --> <par val="1.4"/> <!-- social weight --> <par val="5"/> <!-- maximum velocity --> <par val="0.79"/> <!-- maximum angle velocity for quaternions --> <par val="0.79"/> <!-- maximum angle velocity for angles --> </optimizer>
void paradocks::PSO::run | ( | ostream & | output, | |
unsigned int | outiter, | |||
unsigned int | outend | |||
) | [virtual] |
Start the optimization run.
output | The results should go into this stream. | |
outiter | Save the structure from every iteration: 0 - no structure, 1 - best structure, 2 - all structures | |
outend | Save the structure at the end: 1 - best structure, 2 - all structures start a optimization |
Implements paradocks::Optimizer.