Copyright | 2014 Tomáš Musil |
---|---|
License | BSD-3 |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
ACO
Contents
Description
Ant Colony Optimization.
- type Pheromon = Double
- type Coefficient = Double
- data Config = Config {
- paramSize :: Size
- paramAGen :: Int
- paramNGen :: Int
- paramInitPh :: Pheromon
- paramAlpha :: Coefficient
- paramBeta :: Coefficient
- paramEvRate :: Pheromon
- paramPBest :: Pheromon
- paramUse2Opt :: Bool
- penalty :: Path -> Double -> Double
- originRandom :: Bool
- returnToOrigin :: Int
- defConfig :: Size -> Config
- optimize :: Config -> DArray -> IO (Distance, Path)
- optimizeWithInfo :: Config -> DArray -> IO ((Distance, Path), [Distance])
Types
type Coefficient = Double Source
Configuration
Constructors
Config | |
Fields
|