summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-trust/package.py
blob: 145021ead61e7a865dc64edc3e1eb148e721c3ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *


class RTrust(RPackage):
    """Trust Region Optimization.

    Does local optimization using two derivatives and trust regions.
    Guaranteed to converge to local minimum of objective function."""

    cran = "trust"

    license("MIT")

    version("0.1-8", sha256="952e348b62aec35988b103fd152329662cb6a451538f184549252fbf49d7dcac")
    version("0.1-7", sha256="e3d15aa84a71becd2824253d4a8156bdf1ab9ac3b72ced0cd53f3bb370ac6f04")

    depends_on("r@2.10.0:", type=("build", "run"))