Skip to main content

GAMS Python API

Project description



gamsapi: powerful Python toolkit to manage GAMS (i.e., sparse) data and control GAMS solves

What is it?

gamsapi is a Python package that includes submodules to control GAMS, manipulate and transfer data to/from the GAMS modeling system (through GDX files or in-memory objects). This functionality is available from a variety of different Python interfaces including standard Python scripts and Jupyter Notebooks. We strive to make it as simple as possible for users to generate, debug, customize, and ultimately use data to solve optimization problems -- all while maintaining high performance.

Main Features

Here are just a few of the things that gamsapi does well:

  • Seamlessly integrates GAMS data requirements into standard data pipelines (i.e., Pandas, Numpy)
  • Link and harmonize data sets across different symbols
  • Clean/debug data before it enters the modeling environment
  • Customize the look and feel of the data (i.e., labeling conventions)
  • Bring data to GAMS from a variety of different starting points
  • Send model output to a variety of different data endpoints (SQL, CSV, Excel, etc.)
  • Automatic data reshaping and standardization -- will work to translate your data formats into the Pandas DataFrame standard
  • Control GAMS model solves and model specification

Where to get it

The source code is currently available with any typical GAMS system. No license is needed in order to use gamsapi. A license is necessary in order to solve GAMS models.

A free demo license is available!

Dependencies

Installing gamsapi will not install any third-party dependencies, as such, it only contains basic functionality. Users should modify this base installation by choosing extras to install -- extras are described in the documentation.

# from PyPI (with extra "transfer")
pip install gamsapi[transfer]
# from PyPI (with extras "transfer" and "magic")
pip install gamsapi[transfer,magic]
# from PyPI (include all dependencies)
pip install gamsapi[all]

Documentation

The official documentation is hosted on gams.com.

Getting Help

For usage questions, the best place to go to is GAMS. General questions and discussions can also take place on the GAMS World Forum.

Discussion and Development

If you have a design request or concern, please write to support@gams.com.

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

gamsapi-46.4.1.tar.gz (868.7 kB view hashes)

Uploaded Source

Built Distributions

gamsapi-46.4.1-cp312-cp312-win_amd64.whl (1.2 MB view hashes)

Uploaded CPython 3.12 Windows x86-64

gamsapi-46.4.1-cp312-cp312-manylinux_2_17_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

gamsapi-46.4.1-cp312-cp312-macosx_13_0_arm64.whl (1.1 MB view hashes)

Uploaded CPython 3.12 macOS 13.0+ ARM64

gamsapi-46.4.1-cp312-cp312-macosx_10_15_x86_64.whl (1.1 MB view hashes)

Uploaded CPython 3.12 macOS 10.15+ x86-64

gamsapi-46.4.1-cp311-cp311-win_amd64.whl (1.2 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

gamsapi-46.4.1-cp311-cp311-manylinux_2_17_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

gamsapi-46.4.1-cp311-cp311-macosx_13_0_arm64.whl (1.1 MB view hashes)

Uploaded CPython 3.11 macOS 13.0+ ARM64

gamsapi-46.4.1-cp311-cp311-macosx_10_15_x86_64.whl (1.1 MB view hashes)

Uploaded CPython 3.11 macOS 10.15+ x86-64

gamsapi-46.4.1-cp310-cp310-win_amd64.whl (1.2 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

gamsapi-46.4.1-cp310-cp310-manylinux_2_17_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

gamsapi-46.4.1-cp310-cp310-macosx_13_0_arm64.whl (1.1 MB view hashes)

Uploaded CPython 3.10 macOS 13.0+ ARM64

gamsapi-46.4.1-cp310-cp310-macosx_10_15_x86_64.whl (1.1 MB view hashes)

Uploaded CPython 3.10 macOS 10.15+ x86-64

gamsapi-46.4.1-cp39-cp39-win_amd64.whl (1.2 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

gamsapi-46.4.1-cp39-cp39-manylinux_2_17_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

gamsapi-46.4.1-cp39-cp39-macosx_13_0_arm64.whl (1.1 MB view hashes)

Uploaded CPython 3.9 macOS 13.0+ ARM64

gamsapi-46.4.1-cp39-cp39-macosx_10_15_x86_64.whl (1.1 MB view hashes)

Uploaded CPython 3.9 macOS 10.15+ x86-64

gamsapi-46.4.1-cp38-cp38-win_amd64.whl (1.2 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

gamsapi-46.4.1-cp38-cp38-manylinux_2_17_x86_64.whl (2.5 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

gamsapi-46.4.1-cp38-cp38-macosx_13_0_arm64.whl (1.2 MB view hashes)

Uploaded CPython 3.8 macOS 13.0+ ARM64

gamsapi-46.4.1-cp38-cp38-macosx_10_15_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.8 macOS 10.15+ x86-64

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