Skip to content

cbehan/sdpb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SDPB

SDPB is an open-source, arbitrary-precision, parallelized semidefinite program solver, designed for the conformal bootstrap.

It solves the following type of optimization problem

maximize:  b_0 + \sum_n b_n y_n over (y_1,...,y_N),

such that: M_{0j}(x) + \sum_n y_n M_{nj}(x) is positive semidefinite
           for all x >= 0 and 1 <= j <= J,

where each M_{nj}(x) is a polynomial matrix in x.

For more information, see A Semidefinite Program Solver for the Conformal Bootstrap and the manual.

Installation and Requirements

SDPB requires

System-specific installation instructions are below. Please use the issue tracker if you encounter installation problems. For those with experience packaging software, I'd appreciate help making SDPB easier to install.

Linux Installation

SDPB has been tested on Red Hat Linux. (Many thanks to Chris Beem for helping with installation instructions.) To install,

  1. Download Boost and GMP from the links above. Install GMP with the option --enable-cxx added to ./configure. Install Boost.

  2. Edit the Makefile to define the variables GMPINCLUDEDIR, BOOSTINCLUDEDIR, and LIBDIR. Ensure LIBDIR is in your LD_LIBRARY_PATH.

  3. Type make to build the sdpb executable.

Mac OS X Installation

The following instructions have been tested on Mac OS 10.10 Yosemite. (Many thanks to Ying Lin.)

  1. Install Homebrew and gcc-4.9 (or later), for instance by running the following commands

     # Install Homebrew
     ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    
     # Update Ruby
     brew install ruby
    
     # Install the latest gcc as well as its dependencies
     # the option --without-multilib avoids a bug in OpenMP support
     brew install gcc --without-multilib
    
  2. Make /usr/local/bin/g++-4.9 (or whatever version you have) the default compiler by renaming gcc and g++ in /usr/bin and creating symlinks

     ln -s /usr/local/bin/g++-4.9 /usr/local/bin/g++
     ln -s /usr/local/bin/gcc-4.9 /usr/local/bin/gcc
    
  3. Unfortunately, Homebrew's versions of GMP and Boost will not work -- they must be compiled from source. Download the latest GMP from the GMP website. Upack the tarball (you may need lzip which you can install with brew install lzip) and cd to the gmp directory. Run

     ./configure --enable-cxx
     make
     make install
    
  4. Download Boost from the Boost website. Unpack the tarball and cd to the boost directory. Run

     ./bootstrap.sh
     ./b2
     sudo ./b2 install
    
  5. SDPB should now compile successfully. If you installed any of the above software in custom locations, you must modify variables in the Makefile as described in the Linux instructions.

Windows Installation

Tips for Windows installation can be found on the issue tracker. I would appreciate if someone could send step-by-step instructions.

Usage

Type sdpb --help for the syntax and a list of options.

The input format for SDPB is XML-based and described in the manual. The Mathematica file SDPB.m includes code to export semidefinite programs in this format, along with some examples.

Changelog

  • 5/29/15: Fixed a bug in SDP.cpp that caused SDPB to incorrectly load matrices with dimensions larger than 2x2. (Thanks to Filip Kos for the fix.)

Author

As of February 2015, I am supported by DOE grant number DE-SC0009988 and a William D. Loughlin Membership at the Institute for Advanced Study.

Attribution

If you use SDPB in work that results in publication, please cite

Depending on how SDPB is used, please also consider the following sources:

The first use of semidefinite programming in the bootstrap:

  • D. Poland, D. Simmons-Duffin and A. Vichi, "Carving Out the Space of 4D CFTs," JHEP 1205, 110 (2012) arXiv:1109.5176 [hep-th].

The generalization of semidefinite programming methods to arbitrary spacetime dimension:

  • F. Kos, D. Poland and D. Simmons-Duffin, "Bootstrapping the O(N) Vector Models," JHEP 1406, 091 (2014) arXiv:1307.6856 [hep-th].

The generalization of semidefinite programming methods to arbitrary systems of correlation functions:

  • F. Kos, D. Poland and D. Simmons-Duffin, "Bootstrapping Mixed Correlators in the 3D Ising Model," arXiv:1406.4858 [hep-th].

Acknowledgements

  • SDPB Makes extensive use of MPACK, the multiple precision linear algebra library written by Nakata Maho. Several source files from MPACK are included in the SDPB source tree (see the license at the top of those files).

  • SDPB uses Lee Thomason's tinyxml2 library (included in the source tree) for parsing.

  • The design of SDPB was partially based on the solvers SDPA and SDPA-GMP, which were essential sources of inspiration and examples.

  • Thanks to Filip Kos, David Poland, and Alessandro Vichi for collaboration in developing semidefinite programming methods for the conformal bootstrap and assistance testing SDPB.

  • Thanks to Amir Ali Ahmadi, Hande Benson, Pablo Parrilo, and Robert Vanderbei for advice and discussions about semidefinite programming.

  • Thanks also to Noah Stein, who first suggested the idea of semidefinite programming to me in this Math Overflow question.

About

A semidefinite program solver for the conformal bootstrap.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 95.4%
  • C 2.2%
  • Mathematica 2.1%
  • Makefile 0.3%