opam-version: "2.0"
maintainer: "Christophe Troestler <Christophe.Troestler@umons.ac.be>"
authors: [ "Christophe Troestler <Christophe.Troestler@umons.ac.be>" ]
license: "LGPL-3.0-only with OCaml-LGPL-linking-exception"
homepage: "https://github.com/Chris00/L-BFGS-ocaml"
dev-repo: "git+https://github.com/Chris00/L-BFGS-ocaml.git"
bug-reports: "https://github.com/Chris00/L-BFGS-ocaml/issues"
doc: "https://Chris00.github.io/L-BFGS-ocaml/doc"
tags: [ "science" "numerics" "optimization" "minimization" "maximization"
        "bound-constrained" "large-scale" ]
build: [
  ["jbuilder" "subst" "-p" name] {pinned}
  ["jbuilder" "build" "-p" name "-j" jobs]
  ["jbuilder" "build" "@doc"] {with-doc}
]
depends: [
  "ocaml"
  "base-bigarray"
  "base-bytes"
  "camlp4" {build}
  "configurator" {build & < "v0.15"}
  "base" {build & < "v0.15"}
  "stdio" {build & < "v0.15"}
  "jbuilder" {>= "1.0+beta13"}
  "lacaml" {with-test}
]
depexts: [
  ["gfortran"] {os-family = "debian"}
  ["gfortran"] {os-distribution = "alpine"}
  ["gcc-gfortran"] {os-distribution = "centos"}
  ["gcc-gfortran"] {os-distribution = "fedora"}
  ["gcc-gfortran"] {os-distribution = "mageia"}
  ["gcc-gfortran"] {os-distribution = "rhel"}
  ["gcc-fortran"] {os-family = "suse"}
  ["gcc"] {os = "freebsd"}
  ["mingw64-x86_64-gcc-fortran"] {os = "cygwin"}
  ["gcc"] {os = "macos" & os-distribution = "homebrew"}
]
synopsis: "Bound-constrainted optimization in many variables"
description: """
This library provide an algorithm to minimize and maximize functions
of many variables on bounded or unbounded domains.  This is a binding
to L-BFGS-B, a library for Large-scale Bound-constrained Optimization."""
url {
  src:
    "https://github.com/Chris00/L-BFGS-ocaml/releases/download/0.9/lbfgs-0.9.tbz"
  checksum: "md5=623a563c61e7842e79675b6a073d5041"
}
