Contents
Index
Optimize.ASA
Description
interface to the Adaptive Simulated Annealing algorithm.
Synopsis
newtype
UserOptions
=
UserOptions
(Ptr
UserOptions
)
type
Doubles
= UArray Int Double
data
ExitCode
=
NormalExit
|
PTempTooSmall
|
CTempTooSmall
|
CostRepeating
|
TooManyInvalidStates
|
ImmediateExit
|
InvalidUserInput
|
InvalidCostFunction
|
InvalidCostFunctionDeriv
data
Results
x =
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.6