public abstract class LPBasedAlgorithm<R> extends GrphAlgorithm<R>
Modifier and Type | Field and Description |
---|---|
static boolean |
SHOW_LP |
static boolean |
SHOW_SOL |
Constructor and Description |
---|
LPBasedAlgorithm() |
Modifier and Type | Method and Description |
---|---|
R |
compute(Grph g) |
protected jalinopt.Result |
computeResult(Grph g) |
protected abstract jalinopt.LP |
getLP(Grph g) |
jalinopt.LPSolver |
getSolver()
Gets the LP solver that will be used to compute the algorithm.
|
protected abstract R |
processResult(jalinopt.Result result) |
cacheResultForGraph, getSourceCode
protected abstract jalinopt.LP getLP(Grph g)
protected abstract R processResult(jalinopt.Result result)
public R compute(Grph g)
compute
in class GrphAlgorithm<R>
protected jalinopt.Result computeResult(Grph g)
public jalinopt.LPSolver getSolver()