The CONEstrip library
This repository contains a Python framework for reasoning with uncertainty. This is joint work with Erik Quaeghebeur. N.B. This is ongoing work, so not everything is finished yet.
The CONEstrip algorithm
In the paper The CONEstrip algorithm (SMPS 2012), an algorithm is defined that determines whether a finitely generated general convex cone contains the origin.
Uncertainty models such as sets of desirable gambles and (conditional) lower previsions can be represented as convex cones. Checking the consistency of and drawing inferences from such models requires solving feasibility and optimization problems. We consider finitely generated such models. For closed cones, we can use linear programming; for conditional lower prevision-based cones, there is an efficient algorithm using an iteration of linear programs. We present an efficient algorithm for general cones that also uses an iteration of linear programs.
The Propositional CONEstrip algorithm
In the paper A propositional CONEstrip algorithm (IPMU 2014) a generalization of the CONEstrip algorithm is presented.
We present a variant of the CONEstrip algorithm for checking whether the origin lies in a finitely generated convex cone that can be open, closed, or neither. This variant is designed to deal efficiently with problems where the rays defining the cone are specified as linear combinations of propositional sentences. The variant differs from the original algorithm in that we apply row generation techniques. The generator problem is WPMaxSAT, an optimization variant of SAT; both can be solved with specialized solvers or integer linear programming techniques. We additionally show how optimization problems over the cone can be solved by using our propositional CONEstrip algorithm as a preprocessor. The algorithm is designed to support consistency and inference computations within the theory of sets of desirable gambles. We also make a link to similar computations in probabilistic logic, conditional probability assessments, and imprecise probability theory.
Implementation
In the CONEstrip algorithm several linear programming problems need to be solved. This has been implemented using Z3. Note that it is also possible to solve them with a library like cddlib.
The propositional CONEstrip algorithm is defined in terms of WPMaxSAT problems. We note that WPMaxSAT problems can be conveniently expressed using the propositional logic of Z3. Hence, also this algorithm has been implemented using Z3.
Documentation
A detailed specification of the implementation can be found in CONEstrip.pdf. Note that this is not a tutorial, but rather a precise description of the algorithms that were implemented.
Installation
The code is available as the PyPI package CONEstrip. It can be installed using
pip install CONEstrip
Licensing
The code is available under the Boost Software License 1.0. A local copy is included in the repository.
For testing the Toy Parser Generator package is used. This package is available under the GNU Lesser General Public License v2.1 license. A local copy is included in the repository.
Metadata
Release files for CONEstrip 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| CONEstrip-0.1.1.tar.gz | 25.1 kB | Without provenance | Details for CONEstrip-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| CONEstrip-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for CONEstrip-0.1.1-py3-none-any.whl |
Total release size: 53.2 kB
Release files / CONEstrip-0.1.1.tar.gz
| Download URL | CONEstrip-0.1.1.tar.gz |
|---|---|
| Size | 25.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac57b04fd299cc298f1f090c7d5db35f5e5605805c0cafe2ef5ef3fa36b24562
|
|
BLAKE2b-256 checksum How to use checksums |
449afb7ac1305dfa0738dbc56527dadb4b5ef852bf15d716fded05daf1ec6672
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / CONEstrip-0.1.1-py3-none-any.whl
| Download URL | CONEstrip-0.1.1-py3-none-any.whl |
|---|---|
| Size | 28.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d99e1e12f01d9d438a7a5a0d55abe97d981decc09f6175d759c4111792ccad78
|
|
BLAKE2b-256 checksum How to use checksums |
87589e43806ad25da5623648151c473cc6c1c9d88bf1bd1f30a516945f548df1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Security for CONEstrip 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.