gamspy install#

Installs add-on solvers or a license to the GAMSPy installation.

Install License#

Installs a new license using either an access code or a license file.

Usage#

gamspy install license <access_code>|<path/to/license/file> [OPTIONS]

Option

Short

Default

Description

--uses-port

None

Interprocess communication starting port. Only relevant for local licenses that restrict concurrent use of GAMSPy.

--renew

-r

None

Specify a file path to a license file to extend a session.

--checkout-duration

-c

None

Specify a duration in hours to checkout a session.

Examples#

Install using access code:

$ gamspy install license 876e5812-1222-4aba-819d-e1e91b7e2f52

Install using license file:

$ gamspy install license /home/joe/gamslice.txt

Install Solver#

Installs one or more solvers to the GAMSPy installation.

Usage#

gamspy install solver [solver_name(s)] [OPTIONS]

Option

Short

Default

Description

--skip-pip-install

-s

False

If you already have the solver installed, skip pip install and update gamspy installed solver list.

--install-all-solvers

False

Installs all available add-on solvers.

--existing-solvers

False

Reinstalls previously installed add-on solvers.

--use-uv

False

Use uv instead of pip to install solvers.

Examples#

Install specific solvers:

$ gamspy install solver mosek conopt xpress

Install all available solvers:

$ gamspy install solver --install-all-solvers

Reinstall previously installed solvers:

$ gamspy install solver --existing-solvers

Skip pip installation:

$ gamspy install solver mosek -s