|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--mascoptCplex.algos.graph.MstLP
Constructs an Integer Linear Program for finding the weight of the Minimum Spanning Tree for a given graph. The linear program is solved using CPLEX and the object can then be queried to give the weight of the Minimum Spanning Tree.
constructLPMst| Field Summary | |
static String |
edgeId
|
static String |
edgeW
|
| Constructor Summary | |
MstLP(Graph g)
The Default constructor |
|
| Method Summary | |
void |
constructLPMst()
The main function - constructs an ILP and solves it to store the result |
int |
getMinWt()
Function for returning the weight of the MST |
void |
writeMSTLP(boolean choice,
String filename)
Allow to write the linear program solved by cplex representing the mst problem |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String edgeW
public static final String edgeId
| Constructor Detail |
public MstLP(Graph g)
g - the Graph to be used for finding the MST weight| Method Detail |
public void constructLPMst()
public int getMinWt()
public void writeMSTLP(boolean choice,
String filename)
choice - true for writting otherwise falsefilename - the name of the file to write
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||