# GAMS

用于构建数学优化与均衡问题的代数建模系统。

> 这是 OpenNavo 上 GAMS 页面的 Markdown 版本，内容与网页相同： <https://opennavo.com/zh/apps/gams>

- **最新版本**: `54.7.0`
- **开发者**: GAMS Software GmbH
- **主页**: <https://www.gams.com/>
- **分类**: [数据分析](https://opennavo.com/zh/categories/data-analysis)
- **安装**: `brew install --cask gams`
- **近 30 天安装**: 7
- **Homebrew**: 可以安装，由 Homebrew 更新
- **下载地址**: <https://d37drm4t2jghv5.cloudfront.net/distributions/54.7.0/macosx_arm64/GAMS54.7.0.pkg>
- **SHA-256**: `53febb8fe7eeb0d721fbc5d05842e85a42e16fc307fcc859a9ea326d10749a47`
- **安装包**: GAMS54.7.0.pkg

SHA-256 只用来核对下载的文件是否完整，不代表安全认证。

## 注意事项

Installing gams means you have AGREED to the license at: https://gams.com/GAMS_EULA.pdf To use gams, you may need to add the /Library/Frameworks/GAMS.framework/Resources directory to your PATH environment variable, e.g. (for Bash shell): export PATH=/Library/Frameworks/GAMS.framework/Resources:"$PATH"

## 安装与卸载内容

```json
[
  {
    "declaration": {
      "uninstall": [
        {
          "script": {
            "executable": "/Library/Frameworks/GAMS.framework/Resources/uninstall.sh",
            "input": "y",
            "sudo": true
          }
        }
      ]
    },
    "phase": "uninstall",
    "sources": [],
    "type": "uninstall"
  },
  {
    "declaration": {
      "pkg": [
        "GAMS54.7.0.pkg",
        {
          "choices": [
            {
              "attributeSetting": 1,
              "choiceAttribute": "selected",
              "choiceIdentifier": "GAMS"
            },
            {
              "attributeSetting": 1,
              "choiceAttribute": "selected",
              "choiceIdentifier": "GAMS-Studio"
            },
            {
              "attributeSetting": 0,
              "choiceAttribute": "selected",
              "choiceIdentifier": "GAMS-Shell-Profile-Updater"
            }
          ]
        }
      ]
    },
    "phase": "install",
    "sources": [
      "GAMS54.7.0.pkg"
    ],
    "type": "pkg"
  },
  {
    "declaration": {
      "zap": []
    },
    "phase": "cleanup",
    "sources": [],
    "type": "zap"
  }
]
```

## 介绍

GAMS（General Algebraic Modeling System，通用代数建模系统）是一种用于表达数学优化与均衡问题的代数建模语言。官方网站介绍其覆盖线性、非线性、离散、随机和均衡模型，也包括大规模问题。

- 使用代数建模语言构建优化与均衡问题。
- 涵盖的模型领域包括线性、非线性、离散和随机优化，以及均衡问题。
- macOS 软件包安装器默认选择安装 GAMS 和 GAMS Studio。

使用 `brew install --cask gams` 安装。安装时须同意 GAMS 许可协议。要使用 `gams` 命令，可能需要将 `/Library/Frameworks/GAMS.framework/Resources` 添加到 `PATH`；例如，在 Bash 中可运行：`export PATH=/Library/Frameworks/GAMS.framework/Resources:"$PATH"`。

来源：[GAMS](https://www.gams.com/) · [Homebrew cask](https://raw.githubusercontent.com/Homebrew/homebrew-cask/HEAD/Casks/g/gams.rb)

## 系统要求

- 适用于 macOS 27, 26, 15, 14, 13, 12, 11 的版本 · 应用版本: 54.7.0 · Intel · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/gams.rb> · 核查于 2026-11-28
  - <https://d37drm4t2jghv5.cloudfront.net/distributions/54.7.0/macosx/GAMS54.7.0.pkg>
  - SHA-256: `53cd9119677acf9f7f3a7cab486e31f206d2f24e906688185aad190769023ac6`
- 适用于 macOS 27, 26, 15, 14, 13, 12, 11 的版本 · 应用版本: 54.7.0 · Apple 芯片 · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/gams.rb> · 核查于 2026-11-28
  - <https://d37drm4t2jghv5.cloudfront.net/distributions/54.7.0/macosx_arm64/GAMS54.7.0.pkg>
  - SHA-256: `53febb8fe7eeb0d721fbc5d05842e85a42e16fc307fcc859a9ea326d10749a47`

## 卸载

- `brew uninstall --cask gams`

普通卸载会删除应用本身，设置和缓存会保留。

## 最新版本说明

### 54.7.0 (2026-11-09)

GAMS 54.7.0 是 2026 年 11 月 9 日的次版本，面向优化建模的人，修复 Windows 安装程序的 PATH 更新，并换上更新的 CPLEX 与 Mosek 库。

**安装**

- Windows 的 PATH 在安装时更新，不必注销。
- 安装目录含空格时仍能取回许可证。

**求解器**

- CPLEX 为 22.2.0.1，Mosek 为 11.2.8。
- HiGHS 在 LP 未最优时仍保留最后一轮迭代。

## 资料与来源

- <https://opennavo.com/zh/apps/gams>
- <https://opennavo.com/zh/apps/gams/versions>
- <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/g/gams.rb> · 核查于 2026-11-28
- <https://formulae.brew.sh/cask/gams>
