在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):ojdo/gams-matlab开源软件地址(OpenSource Url):https://github.com/ojdo/gams-matlab开源编程语言(OpenSource Language):MATLAB 93.9%开源软件介绍(OpenSource Introduction):GAMS-MATLABThis repository contains a small, but helpful collction of MATLAB functions that allow reading output, writing input and transforming data to facilitate working with GAMS models. Dependencies
Installation
UsageMATLAB% read input data from any source or - for sake of an example -
% create it in MATLAB programmatically
cities = GAMS.set('cities', {'New York City' 'Los Angeles' 'Washington D.C.'})
population = GAMS.param('population', [8046 3884 659]*1e3, cities.uels);
% write both to a GDX file
GAMS.putGDX('input.gdx', cities, population); GAMS
MATLAB% after running the model using 'gams model.gmx -gdx=output.gdx'
growth = GAMS.getGDX('output.gdx', 'growth');
% plot it
bar(growth.val);
ylabel('Annual population growth (%)');
xticklabels(growth.uels{1}); % matching labels automatically
% or export to a spreadsheet
GAMS.putXLS('growth.xlsx', growth) DocumentationA pretty verbose technical documentation is hosted on ReadTheDocs, including a short syntax primer on GAMS. The three numbered folders contain accompanying code examples that range from an independent GAMS model to one that is coupled tightly to a MATLAB data handling object, providing a scaffold for one's own models. CopyrightCopyright (C) 2011-2014, 2016 Johannes Dorfner This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/ |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论