GLPK/Julia

From Wikibooks, open books for an open world
Jump to navigation Jump to search

The GLPKMathProgInterface.jl package allows use of the GLPK from the MathProgBase.jl or JuMP.jl packages. For example:

using MathProgBase
using GLPKMathProgInterface
sol = linprog([-1,0], [2 1], '<', 1.5, GLPKSolverLP(method=:Exact, presolve=true))

The GLPK.jl module is a direct Julia wrapper for the GLPK.