LPPaver-0.0.3.1: An automated prover targeting problems that involve nonlinear real arithmetic
Copyright(c) Junaid Rasheed 2021-2022
LicenseMPL
Maintainerjrasheed178@gmail.com
Stabilityexperimental
Safe HaskellSafe-Inferred
LanguageHaskell2010

LPPaver.Constraint.Util

Description

Module defining useful utility functions for the Constraint data type.

Synopsis

Documentation

constraintVars :: [Constraint] -> [String] Source #

Get a list of all variables in a list of Constraints

constraintsToSimplexConstraints :: [Constraint] -> ([PolyConstraint], Map String Integer) Source #

Convert a list of Constraints into a list of PolyConstraints. The function returns a pair with the first item being a list of PolyConstraints and the second item being a mapping of String variables (from Constraints) to Integer variables (for PolyConstraints).