ContentsIndex
Optimize.ASA
Description
interface to the Adaptive Simulated Annealing algorithm.
Documentation
newtype UserOptions
Constructors
UserOptions (Ptr UserOptions)
type Doubles = UArray Int Double
data ExitCode
Constructors
NormalExit
PTempTooSmall
CTempTooSmall
CostRepeating
TooManyInvalidStates
ImmediateExit
InvalidUserInput
InvalidCostFunction
InvalidCostFunctionDeriv
show/hide Instances
data Results x
Constructors
Results
optimalValue :: Double
optimalParam :: x
exitCode :: ExitCode
type CostFunction = Ptr Double -> Ptr Int -> IO Double
mkCostFunction :: CostFunction -> IO (FunPtr CostFunction)
asa_main :: FunPtr CostFunction -> CInt -> Ptr Double -> Ptr Double -> Ptr CInt -> Ptr Double -> Ptr Double -> Ptr CInt -> CInt -> IO CInt
asa :: UserOptions -> (Doubles -> IO (Maybe Double)) -> Int64 -> Maybe Doubles -> Doubles -> Doubles -> UArray Int Bool -> IO (ExitCode, Doubles)
toBasicCostFunction :: Parameter z x => z -> (x -> Double) -> CostFunction
minimize :: Parameter z x => z -> (x -> Double) -> IO x
Produced by Haddock version 0.8