opencobra / cobratoolbox

The COnstraint-Based Reconstruction and Analysis Toolbox. Documentation:
https://opencobra.github.io/cobratoolbox
Other
240 stars 305 forks source link

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

Open trjhensen opened 4 months ago

trjhensen commented 4 months ago

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:

crash_dump.txt

xztJLAU commented 1 month ago

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 commented 1 week ago

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

xztJLAU commented 1 week ago

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 commented 1 week ago

IBM have decided not to release a MATLAB interface to the new version 20.1 of CPLEX. The previous version of CPLEX (12.10) can still be downloaded and used, apparently for the next 5 years. https://www.ibm.com/support/pages/downloading-ibm-ilog-cplex-optimization-studio-v12100

Please would everyone that uses CPLEX via MATLAB go to this page https://ibm-data-and-ai.ideas.aha.io/ideas/CPLEX-I-112 and request that IBM bring back the MATLAB interface?

On Sun, 23 Jun 2024 at 01:24, xztJLAU @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/opencobra/cobratoolbox/issues/2245#issuecomment-2184262891, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQMEOUUDRBRNO3HJ6LLQKTZIYISHAVCNFSM6AAAAABEE43JKCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBUGI3DEOBZGE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

--

Mr. Ronan MT Fleming B.V.M.S. Dip. Math. Ph.D.

Associate Professor, School of Medicine, University of Galway, Ireland. Coordinator of the Horizon Europe project "Reconstruction and Computational Modelling for Inherited Metabolic Diseases" (Recon4IMD https://www.recon4imd.org/)

Peer-reviewed publications: https://goo.gl/FZPG23 Mobile: +353 852 109 806 Github: @rmtfleming https://github.com/rmtfleming