initSwarm: Initialise particle swarm.

Description Usage Arguments Value

Description

Initiate a swarm of particles with the given starting values.

Usage

1
initSwarm(starting, delta, indicator)

Arguments

starting

a matrix of starting values. (num mat)

delta

the closeness function that takes a matrix and return a vector. (num mat -> num vec)

indicator

an indicator function that takes a matrix, and returns a boolean vector that indicates the feasibility of each column of the matrix. (num mat -> bool vec)

Value

a list with various properties of the swarm.


weiyaw/blackbox documentation built on June 7, 2019, 5:12 a.m.