mindtpy will never find the path of glpk whatever I tried.

72 views
Skip to first unread message

きるみーべいべー

unread,
Jan 12, 2024, 2:58:23 PMJan 12
to Pyomo Forum
opt=SolverFactory('mindtpy').solve(model, mip_solver="glpk", nlp_solver='ipopt')


4 frames
/usr/local/lib/python3.10/dist-packages/pyomo/contrib/mindtpy/algorithm_base_class.py in check_subsolver_validity(self) 2198 """Check if the subsolvers are available and licensed.""" 2199 if not self.mip_opt.available(): -> 2200 raise ValueError(self.config.mip_solver + ' is not available.') 2201 if not self.mip_opt.license_is_valid(): 2202 raise ValueError(self.config.mip_solver + ' is not licensed.') ValueError: glpk is not available.

berna...@gmail.com

unread,
Jan 20, 2024, 10:04:35 PMJan 20
to Pyomo Forum
It seems you have not yet installed GLPK on your device. Try following this post.
Reply all
Reply to author
Forward
0 new messages