|
||||||||||
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.inputStructure.TreeParameters
public class TreeParameters
Field Summary | |
---|---|
protected int |
nbNodes
total number of nodes involved in the graph |
protected Node[] |
nodes
table of nodes involved in the graphs composing a tree constraint |
protected IntDomainVar |
nproper
an integer variable that depicts the number of proper tree allowed to partition the graph |
protected IntDomainVar |
ntree
an integer variable that depicts the number of tree allowed to partition the graph |
protected IntDomainVar |
objective
a bounded variable that depicts the total cost of the partition |
protected Solver |
solver
Choco solver embedding the tree constraint |
protected IStateInt[][] |
travelTime
the travel time matrix |
Constructor Summary | |
---|---|
TreeParameters(Solver solver,
int nbNodes,
IntDomainVar ntree,
IntDomainVar nproper,
IntDomainVar objective,
List<BitSet[]> graphs,
List<int[][]> matrix,
int[][] travel)
constructor: build the input data of a tree constraint. |
|
TreeParameters(Solver solver,
int nbNodes,
IntDomainVar ntree,
IntDomainVar nproper,
IntDomainVar objective,
Node[] nodes,
int[][] travel)
constructor: build the input data of a tree constraint. |
Method Summary | |
---|---|
IntDomainVar[] |
getAllVars()
build a table of all the integer variables involved in a tree constraint |
int |
getNbNodes()
|
Node[] |
getNodes()
the table of all the nodes object that compose the input structure TreeParameters
of a tree constraint |
IntDomainVar |
getNproper()
|
IntDomainVar |
getNtree()
|
IntDomainVar |
getObjective()
|
Solver |
getSolver()
|
IntDomainVar[] |
getSuccVars()
build a table of all the successor variables that depict the graph to partition |
IStateInt[][] |
getTravelTime()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Solver solver
protected int nbNodes
protected Node[] nodes
protected IntDomainVar ntree
protected IntDomainVar nproper
protected IntDomainVar objective
protected IStateInt[][] travelTime
Constructor Detail |
---|
public TreeParameters(Solver solver, int nbNodes, IntDomainVar ntree, IntDomainVar nproper, IntDomainVar objective, List<BitSet[]> graphs, List<int[][]> matrix, int[][] travel) throws ContradictionException
solver
- the Choco problem who uses the current tree constraintnbNodes
- the total number of nodes involved in the different graphsntree
- an integer variable that depicts the number of tree allowed to partition the graphnproper
- an integer variable that depicts the number of proper tree allowed to partition the graphobjective
- a bounded variable that depicts the total cost of the partitiongraphs
- a list of graphs: [0] the graph to partition, [1] the precedence graph,
[2] the conditional precedence graph and [3] the incomparability graphmatrix
- a list of integer matrix: [0] the indegree of each node
and [1] the starting time from each nodetravel
- the travel time matrix
ContradictionException
public TreeParameters(Solver solver, int nbNodes, IntDomainVar ntree, IntDomainVar nproper, IntDomainVar objective, Node[] nodes, int[][] travel)
solver
- the Choco solver who uses the current tree constraintnbNodes
- the total number of nodes involved in the different graphsntree
- an integer variable that depicts the number of tree allowed to partition the graphnproper
- an integer variable that depicts the number of proper tree allowed to partition the graphobjective
- a bounded variable that depicts the total cost of the partitionnodes
- the nodes and its attributestravel
- the travel time matrix
ContradictionException
Method Detail |
---|
public IntDomainVar[] getAllVars()
public IntDomainVar[] getSuccVars()
public Solver getSolver()
public int getNbNodes()
public Node[] getNodes()
TreeParameters
of a tree constraint
public IntDomainVar getNtree()
public IntDomainVar getNproper()
public IntDomainVar getObjective()
public IStateInt[][] getTravelTime()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |