|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.cp.solver.constraints.global.tree.structure.internalStructure.costStrutures.CostStructure
public class CostStructure
Field Summary | |
---|---|
protected boolean |
affichecosts
boolean for debug and show a trace of the execution |
protected IStateInt[][] |
cost
cost matrix associated with the graph to partition. |
protected IStateInt[] |
deltaCost
minimum over cost induced by the outgoing arcs for each sink node of the required graph |
protected IStateInt |
forestCost
backtrackable integer that record the cost of a forest cover of the graph to partition |
protected VarGraphView |
inputGraph
data structure related to the graph representation of the input graph |
protected static Logger |
LOGGER
|
protected IStateInt[][] |
minCost
backtrackable shortest path matrix |
protected int |
nbNodes
total number of nodes involved in the graph |
protected ShortestPaths |
path
a shortest path structure of the graph to partition |
protected Solver |
solver
Choco solver embedding the tree constraint |
Constructor Summary | |
---|---|
CostStructure(Solver solver,
TreeParameters tree,
VarGraphView inputGraph)
Constructor of the costStructure |
Method Summary | |
---|---|
IStateInt[][] |
getCost()
|
IStateInt[] |
getDeltaCost()
|
IStateInt |
getForestCost()
|
IStateInt[][] |
getMinCost()
|
void |
updateCostStruct()
update the cost structure according to the current state of the graph to partition |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Logger LOGGER
protected boolean affichecosts
protected int nbNodes
protected Solver solver
protected VarGraphView inputGraph
protected ShortestPaths path
protected IStateInt[][] cost
protected IStateInt[][] minCost
protected IStateInt forestCost
protected IStateInt[] deltaCost
Constructor Detail |
---|
public CostStructure(Solver solver, TreeParameters tree, VarGraphView inputGraph)
solver
- the Choco solver who uses the current tree constrainttree
- the input data structure available in the structure.inputStructure
packageinputGraph
- data structure related to the graph representation of the input graphMethod Detail |
---|
public IStateInt[][] getCost()
public IStateInt[][] getMinCost()
public IStateInt getForestCost()
public IStateInt[] getDeltaCost()
public void updateCostStruct()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |