项目作者: trifectalabs

项目描述 :
A Scala Akka library for swarm intelligence algorithms
高级语言: Scala
项目地址: git://github.com/trifectalabs/myriad.git
创建时间: 2015-09-08T01:54:17Z
项目社区:https://github.com/trifectalabs/myriad

开源协议:MIT License

下载


Myriad

Myriad

A Scala Akka library for swarm intelligence algorithms

Codeship Status for trifectalabs/myriad

How It Works


1. Create an objective function which looks something like this
  1. def objectiveFunction(X: List[Double]): Double {
  2. ...
  3. }
2. Declare a config using your objective function and specify some initial solutions

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.

  1. val conf = PSOConfiguration(
  2. objectiveFunction = obj,
  3. initialSolutions = solutions,
  4. ...
  5. )
3. Create a factory to build the optimization system
  1. val psoSystemFactory = new PSOSystemFactory(conf)
  2. val pso = psoSystemFactory.build()
4. Create an exectuor to run the optimization
  1. val psoJob = new PSOExecutor(pso)
  2. psoJob.run