boltzmann-brain-1.4: Boltzmann sampler compiler for combinatorial systems.

Copyright(c) Maciej Bendkowski 2017-2018
LicenseBSD3
Maintainermaciej.bendkowski@tcs.uj.edu.pl
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Data.Boltzmann.System.Tuner

Description

General utilities managing the IO interface between Boltzmann Brain and the Paganini tuner script.

Synopsis

Documentation

data PSolver Source #

Paganini convex program solvers.

Constructors

SCS 
ECOS 
CVXOPT 

Instances

data PArg Source #

Paganini arguments.

Constructors

PArg 

Instances

defaultArgs :: System a -> PArg Source #

Determines default Paganini arguments. Note: It is assumed that the given system is either rational or algebraic. Otherwise, and error is raised.

writeSpecification :: System Int -> Handle -> IO () Source #

Writes the system specification into the given file handle. In paricular, to Paganini's standard input handle.

readPaganini :: System Int -> Parametrisation -> String -> IO (Either (ParseError Char Dec) (PSystem Double)) Source #

Parses the given input string as a Paganini tuning vector.

runPaganini :: System Int -> Parametrisation -> Maybe PArg -> IO (Either (ParseError Char Dec) (PSystem Double)) Source #

Communicates with Paganini and collects the respective tuning vector for the given system. If communication is not possible, for instance due to the missing Paganini script, the current process is terminated with an error message on the standard error output.

data Parametrisation Source #

Parametrisation type.

Constructors

Cummulative

Cummulative branching probabilities.

Regular

Independent probability masses.