フィルターのクリア

GAMS Transfer Matlab problem - Error in gt_cmex_gdx_write (could not load gdxdclib64.dll)

10 ビュー (過去 30 日間)
Rosa Merchán
Rosa Merchán 2022 年 11 月 9 日
回答済み: Vatsal 2023 年 10 月 17 日
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.

回答 (1 件)

Vatsal
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:
  1. 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.
  2. Check if the ‘gdxdclib64.dll’ library is present in the expected location.
  3. If the library is missing, you may need to reinstall GAMS or repair the installation to ensure that all necessary files are present.
  4. 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.
I hope this helps!

カテゴリ

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

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by