matt-chan / numopt

A C++ library for performing numerical optimization.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

numopt v1.6.0

Build Status

A C++ library for performing numerical optimization.

Dependencies

Boost Dependency Eigen3 Dependency cpputil Dependency

Installation

To install this library:

  1. clone the master branch, which contains the latest release:

     git clone https://github.com/GQCG/numopt.git --branch master --single-branch --recurse-submodules
     cd numopt
    
  2. perform an out-of-source cmake build:

     mkdir build && cd build
     cmake -DINSTALLATION_PREFIX=prefix ..
     make && make test && sudo make install
    

    where

    • prefix is the installation prefix (defaulted to /usr/local) you want the library to be installed at:
      • the library libnumopt.a will be installed in prefix/numopt/lib
      • the header files (and cmake files, see Usage) will be installed in prefix/numopt/include
    • if you want to use MKL Dependency as a backend for BLAS/LAPACK operations, you should add the USE_MKL option
    cmake -DINSTALLATION_PREFIX=prefix -DUSE_MKL=ON ..    
    

Usage

Basic usage of this library can be found in the tests directory. If you use CMake in other projects, you can add the following CMake command to the CMakeLists.txt-file:

find_package(numopt 1.6.0)

CMake then provides the commands numopt_INCLUDE_DIRS to be used in your target_include_directories and the library numopt to be used in your target_link_libraries.

About

A C++ library for performing numerical optimization.

License:GNU Lesser General Public License v3.0


Languages

Language:C++ 83.1%Language:CMake 14.7%Language:Python 2.0%Language:Shell 0.2%