Skip to main content

A barebones mathematical programming package

Project description

Documentation Status PyPI Downloads Python package PyPI - Python Version

Gana is an Algebraic Modeling Language (AML) for Multiscale Modeling and Optimization. Generated programs (Prg) can be subclasses of Multiparametric Mixed Integer Linear Programming (mpMILP).

Features

Gana supports:

  • mutable elements, allowing constraints/functions to be updated dynamically
  • multiparametric as well as mixed integer programming
  • formulation in both matrix form and set-based mathematical program

Moreover, Gana uses a simple format to write constraints/functions.

Elements

Programs in Gana are written using element sets, namely:

  1. I - index
  2. V - variable
  3. P - parameter
  4. T - parametric variable

Solvers

The list of natively supported solvers are:

  1. PPOPT for multiparametric programming (mp)
  2. Gurobi for Mixed Integer Programming (MIP) Programs can, however, be exported as a .mps or .lp file and passed to most solvers.

Illustration

Gana is best run in Jupyter as notebook (.ipynb) files, where programs can be visualized as canonical mathematical programs using set-notation.

Additionally, matrices can be exported.

Purpose

Gana was developed to enable certain functionalities in energia (py). Both were developed as PhD projects and have ample room for improvement. So please reach out to me on cacodcar@gmail.com with suggestions and such.

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

gana-1.0.12.tar.gz (61.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gana-1.0.12-py3-none-any.whl (69.2 kB view details)

Uploaded Python 3

File details

Details for the file gana-1.0.12.tar.gz.

File metadata

  • Download URL: gana-1.0.12.tar.gz
  • Upload date:
  • Size: 61.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for gana-1.0.12.tar.gz
Algorithm Hash digest
SHA256 10b9d24e43e765c9a9015957f27119371d00d9626364aff29b825083290ef4b1
MD5 a36c8c49cc9f9a69b5274969bd5d6254
BLAKE2b-256 a1990d58f1b7a40f5c19cc5bdade6fef4a73862b37395591007720d4a088d6a4

See more details on using hashes here.

File details

Details for the file gana-1.0.12-py3-none-any.whl.

File metadata

  • Download URL: gana-1.0.12-py3-none-any.whl
  • Upload date:
  • Size: 69.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for gana-1.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 4eeddcff7fa24fb0af987c122d8b7b7063488b63524adaf79ad80da7bb5b9461
MD5 7252e4c20cc92bdc2dea44f64fbcff0d
BLAKE2b-256 8f13b73ed77fb10c3a3d7a4b8f587b99d73f1a163b889bf5bd287da044390425

See more details on using hashes here.

Supported by

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