-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathnonlinear-optimization.cabal
77 lines (74 loc) · 2.57 KB
/
nonlinear-optimization.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
Cabal-Version: >= 1.8
Build-Type: Simple
Tested-With: GHC
Category: Math
Name: nonlinear-optimization
Version: 0.3.12.1
Stability: experimental
License: GPL
License-File: LICENSE
Copyright: (c) 2010-2011 Felipe A. Lessa and William W. Hager
Author: Felipe A. Lessa (Haskell code), William W. Hager and Hongchao Zhang (CM_DESCENT code).
Maintainer: Felipe A. Lessa <[email protected]>
Synopsis: Various iterative algorithms for optimization of nonlinear functions.
Description:
This library implements numerical algorithms to optimize
nonlinear functions. Optimization means that we try to find
a minimum of the function. Currently all algorithms
guarantee only that local minima will be found, not global
ones.
.
Almost any continuosly differentiable function @f : R^n -> R@
may be optimized by this library. Any further restrictions
are listed in the modules that need them.
.
We use the @vector@ package to represent vectors and
matrices, although it would be possible to use something like
@hmatrix@ easily.
.
Currently only CG_DESCENT method is implemented.
.
If you want to use automatic differentiation to avoid hand-writing gradient functions,
you can use
<https://hackage.haskell.org/package/nonlinear-optimization-ad nonlinear-optimization-ad> package or
<https://hackage.haskell.org/package/nonlinear-optimization-backprop nonlinear-optimization-backprop> package.
Homepage: https://github.com/meteficha/nonlinear-optimization
Bug-Reports: https://github.com/meteficha/nonlinear-optimization/issues
Extra-Source-Files:
CG_DESCENT-C-3.0/cg_descent.c,
CG_DESCENT-C-3.0/cg_descent.h,
CG_DESCENT-C-3.0/cg_user.h,
CG_DESCENT-C-3.0/README
Flag Debug
Description: Enable some debug statements.
Default: False
Source-repository head
type: git
location: https://github.com/meteficha/nonlinear-optimization
Library
Build-Depends:
base >= 3 && < 5
, primitive >= 0.2 && < 0.10
, vector >= 0.5 && <= 0.14
Exposed-Modules:
Numeric.Optimization.Algorithms.HagerZhang05
Include-Dirs:
CG_DESCENT-C-3.0
C-Sources:
CG_DESCENT-C-3.0/cg_descent.c
Includes:
cg_user.h
Extensions:
CPP,
BangPatterns,
ForeignFunctionInterface,
EmptyDataDecls,
GADTs,
Rank2Types,
FlexibleContexts
Build-Tools: hsc2hs
Extra-Libraries: m
GHC-Options: -Wall
if flag(Debug)
CPP-Options: -DDEBUG
hs-Source-Dirs: src/