GLPK/Cross Platform IDEs

This page lists cross-platform integrated development environments &mdash; in most cases, Windows, Mac OS X, and Linux. Not all IDEs support MathProg programming however.

jEdit
jEdit 5 is a cross-platform programming editor that supports GLPK. See this November 2012 post for more details.

Coliop project
Coliop3 is an IDE (Integrated Development Environment) for solving linear (LP) and mixed integer programming (MIP) problems. This project contains CMPL (Coliop mathematical programming language) and uses GLPK as the solver.

CMPL is a mathematical programming language for modelling linear programming (LP) problems or mixed integer programming (MIP) problems. The CMPL syntax is similar in formulation to the original mathematical model but also includes syntactic elements from modern programming languages. CMPL is intended to combine the clarity of mathematical models with the flexibility of programming languages.

Coliop3 and CMPL are projects of the Technical University of Applied Sciences Wildau and the Institute for Operations Research and Business Management at the Martin Luther University Halle-Wittenberg, both of Germany.

Coliop3 and CMPL are open source projects, licensed under GPL, and available for Linux, Mac OS X and Microsoft Windows.

Sublime Text 2
Sublime Text 2 is a powerful commercial editor for Windows, Linux and OS X. The following script defines the syntax highlighting for GNU MathProg using all of the symbols and control tokens found in the 4.47 GLPK version of MathProg. The following plist syntax definition file can simply be added to the Sublime Text 2 Packages/User directory on the host platform and then restart the Sublime editor. The syntax highlighting is defined by default for .mod and .dat files.

Syntax highlighting of parameters, variables and sets is challenging for any editor and to distinguish between params, vars and sets, a naming convention has to be used. The code below uses the following naming convention so that the parameters, variables and sets can be readily discerned.

set regexp:       [A-Z][A-Z0-9_]+     eg. SWAP_CONTRACTS      [c constant convention] params regexp:    [A-Z][A-Za-z0-9_]+  eg. DailyGenerationCost [CamelCase]

The JSON format code used to create the plist file is included below and the plist code itself can be edited to implement your own naming convention or any other changes.

To implement larger changes, the following JSON syntax file is much easier to edit than the xml plist file, but you will need the AAAPackageDev package loaded into the Sublime editor. The complete instructions for converting the JSON format file to xml plist format can be found at Sublime text 2 syntax definitions.

Build systems for checking or running GLPK can be added to Sublime Text 2 by defining a build system and adding the build definition file to the Sublime Text 2 Packages/User directory on the host platform with instructions found at Sublime Text 2 build systems. The example below implements a syntax check run of GLPK for the currently edited file on a Windows platform.

Other options
QSciTE might be a possible IDE in the future, see: http://code.google.com/p/qscite.