glpk

Linear and mixed-integer programming solver library and tools

brewmacoslinux
Try with needOr install directly
Source

About

Library for Linear and Mixed-Integer Programming

Commands

glpsol

Examples

Solve a linear programming problem from an MPS file$ glpsol --mps problem.mps -o solution.txt
Solve a problem in CPLEX LP format with simplex method$ glpsol --cpxlp model.lp --simplex -o result.txt
Solve a mixed-integer programming problem and display statistics$ glpsol --mip program.mps --output solution.sol