Interfacing GAMS and MATLAB - worked well in MATLAB R 2010b - Showing Errors in MATLAB R 2019a
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Cristiana da Silva Alexandre Cris
am 24 Jul. 2020
Bearbeitet: Harsha Priya Daggubati
am 27 Jul. 2020
I interfaced GAMS win64 30.2.0 software with MATLAB using the procedure read and write. The problem is in reading data. I run the GAMS program from MATLAB R 2010b. successfully. But when I wanted to run the same GAMS file from MATLAB R 2019a, using fid = fopen('matsol.gms','rt+'), it is doest not run. When I change rt+ by r+t the error persist. What caused it and how do I fix it?
0 Kommentare
Antworten (1)
Harsha Priya Daggubati
am 27 Jul. 2020
Bearbeitet: Harsha Priya Daggubati
am 27 Jul. 2020
Hi,
Since you didnot mention the error you are getting while opening the file, I assume the error is as follows:
Input command :- system 'gams trnsport lo=3 gdx=solution'
*** Error: Error writing GAMSNext: Permission denied.
You can look at the following thread, to solve the above error:
For more information about interfacing GAMS with MATLAB, this link helps:https://www.gams.com/latest/docs/T_GDXMRW.html
Hope this helps!
0 Kommentare
Siehe auch
Kategorien
Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!