gamspy#

GAMSPy comes with a command-line interface (CLI) to allow users to easily install solvers, licenses and much more. Autocompletion can be installed for the current shell with –install-completion.

Option

Short

Default

Description

--help

-h

Shows the help message

--version

-v

Shows the version of GAMSPy, GAMS and gamspy_base

--install-completion

Install completion for the current shell.

--show-completion

Show completion for the current shell, to copy it or customize the installation.

Example#

Show help message:

$ gamspy --help
Usage: gamspy [OPTIONS] COMMAND [ARGS]...

GAMSPy CLI

Options:
  -h, --help     Show this message and exit.
  -v, --version  Shows the version of GAMSPy, GAMS and gamspy_base

Commands:
  install   To install licenses and solvers.
  list      To list solvers.
  probe     To probe node information for license retrieval.
  retrieve  To retrieve a license with another node's information.
  run       To run your model with GAMS MIRO.
  show      To show your license and gamspy_base directory.
  uninstall To uninstall licenses and solvers.

Show version information:

$ gamspy --version
GAMSPy version: 1.4.0
GAMS version: 48.5.0
gamspy_base version: 48.5.0

List of Commands#