jInfer

cz.cuni.mff.ksi.jinfer.iss.heuristics.construction.glpk
Class GlpkRunner

java.lang.Object
  extended by cz.cuni.mff.ksi.jinfer.iss.heuristics.construction.glpk.GlpkRunner

public final class GlpkRunner
extends Object

Utility class for GLPK invocation.


Method Summary
static String run(AMModel model, double alpha, double beta, int timeLimit)
           
static String run(AMModel model, List<AttributeMappingId> fixed, double alpha, double beta, int timeLimit)
          Constructs the GLPK problem formulation from the provided model, runs GLPK optimalization and returns the resulting file in a string.
static String run(String inputString, int timeLimit)
          Runs GLPK optimalization on the specified input (has to be already in MathProg format) and returns the resulting file in a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

run

public static String run(AMModel model,
                         double alpha,
                         double beta,
                         int timeLimit)
                  throws InterruptedException
Throws:
InterruptedException
See Also:
run(cz.cuni.mff.ksi.jinfer.iss.objects.AMModel, java.util.List, double, double, int)

run

public static String run(AMModel model,
                         List<AttributeMappingId> fixed,
                         double alpha,
                         double beta,
                         int timeLimit)
                  throws InterruptedException
Constructs the GLPK problem formulation from the provided model, runs GLPK optimalization and returns the resulting file in a string. This can be directly displayed for verification or parsed for actual AMs appearing in the "optimal" ID set.

Parameters:
model - Model to find "optimal" ID set in.
fixed - List of attribute mappings that should be present in the solution.
alpha - Weight of the attribute mapping support in its total weight.
beta - Weight of the attribute mapping coverage in its total weight.
timeLimit - Time limit for this GLPK run in seconds.
Returns:
String representation of GLPK optimalization output.
Throws:
InterruptedException

run

public static String run(String inputString,
                         int timeLimit)
                  throws InterruptedException
Runs GLPK optimalization on the specified input (has to be already in MathProg format) and returns the resulting file in a string. This can be directly displayed for verification or parsed for actual AMs appearing in the "optimal" ID set.

Parameters:
inputString - String representation of the GLPK input in MathProg format.
timeLimit - Time limit for this GLPK run in seconds.
Returns:
String representation of GLPK optimalization output.
Throws:
InterruptedException

jInfer

Generated on Fri Dec 9 00:01:25 CET 2011