packages feed

dynobud-1.0.0.0: dynobud.cabal

name:                dynobud
version:             1.0.0.0
synopsis:            your dynamic optimization buddy
description:         See readme at <http://www.github.com/ghorn/dynobud http://www.github.com/ghorn/dynobud>
license:             LGPL-3
license-file:        LICENSE
author:              Greg Horn
maintainer:          gregmainland@gmail.com
copyright:           (c) Greg Horn 2013-2015
category:            Science
build-type:          Simple
cabal-version:       >=1.10
extra-source-files:  README.md
stability:           Experimental

source-repository head
  type:     git
  location: git://github.com/ghorn/dynobud.git

library
  exposed-modules:     Dyno.LagrangePolynomials
                       Dyno.TypeVecs
                       Dyno.Nats
                       Dyno.MultipleShooting
                       Dyno.Dae
                       Dyno.Models.Aircraft
                       Dyno.Models.AeroCoeffs
                       Dyno.Models.Betty
                       Dyno.Ocp
                       Dyno.DirectCollocation
                       Dyno.DirectCollocation.Dynamic
                       Dyno.DirectCollocation.Export
                       Dyno.DirectCollocation.Formulate
                       Dyno.DirectCollocation.Integrate
                       Dyno.DirectCollocation.Profile
                       Dyno.DirectCollocation.Quadratures
                       Dyno.DirectCollocation.Reify
                       Dyno.DirectCollocation.Robust
                       Dyno.DirectCollocation.Types
                       Dyno.Cov
                       Dyno.SXElement
                       Dyno.View
                       Dyno.View.CasadiMat
                       Dyno.View.CustomFunction
                       Dyno.View.Fun
                       Dyno.View.FunJac
                       Dyno.View.HList
                       Dyno.View.JV
                       Dyno.View.M
                       Dyno.View.NumInstances
                       Dyno.View.Scheme
                       Dyno.View.Symbolic
                       Dyno.View.View
                       Dyno.View.Viewable
                       Dyno.Vectorize
                       Dyno.Nlp
                       Dyno.NlpMonad
                       Dyno.NlpScaling
                       Dyno.NlpSolver
                       Dyno.OcpMonad
                       Dyno.Interface.LogsAndErrors
                       Dyno.Interface.Types
                       Dyno.Solvers
--                       Dyno.Sqp.Sqp
--                       Dyno.Sqp.LineSearch
                       Dyno.Server.Accessors
                       Dyno.Server.GraphWidget
                       Dyno.Server.PlotChart
                       Dyno.Server.PlotTypes
                       Dyno.Server.Server

  other-modules:
  build-depends:       base >=4.6 && < 5,
                       vector >=0.10,
                       data-default,
                       mtl >=2.2.1,
                       containers >=0.5,
                       jacobi-roots >=0.2 && <0.3,
                       hmatrix,
                       unordered-containers >=0.2,
                       casadi-bindings-internal,
                       casadi-bindings-core >= 2.2.0.2,
                       casadi-bindings >= 2.2.0.2,
                       transformers >=0.3,
                       primitive >=0.5 && <0.6,
                       ghc-prim >=0.3 && <0.4,
                       linear >= 1.3.1.1,
                       spatial-math >= 0.2.1.0,
                       tagged >= 0.6,
                       reflection >= 1.3.2,
                       lens,
                       cereal,
                       glib,
                       time,
                       stm,
                       gtk >= 0.13,
                       Chart-cairo >= 1.3.3,
                       cairo,
                       Chart >= 1.3.3,
                       data-default-class,
                       distributive,
                       text,
                       process
--                       cplex
  hs-source-dirs:      src
  default-language:    Haskell2010
  ghc-options:         -O2 -Wall
--  ghc-options:         -O2 -rtsopts
  ghc-prof-options:    -O2 -Wall -prof -fprof-auto -fprof-cafs -fprof-auto-calls

flag examples
    description:    build the examples
    default:        False

executable multiple_shooting
  if flag(examples)
    Buildable: True
  else
    Buildable: False
  hs-source-dirs:      examples
  main-is:             MultipleShooting.hs
  default-language:    Haskell2010
  build-depends:       dynobud
                       , base >=4.6 && < 5
                       , vector
                       , linear
                       , Chart >= 1.3.3
                       , Chart-gtk >= 1.3.3
                       , lens
                       , colour
                       , data-default-class
  ghc-options:         -O2


executable plotSofa
  if flag(examples)
    Buildable: True
  else
    Buildable: False
  hs-source-dirs:      examples
  main-is:             PlotSofa.hs
  default-language:    Haskell2010
  build-depends:       dynobud,
                       base >=4.6 && < 5,
                       not-gloss >= 0.7.0.0,
                       stm,
                       containers,
                       cereal,
                       linear,
                       bytestring,
                       zeromq4-haskell,
                       vector
  ghc-options:         -O2 -threaded

executable sofaTime
  if flag(examples)
    Buildable: True
  else
    Buildable: False
  hs-source-dirs:      examples
  main-is:             Sofa.hs
  default-language:    Haskell2010
  build-depends:       dynobud,
                       vector,
                       casadi-bindings-core,
                       zeromq4-haskell,
                       bytestring,
                       cereal,
                       linear,
                       base >= 4.6 && < 5
  ghc-options:         -threaded -O2

executable homotopy
  if flag(examples)
    Buildable: True
  else
    Buildable: False
  hs-source-dirs:      examples
  main-is:             Homotopy.hs
  default-language:    Haskell2010
  build-depends:       dynobud,
                       vector,
                       base >= 4.6 && < 5
  ghc-options:         -threaded -O2

