Glpk is installed but I'm not able to use it

120 views
Skip to first unread message

Brittany Spanier-Marson

unread,
Nov 14, 2023, 6:59:33 PM11/14/23
to COBRA Toolbox
Hi all, 

I would like to use the glpk solver but I am not sure how to get it to work. As you can see in the system config report, glpk is installed but it is later not listed as a solver that can be used for linear programming (or any programming for that matter). The only solver listed is pdco. 

I have tried uninstalling and reinstalling the COBRA toolbox but that didn't fix the problem. I see the warning for cplex but to my knowledge that is just another solver and not relevant to my problem. 

I am working on Apple M2 Pro with Sonoma 14.0 as the MacOS. I'm also using MATLAB_R2023B. 

Thank you for any help in advance
COBRAconfigReport.log

Brittany Spanier-Marson

unread,
Nov 16, 2023, 3:44:47 PM11/16/23
to COBRA Toolbox
Hi. For anyone having a similar problem in the future. I was able to resolve this problem by using an older version of MATLAB. 

It says on COBRA's installation page: 
"After the latest release (version b), it may be a couple of months before certain methods with dependencies on other software become compatible. For example, the latest releases of MATLAB may not be compatible with the existing solver interfaces, necessitating an update of the MATLAB interface provided by the solver developers, or an update of the COBRA Toolbox, or both." 

So just keep this in mind. Best of luck! 

Reply all
Reply to author
Forward
0 new messages