Skip to content

sorenmacbeth/deoptim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deoptim

Build Status

A Clojure implementation of the Differential Evolution global optimization algorithm.

To use in your leiningen projects add:

[deoptim "0.1.0"]

to your project.clj

Usage

(use 'deoptim.core)

(defn sphere [^doubles xs]
    (let [^doubles squares (amap ^doubles xs idx ret
                                 (Math/pow (aget ^doubles xs idx) 2))]
      (areduce ^doubles squares idx ret (double 0)
               (+ ret (aget ^doubles squares idx)))))

(optimize sphere 0.2 0.1 100 10 -100 100 150)

License

Copyright © 2013 Soren Macbeth

Distributed under the Eclipse Public License, the same as Clojure.

About

Differential Evolution Optimizer

Resources

Stars

Watchers

Forks

Packages

No packages published