Installing glpk
brew install homebrew/science/glpk
Install AMPL
syntax highlight in your text editor.
Launch GLPK solver
glpsol --math file.mod
More example models:
https://www3.nd.edu/~jeff/mathprog/
Usage from JavaScript
https://github.com/hgourvest/node-glpk/blob/master/examples/sample.js