toysolver-0.6.0: Assorted decision procedures for SAT, SMT, Max-SAT, PB, MIP, etc

Copyright(c) Masahiro Sakai 20122016
LicenseBSD-style
Maintainermasahiro.sakai@gmail.com
Stabilityprovisional
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

ToySolver.Text.SDPFile

Contents

Description

References:

Synopsis

The problem type

data Problem Source #

Constructors

Problem 

Fields

Instances
Eq Problem Source # 
Instance details

Defined in ToySolver.Text.SDPFile

Methods

(==) :: Problem -> Problem -> Bool #

(/=) :: Problem -> Problem -> Bool #

Ord Problem Source # 
Instance details

Defined in ToySolver.Text.SDPFile

Show Problem Source # 
Instance details

Defined in ToySolver.Text.SDPFile

type Matrix = [Block] Source #

mDim :: Problem -> Int Source #

the number of primal variables (mDim)

nBlock :: Problem -> Int Source #

the number of blocks (nBLOCK)

The solution type

data Solution Source #

Constructors

Solution 

Fields

Instances
Eq Solution Source # 
Instance details

Defined in ToySolver.Text.SDPFile

Ord Solution Source # 
Instance details

Defined in ToySolver.Text.SDPFile

Show Solution Source # 
Instance details

Defined in ToySolver.Text.SDPFile

File I/O

readDataFile :: FilePath -> IO Problem Source #

Parse a SDPA format file (.dat) or a SDPA sparse format file (.dat-s)..

Construction

Rendering

Parsing

parseData :: String -> ByteString -> Either ParseError Problem Source #

Parse a SDPA format (.dat) string.

parseSparseData :: String -> ByteString -> Either ParseError Problem Source #

Parse a SDPA sparse format (.dat-s) string.