Skip to main content

Boltzmann sampler tuner using convex optimisation.

Project description

## Paganini: Convex optimisation tuner for combinatorial systems

```
Install: python2 setup.py install
Usage: python2 paganini.py input.txt 1e-6
Usage: python2 paganini.py input.txt CVXOPT
Usage: python2 paganini.py input.txt SCS
Usage: python2 paganini.py input.txt ECOS
```

* `input.txt` is the name of the input file
with coefficients of algebraic
specifications
* `1e-6` is a float number corresponding to precision
* `[CVXOPT, SCS, ECOS]` stand for different convex optimization solvers.
ECOS is more preferrable for algebraic systems, SCS for rational.

## Example

Consider a system for marking abstractions in lambda-terms:

```
L = z L^2 + u z L + D
D = z + z D
```

We want to have `40%` of abstractions, so we encode all the variables and
functions into a single vector `[z, u, L, D]` and construct input file
```
2 1
0.4
3
1 1 1 0
1 0 2 0
0 0 0 1
2
1 0 0 0
1 0 0 1


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

paganini-0.2955977424.tar.gz (4.3 kB view details)

Uploaded Source

Built Distributions

paganini-0.2955977424-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

paganini-0.2955977424-py2-none-any.whl (5.1 kB view details)

Uploaded Python 2

File details

Details for the file paganini-0.2955977424.tar.gz.

File metadata

File hashes

Hashes for paganini-0.2955977424.tar.gz
Algorithm Hash digest
SHA256 15f5224a627e5213df46fd8c9cf34b3b734bf5dc585e55e724d56b2d6a99c2d5
MD5 9183fc81ccc1a1111eedfd548d945f6e
BLAKE2b-256 c79263be8661205fd20474c53ca9c42fb69657ef0b8ebba298a7e0d0a8a38a95

See more details on using hashes here.

File details

Details for the file paganini-0.2955977424-py3-none-any.whl.

File metadata

File hashes

Hashes for paganini-0.2955977424-py3-none-any.whl
Algorithm Hash digest
SHA256 e7fa70b4345ed2a6b211d37ecbc5bc10764adbfa6e8c910af8186a4148afe677
MD5 08e9672762b9e12e910bb254796dbebe
BLAKE2b-256 fcd819b3757f35f0fd74c6064ab2d41ec8630f405b5bf55d7246801f6778d24c

See more details on using hashes here.

File details

Details for the file paganini-0.2955977424-py2-none-any.whl.

File metadata

File hashes

Hashes for paganini-0.2955977424-py2-none-any.whl
Algorithm Hash digest
SHA256 2f7c3dc5f7caa33aaf62e232f704b54aa2c59751c7b6649b2e983b5fbfd5c12e
MD5 c734fb0a7dc2750e8adf696dc0e0fdf7
BLAKE2b-256 1125ede40060cae1462e275ef3a14ddb9ab1e59dd6c1601379ac0459ff3b4b1a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page