GLPK not found by YALMIP

52 views
Skip to first unread message

mako

unread,
Oct 3, 2021, 4:48:09 AM10/3/21
to YALMIP
YALMIP cannot invoke the GLPK solver on my MIP, as per the error message below. YALMIP is able to invoke lpsolve, intlinprog, cbc, and scip on my MIP.

>> which glpk
C:\Users\stuma\OneDrive\Documents\MATLAB\OPTI-master\Solvers\glpk.mexw64
>> smurf_e
Warning: Solver not found (glpk)

ans = 

  struct with fields:

    solvertime: 0
          info: 'Solver not found (glpk)'
       problem: -3
    yalmiptime: 0.5660


ans =

   NaN

Johan Löfberg

unread,
Oct 4, 2021, 3:47:14 AM10/4/21
to YALMIP
if memory serves me right, yalmip does not use the opti glpk interface, but some native ones

mako

unread,
Oct 4, 2021, 4:00:49 AM10/4/21
to YALMIP
The YALMIP documentation states that GLPK is interfaced through Opti Toolbox: https://yalmip.github.io/solver/glpk/

Johan Löfberg

unread,
Oct 4, 2021, 5:27:22 AM10/4/21
to YALMIP
True, appears to be incorrect. Regardless, you should not use glpk as it is pretty weak
Reply all
Reply to author
Forward
0 new messages