Interfacing GAMS and MATLAB - worked well in MATLAB R 2009b - Showing Errors in MATLAB R 2013a - Reg

1 回表示 (過去 30 日間)
I interfaced GAMS win32 24.7.4 software with MATLAB using the procedure explained in youtube video. I run the GAMS program from MATLAB R 2009b. successfully. But when i wanted to run the same GAMS file from MATLAB R 2013a , it is giving error message. The error message is shown below.
Input command :- system 'gams trnsport lo=3 gdx=solution'
*** Error: Error writing GAMSNext: Permission denied.
How can I solve this problem.
  2 件のコメント
Amirhossein Moosavi
Amirhossein Moosavi 2017 年 4 月 7 日
Any solution? pls help, I have the same problem
Siva
Siva 2018 年 12 月 25 日
please see my answer for interfacing GAMS with MATLAB.

サインインしてコメントする。

採用された回答

Siva
Siva 2018 年 11 月 26 日
I have found the answer for my question on interfacing GAMS with matlab for myself. I have solved the problem of interfacing GAMS with matlab ,

その他の回答 (1 件)

Siva
Siva 2018 年 12 月 22 日
I did the following to interface 'GAMS win64 24.9' with MATLAB R2015b'.
Add GAMS directory to the matlab path.
change the matlab present working directory to GAMS system directory ( for ex, C:\GAMS\win64\24.9 ) in my system.
Type the following in the matlab command prompt.
>>system 'gams ? lo=3'
Next type the following at the matlab command prompt,
>>system 'gamslib trnsport'
(we want to run transport file from GAMS model library)
Next to execute the transport GAMS file from MATLAB, type the following
>> system 'gams trnsport lo=3 gdx=solution'
To view the results in GDX form, type
gdxWhos('solution')
or
gdxInfo('solution')
  4 件のコメント
duaa
duaa 2020 年 4 月 15 日
i have aproblem with
gdxWhos('solution')
or
gdxInfo('solution')
>> gdxWhos 'solution'
Invalid MEX-file 'E:\mat\mat\gdxWhos.mexw64': The specified module could not be found.
>> gdxInfo('solution')
Invalid MEX-file 'E:\GAMS\win64\28.2\gdxInfo.mexw64': The specified module could not be found.
what is the solution please??
Walter Roberson
Walter Roberson 2020 年 4 月 15 日
messages about module not found tend to indicate that there is a missing dll that is called by the file indicated. Sometimes you can use tools such as Dependency Walker, or Process Monitor to see what is missing. It is probably most common to end up needing to install Visual Studios Runtime
https://www.raymond.cc/blog/check-what-dll-or-ocx-dependency-files-is-needed-for-a-software/

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by