| Copyright | 2014 Tomáš Musil |
|---|---|
| License | BSD-3 |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
SA
Contents
Description
Simulated Annealing.
- type Score = Double
- type Temp = Double
- data Config = Config {
- initialTemp :: Temp
- cooling :: Double
- finalTemp :: Temp
- coolingPeriod :: Int
- info :: Int
- optimize :: Config -> ((Score, d) -> Rand StdGen (Score, d)) -> (Score, d) -> Rand StdGen ((Score, d), [String])
- descent :: ((Score, d) -> [(Score, d)]) -> (Score, d) -> ((Score, d), [String])