A Scala Akka library for swarm intelligence algorithms
def objectiveFunction(X: List[Double]): Double {
...
}
The number of solutions specified will determine the size of the swarm. The only two required parameters are the objective function and initial solutions but all of the other parameters are customizable as well.
val conf = PSOConfiguration(
objectiveFunction = obj,
initialSolutions = solutions,
...
)
val psoSystemFactory = new PSOSystemFactory(conf)
val pso = psoSystemFactory.build()
val psoJob = new PSOExecutor(pso)
psoJob.run