General implementation of particle swarm optimization usable as a direct
replacement for `optim`

.

`signature(par = "ANY", fn = "ANY", gr = "ANY", lower = "ANY", upper = "ANY")`

:

This is the standard replacement for `optim`

without S4
object usage.

`signature(par = "test.problem", fn = "missing", gr = "missing",`

`lower = "missing", upper = "missing")`

:

This is for running PSO on a specific test problem. Typically this is
invoked on repetitive runs of a test problem and used to assess the
choice of parameters for the underlying PSO algorithm. The function
is essentially a wrapper function for `psoptim`

but
returns an instance of `test.result`

containing summary
results.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.