Hi all,
Whenever I try to use the solver glpk, there is an error which says:
>> changeCobraSolver('glpk','LP')
> changeCobraSolver: Solver glpk is installed but not working properly.
ans =
logical
0
Also when I try to do the test with glpk the answer is:
>> glpktest1
LP problem
Undefined function or variable 'glpkcc'.
Error in glpk (line 508)
[xopt, fmin, status, extra] = glpkcc(c, a, b, lb, ub, ctype, vartype, sense, param);
Error in glpktest1 (line 21)
[xmin,fmin,status,extra]=glpk(c,a,b,lb,ub,ctype,vartype,s,param)
>> glpktest2
-- Integer problem --
Undefined function or variable 'glpkcc'.
Error in glpk (line 508)
[xopt, fmin, status, extra] = glpkcc(c, a, b, lb, ub, ctype, vartype, sense, param);
Error in glpktest2 (line 12)
[xmin,fmin,status,extra]=glpk(c,a,b,lb,ub,ctype,vartype,s,param)
I already reinstalled the cobratoolbox and tried to solve the problem.
I already tried to install glpkmex in matlab with following script:
>> makeglpkmex
GLPKMEX - A Matlab interface for GLPK. Script installer.
Version 2.7 compatible with GLPK 4.36 (or higher)
(C) 2001-2007, Nicolo' Giorgetti.
Maintained by Niels Klitogrd
Last updated: Dec 2009.
Do you want to use graphic installer? Y/N [Y]: Y
GLPK path... C:\Program Files\MATLAB\R2019a\toolbox\cobratoolbox-master\cobratoolbox-master\external\base\solvers\glpkmex
Error using dir
Name must be a string scalar or character vector.
Error in makeglpkmex (line 58)
d=dir(include);
I also already tried to install glpk manually, however then the same error occur in matlab.
Can someone give me an advise how to handle this problem?
Thanks for your help.
Regards,
Teresa