Skip to main content

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.

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.14.tar.gz (61.9 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.14-py3-none-any.whl (69.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gana-1.0.14.tar.gz
  • Upload date:
  • Size: 61.9 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.14.tar.gz
Algorithm Hash digest
SHA256 600f4e54b4cd1ab6a35dcae7f74e26c22d10698f27b68cd887a22240fa2a7a89
MD5 c0591e1aada9d8b789ccbb77f95480ed
BLAKE2b-256 021a11f1889a2340db38a15e8625f0429bc975d4e75194de24017c9cdb0e04bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gana-1.0.14-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.14-py3-none-any.whl
Algorithm Hash digest
SHA256 b0c136158044e5f341adfd431584cb27523d4401e07cf87d44f055da94202388
MD5 4194c93c0c77182fdd43a17200310cd7
BLAKE2b-256 fe523f1f7134650af8efe0a8c865ce7dece3ea7adb6807c393980b30b7cbe0da

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.14 This release

2 files

1.0.13

2 files

1.0.12

2 files

1.0.11

2 files

1.0.10

2 files

1.0.9

2 files

1.0.8

2 files

1.0.7

2 files

1.0.6

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page