executable vec
  if flag(examples)
    Buildable: True
  else
    Buildable: False
  hs-source-dirs:      examples
  main-is:             Vec.hs
  default-language:    Haskell2010
  build-depends:       dynobud,
                       vector >=0.10,
                       base >=4.6 && < 5

  ghc-options:         -threaded -O2

executable ocpMonad
  if flag(examples)
    Buildable: True
  else
    Buildable: False
  hs-source-dirs:      examples
  main-is:             OcpM.hs
  default-language:    Haskell2010
  build-depends:       dynobud,
                       vector >=0.10,
                       base >=4.6 && < 5,
                       zeromq4-haskell,
                       cereal,
                       bytestring

  ghc-options:         -threaded -O2

executable rocket
  if flag(examples)
    Buildable: True
  else
    Buildable: False
  hs-source-dirs:      examples
  main-is:             Rocket.hs
  default-language:    Haskell2010
  build-depends:       dynobud,
                       vector >=0.10,
                       base >=4.6 && < 5,
                       zeromq4-haskell,
                       cereal,
                       bytestring

  ghc-options:         -threaded -O2

executable staticExample
  if flag(examples)
    Buildable: True
  else
    Buildable: False
  hs-source-dirs:      examples
  main-is:             StaticExample.hs
  default-language:    Haskell2010
  build-depends:       dynobud,
                       vector >=0.10,
                       base >=4.6 && < 5
  ghc-options:         -threaded -O2

executable basic
  if flag(examples)
    Buildable: True
  else
    Buildable: False
  hs-source-dirs:      examples
  main-is:             Basic.hs
  default-language:    Haskell2010
  build-depends:       dynobud,
                       vector >=0.10,
                       base >=4.6 && < 5
  ghc-options:         -threaded -O2

executable basicJ
  if flag(examples)
    Buildable: True
  else
    Buildable: False
  hs-source-dirs:      examples
  main-is:             BasicJ.hs
  default-language:    Haskell2010
  build-depends:       dynobud,
                       vector >=0.10,
                       base >=4.6 && < 5
  ghc-options:         -threaded -O2

executable daeColl
  if flag(examples)
    Buildable: True
  else
    Buildable: False
  hs-source-dirs:      examples
  main-is:             DaeColl.hs
  default-language:    Haskell2010
  build-depends:       dynobud,
                       base >=4.6 && < 5,
                       vector
  ghc-options:         -threaded -O2

executable glider
  if flag(examples)
    Buildable: True
  else
    Buildable: False
  hs-source-dirs:      examples
  main-is:             Glider.hs
  default-language:    Haskell2010
  build-depends:       dynobud,
                       base >=4.6 && < 5,
                       containers,
                       linear,
                       bytestring,
                       cereal,
                       vector,
                       zeromq4-haskell
  ghc-options:         -threaded -O2

executable sailboat
  if flag(examples)
    Buildable: True
  else
    Buildable: False
  hs-source-dirs:      examples
  main-is:             Sailboat.hs
  default-language:    Haskell2010
  build-depends:       dynobud,
                       base >=4.6 && < 5,
                       containers,
                       linear,
                       bytestring,
                       cereal,
                       vector,
                       semigroups,
                       zeromq4-haskell
  ghc-options:         -threaded -O2

executable dynoplot
  if flag(examples)
    Buildable: True
  else
    Buildable: False
  hs-source-dirs:      examples
  main-is:             Plotter.hs
  default-language:    Haskell2010
  build-depends:       dynobud,
                       base >=4.6 && < 5,
                       containers,
                       vector,
                       cereal,
                       bytestring,
                       zeromq4-haskell,
                       cmdargs
  ghc-options:         -O2

--test-suite lp_tests
--  type: exitcode-stdio-1.0
--  hs-source-dirs:      tests
--  main-is:             OldTests.hs
--  default-language:    Haskell2010
--  build-depends:       dynobud,
--                       vector,
--                       linear,
--                       hmatrix-glpk,
--                       QuickCheck >= 2,
--                       HUnit,
--                       test-framework,
--                       test-framework-hunit,
--                       test-framework-quickcheck2,
--                       base >=4.6 && < 5
--  ghc-options:         -O2

--test-suite old-unit-tests
--  type: exitcode-stdio-1.0
--  hs-source-dirs:      tests
--  main-is:             UnitTests.hs
--  default-language:    Haskell2010
--  build-depends:       dynobud,
--                       QuickCheck >= 2,
--                       HUnit,
--                       test-framework,
--                       test-framework-hunit,
--                       test-framework-quickcheck2,
--                       hmatrix,
--                       hmatrix-glpk,
--                       vector,
--                       linear,
--                       MemoTrie,
--                       base >=4.6 && < 5
----  ghc-options:         -O2

test-suite unit-tests
  type:                exitcode-stdio-1.0
  hs-source-dirs:      tests
  main-is:             NewUnitTests.hs
  other-modules:       VectorizeTests
                       ViewTests
                       Utils
  default-language:    Haskell2010
  build-depends:       dynobud,
                       QuickCheck >= 2,
                       HUnit,
                       test-framework,
                       test-framework-hunit,
                       test-framework-quickcheck2,
                       vector,
                       linear,
                       casadi-bindings,
                       hmatrix,
                       base >=4.6 && < 5
  ghc-options:         -O2