This page discusses compiling linear programs algorithms written in pseudocode. This pseudocode is called SPARKS in honour of pseudocode in Horowitz and Sahni's book "Fundementals of Algorithms", which inspired it.
Our version of SPARKS and the construction of LPs is described in a paper paper by Avis, myself, Tiwary, and Watanabe.
Details of the compiler and some worked examples are givin in a followup paper. The examples can either be compiled with the compiler sparktope, or downloaded prebuilt from zenodo.org
How to run the examples
Currently we are just providing compiled LPs. You can run these using
glpsol
(part of glpk). You need
a model file (common to all inputs of a given size) and a data file
(specific to each input, e.g. specific to each graph). Both of these
files are written in the
GNU MathProg modeling language. In
our examples the model files have the extension ".gmpl" and the data
files have the extension ".dat". Once you have installed the solver and downloaded the model and data files, you can run, e.g.
glpsol -m PM4_1.gmpl -d PM4_14.dat