Skip to main content

A helper package to read and write GAMS GDX files

Project description

gdxtools

gdxtools currently contains two classes (gdxReader and gdxWriter) that enable rapid read and write operations of GAMS GDX files. These 'helper' classes will allow the user to interface with the GAMS python API through a more intuitive interface (enabled by python dicts). Examples are provided at https://github.com/boxblox/gdxtools.

Install

pip install gdxtools

Use

The example file that is included here shows how these classes are utilizied in reading from the 'transport_out.gdx' file with 'gdx_reader'. The example file also includes an implementation of 'gdx_writer' that creates 'transport_out_chk.gdx'. The user can use the GAMS utility 'gdxdiff' to view the differences between the original GDX file and the newly created check GDX file. At this time gdxrw does not write equations or variables into a GDX file (but it will read).

Requirements

Python 3, GAMS API (manual installation required, see: https://www.gams.com/latest/docs/API_PY_TUTORIAL.html)

An error(s) (such as the ones below) will be thrown if the GAMS API has not been installed:

"ERROR: Could not find a version that satisfies the requirement gams (from gdxtools) (from versions: none)" "ERROR: No matching distribution found for gams (from gdxtools)"

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

gdxtools-0.1.85.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

gdxtools-0.1.85-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file gdxtools-0.1.85.tar.gz.

File metadata

  • Download URL: gdxtools-0.1.85.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1.post20191125 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9

File hashes

Hashes for gdxtools-0.1.85.tar.gz
Algorithm Hash digest
SHA256 9eac436feb52ea6694b676b7c3a17069c87808826e2f8c160d5200f01d9fa167
MD5 5b8fc08aee4e8f6e58897ee0d973f604
BLAKE2b-256 4d3f592adc2ed0c1e8626470eb9c4ac80b664eb9f57e3149b499841d984ddff0

See more details on using hashes here.

File details

Details for the file gdxtools-0.1.85-py3-none-any.whl.

File metadata

  • Download URL: gdxtools-0.1.85-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1.post20191125 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9

File hashes

Hashes for gdxtools-0.1.85-py3-none-any.whl
Algorithm Hash digest
SHA256 27f728e9a6bad7f62c0216fa3e914c2c0b1eac290cb3f23dc20a1376346576fa
MD5 a7ef67dac449a451820e30db9a3b39ca
BLAKE2b-256 30f4d27d751ff2064eea3537f8f8bc3bc71dd6d33679d3e5a66b8aa1d6525b36

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