summaryrefslogtreecommitdiff
path: root/nonlinear-optimization.cabal
blob: 76cfe309e8eb19a5db452bfb01aa71e123ca83a5 (plain)
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
Cabal-Version:       >= 1.6
Build-Type:          Simple
Tested-With:         GHC
Category:            Math
Name:                nonlinear-optimization
Version:             0.3.11
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 <felipe.lessa@gmail.com>
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.
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.7
    , vector    >= 0.5 && <= 0.13
  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/