jInfer

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

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

public final class GlpkOutputParser
extends Object

Utility class for parsing the GLPK optimization result into a set of attribute mappings from the "optimal" ID set.


Method Summary
static IdSet getIDSet(String output, AMModel model)
          Parses the string representing the GLPK optimization result and returns a list of attribute mappings belonging to the "optimal" ID set.
static IdSet getIDSet(String output, AMModel model, boolean isFixed)
          Parses the string representing the GLPK optimization result and returns a list of attribute mappings belonging to the "optimal" ID set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getIDSet

public static IdSet getIDSet(String output,
                             AMModel model)
Parses the string representing the GLPK optimization result and returns a list of attribute mappings belonging to the "optimal" ID set.

Parameters:
output - String representation of the GLPK result. Basically the file that GLPK produces loaded into a string.
model - Model to which all the AMs belong.
Returns:
List of AMs belonging to the "optimal" ID set.

getIDSet

public static IdSet getIDSet(String output,
                             AMModel model,
                             boolean isFixed)
Parses the string representing the GLPK optimization result and returns a list of attribute mappings belonging to the "optimal" ID set.

Parameters:
output - String representation of the GLPK result. Basically the file that GLPK produces loaded into a string.
model - Model to which all the AMs belong.
isFixed - Flag whether there were any fixed variables. If true, optimum possibly found by GLPK is not an optimal ID set.
Returns:
List of AMs belonging to the "optimal" ID set.

jInfer

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