User Tools

Site Tools


matlab_and_gams:interfacing_optimization_and_visualization_software_via_the_gdxmrw_utilities

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
matlab_and_gams:interfacing_optimization_and_visualization_software_via_the_gdxmrw_utilities [2021/06/30 21:05]
Atharv Bhosekar [Error running gams() function in a Matlab loop]
matlab_and_gams:interfacing_optimization_and_visualization_software_via_the_gdxmrw_utilities [2021/06/30 21:06] (current)
Atharv Bhosekar [Is there anything to extract the parameter matrix (LP) from GAMS to Matlab?]
Line 65: Line 65:
 If you must, you can peek into the MEX-files for the string MSVCR to learn more.  A dependency on MSVCR110.dll is satisfied by the Microsoft Visual C++ 2012 Redistributable. ​ A dependency on MSVCR120.dll is satisfied by the Microsoft Visual C++ 2013 Redistributable. ​ At this time (Jan 2017) we don't use newer compilers, and nothing older can be actively supported. If you must, you can peek into the MEX-files for the string MSVCR to learn more.  A dependency on MSVCR110.dll is satisfied by the Microsoft Visual C++ 2012 Redistributable. ​ A dependency on MSVCR120.dll is satisfied by the Microsoft Visual C++ 2013 Redistributable. ​ At this time (Jan 2017) we don't use newer compilers, and nothing older can be actively supported.
  
- 
-====  Is there anything to extract the parameter matrix (LP) from GAMS to Matlab? ==== 
- 
-There are two ways to do that.  One way is to use the GAMS/​Convert tool to write out the LP data in GDX form: The option file ''​convert.opt''​ looks like 
-<​code>​jacobian jac.gdx </​code>​ 
- 
-and then you can use the GDXMRW utilities ​ to read the GDX data in Matlab. ​ This will be quite efficient for large data and you should get the data with full double precision. 
- 
-Another option is to use the MPECDUMP solver and the ''​matlab''​ option. ​ This dumps the data to text files that can be written in Matlab, and also writes a .m file to do it for you.  Try this by creating the option file ''​mpecdump.opt''​ with 
-<​code>​matlab xxx</​code>​ 
- 
-and run 
-<​code>​ 
-gamslib trnsport 
-gams trnsport lp mpecdump optfile 1 
-</​code>​ 
- 
-and you'll get ''​xxx.m''​ that reads lots of data into Matlab. 
  
  
IMPRESSUM / LEGAL NOTICEPRIVACY POLICY matlab_and_gams/interfacing_optimization_and_visualization_software_via_the_gdxmrw_utilities.1625079946.txt.gz ยท Last modified: 2021/06/30 21:05 by Atharv Bhosekar