I have just downloaded Pyomo and was able to solve optimization problems using the Neos solvers.
pyomo solve --solver=glpk diet1.py diet.dat
I get the following errors:
C:\Users\john\Home\RnD\src\Python\PyomoWorx>pyomo solve --solver=glpk diet1.py diet.dat
[ 0.00] Setting up Pyomo environment
[ 0.00] Applying Pyomo preprocessing actions
[ 0.02] Creating model
[ 0.08] Applying solver
WARNING: "[base]\site-packages\pyomo\solvers\plugins\solvers\GLPK_old.py", 68, executable
Could not locate the 'glpsol' executable, which is required for solver 'glpk'
[ 0.09] Pyomo Finished
ERROR: Unexpected exception while running model:
No executable found for solver 'glpk'
I have installed the the glpk packages using the winglpk from the url: http://winglpk.sourceforge.net/
I have also added the executables (which exist in the subdirectory w64) to the PATH.
In particular, I have added "C:\Packages\winglpk-4.55\glpk-4.55\w64\" to the PATH.
Any suggestions/advice which will help me to use glpk solver will be appreciated.
Many thanks!