Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cobratoolbox crashes during initialisation on windows 10 (Matlab 2022b) #2245

Open
3 tasks done
trjhensen opened this issue Mar 4, 2024 · 4 comments
Open
3 tasks done

Comments

@trjhensen
Copy link
Contributor

trjhensen commented Mar 4, 2024

Please include a short description of problem here

Hi all, when I try to initialise the cobratoolbox on my desktop with "initCobraToolbox", my Matlab instance crashes. The following error was found "Access violation detected at 2024-03-04 09:38:49 +0000". I attached a MATLAB Log File to this issue that should provide a detailed overview on my current system and the error. Note that I have IBM cplex 12.10 installed and connected to my Matlab installation. I confirmed that I am on the latest version of the master branch. Let me know if there is anything wrong with my installation or if you need more information to solve the problem.

Thank you for your help.

Best regards,
Tim

I hereby confirm that I have:

  • Tried to solve the issue on my own
  • Retried to run my code with the latest version of The COBRA Toolbox
  • Checked that a similar issue has not already been opened

crash_dump.txt

@xztJLAU
Copy link

xztJLAU commented Jun 3, 2024

Hellow friend,i had a same problem ,i think it's GCC/G++ not find,because final message in crash_dump.txt is :detected while a MEX-file was running. Matlab need GCC/G++ to compile and execute .mexw64,which in cobratoolbox\binary\win64\bin .Maybe we can install Mingw64 or TDM-GCC and add it to path,then use:mex -setup -v to find them.Don't forget use a path without "Space"(such as C:\TDM-GCC-64),otherwise, MATLAB does not recognize the path(such as C:\Program Files (x86)\Mingw64,because Program Files (x86) has a "Space")

@francismore1
Copy link

Please how do I activate CPLEX as my solver on MATLAB? I am so lost trying to do this

@xztJLAU
Copy link

xztJLAU commented Jun 23, 2024

Please how do I activate CPLEX as my solver on MATLAB? I am so lost trying to do this
Hi,firend.Please install CPLEX 12.10 and include the matlab folder in into the matlab path(C:\Program Files\IBM\ILOG\CPLEX_Studio1210\cplex), the directory I provided is the default installation location, the new version does not support matlab,Don't forget to get an academic license

@rmtfleming
Copy link
Member

rmtfleming commented Jun 25, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants