- Ensure that GAMS is properly installed and configured on your system. Make sure you have the correct version of GAMS that is compatible with MATLAB 2022a.
- Check if the ‘gdxdclib64.dll’ library is present in the expected location.
- If the library is missing, you may need to reinstall GAMS or repair the installation to ensure that all necessary files are present.
- If the library is present but still cannot be loaded, you might need to check your system's library search paths. Ensure that the directory containing the ‘gdxdclib64.dll’ library is included in the appropriate search path for your operating system.
GAMS Transfer Matlab problem - Error in gt_cmex_gdx_write (could not load gdxdclib64.dll)
7 次查看(过去 30 天)
显示 更早的评论
I'm trying to use the new version of GAMS Transfer Matlab (https://www.gams.com/41/docs/apis/matlab_gamstransfer/GAMSTRANSFER_MATLAB_GETSTARTED.html) in order to link GAMS with Matlab. When trying to write the GDX file, there is always this problem:
However, I have checked my GAMS folder and the file gdxdclib64.dll is in there. I have also checked that the gt_cmex_gdx_write file is in the corresponding API folder.
Does anyone know how to fix this problem? The only information I have found is related to the all way of linking Matlab and GAMS (https://www.gams.com/latest/docs/T_GDXMRW.html) that now it's being deprecated.
0 个评论
回答(1 个)
Vatsal
2023-10-17
Hi,
I understand that you are using the new version of GAMS Transfer MATLAB, and when trying to write the GDX file you are getting error “gdx init failed: could not load shared library gdxdclib64.dll: windows error”. The error message you are encountering indicates that the GDX library in GAMS is unable to load the shared library the ‘gdxdclib64.dll’.
To resolve this issue, try the following steps:
I hope this helps!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!