Description Usage Arguments Value
Minimise an objective, subject to the constraint specified by an indicator function.
1 2 |
starting |
a matrix of starting values with each column corresponds to a particle. (num mat) |
objf |
the objective function that takes a matrix with each column corresponds to a particle, and return a vector with respective objective function values. (num mat -> num mat) |
pilot |
a pilot estimate vector. (num vec) |
indicator |
an indicator function that takes a particle matrix and return a boolean vector, each columnm of which corresponds to a column of the input matrix. (num mat -> bool vec) |
neighbour |
the number of neighbour (num) |
iter |
iteration number. (num) |
N |
number of total particles. (num) |
verbose |
show the algorithm progression? (bool) |
a list that contains the best particle and its objective function value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.