Skip to main content

A barebones mathematical programming package

Project description

Documentation Status PyPI Downloads Python package

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.5.tar.gz (61.3 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.5-py3-none-any.whl (68.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for gana-1.0.5.tar.gz
Algorithm Hash digest
SHA256 25a222da18306ff0d525918a80aa98a092d8616e6568b003e84d2208dc2afdd0
MD5 3bd71ca45d900c698e35c11a7420ef44
BLAKE2b-256 76a6c7f2356ee5c353a67b645437f10ec8c6a4811369fb0093c4970e88d29d35

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for gana-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c432ad9f27008de8a757c8be7c7db942c1d9340db9531b9bbebeccf7db7bddf7
MD5 6406db8ffc1c2f554d548a592b9f6180
BLAKE2b-256 55ecd0bc8a5999755a60bd86f9749ed4cfe7428334bd46122fdc9b24588858aa

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