# gams-java **Repository Path**: kuzank/gams-java ## Basic Information - **Project Name**: gams-java - **Description**: 本项目参考 GAMS 的 操作文档 一步步构建,是 GAMS 数学建模技术的 Java Api 使用案例 - **Primary Language**: C - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-02-10 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # gams-java 本项目参考 [GAMS](https://www.gams.com/) 的 [操作文档](https://www.gams.com/latest/docs/API_JAVA_TUTORIAL.html) 一步步构建,是 [GAMS](https://www.gams.com/) 数学建模技术的 Java Api 使用案例。 ## 执行环境 * Window 10 * Java 8 * [Git](https://git-scm.com/) * GAMS [Installation for Windows](https://www.gams.com/latest/docs/UG_WIN_INSTALL.html) * [IntelliJ IDEA](https://www.jetbrains.com/idea/) ## GAMS 安装 - 参考 [https://www.gams.com/latest/docs/UG_WIN_INSTALL.html](https://www.gams.com/latest/docs/UG_WIN_INSTALL.html),在Window上安装 GAMS,安装是默认配置,将软件安装到 C:\GAMS\win32\30.1,并将 C:\GAMS\win32\30.1 配置到 Window 的环境变量中。 - 浏览器打开[http://www.gams.com/download](http://www.gams.com/download),填写 Request a Demo License,获取 License,然后按照 [https://www.gams.com/latest/docs/UG_WIN_INSTALL.html](https://www.gams.com/latest/docs/UG_WIN_INSTALL.html) 步骤,激活 GAMS ## IDEA 配置和运行 打开 Cmd 进入工作目录中,执行 git clone https://gitee.com/kuzan/gams-java.git 命令,获取代码,然后用 IDEA 打开目录 ### 1、打开 IDEA ![](https://tva1.sinaimg.cn/large/006tNbRwgy1gb0ihmt4ffj30li0deq2u.jpg) ### 2、选择工程目录 ![](https://tva1.sinaimg.cn/large/006tNbRwgy1gb0iienu3xj30bp0akmx1.jpg) ### 3、配置 Java 环境 ![](https://tva1.sinaimg.cn/large/006tNbRwgy1gb0iipx50wj30os0cnt8u.jpg) ### 4、将依赖的 Jar 包添加到 library 中 ![](https://tva1.sinaimg.cn/large/006tNbRwgy1gb0ijag49pj30oy0rh0tg.jpg) ### 5、执行 Java 案例 ![](https://tva1.sinaimg.cn/large/006tNbRwgy1gb0ik236auj312c0ri75b.jpg) ## 开源许可证 MIT