public class NetworkBuilder extends Object
Modifier and Type | Field and Description |
---|---|
List<Arc> |
arcList |
IntVar |
costVariable |
List<VarHandler> |
handlerList |
List<org.jacop.constraints.netflow.simplex.Node> |
nodeList |
Constructor and Description |
---|
NetworkBuilder() |
NetworkBuilder(IntVar costVariable) |
Modifier and Type | Method and Description |
---|---|
Arc |
addArc(org.jacop.constraints.netflow.simplex.Node from,
org.jacop.constraints.netflow.simplex.Node to) |
Arc |
addArc(org.jacop.constraints.netflow.simplex.Node from,
org.jacop.constraints.netflow.simplex.Node to,
int weight) |
Arc |
addArc(org.jacop.constraints.netflow.simplex.Node from,
org.jacop.constraints.netflow.simplex.Node to,
int weight,
int capacity) |
Arc |
addArc(org.jacop.constraints.netflow.simplex.Node from,
org.jacop.constraints.netflow.simplex.Node to,
int weight,
int lowerCapacity,
int upperCapacity) |
Arc |
addArc(org.jacop.constraints.netflow.simplex.Node from,
org.jacop.constraints.netflow.simplex.Node to,
int weight,
IntVar xVar) |
Arc |
addArc(org.jacop.constraints.netflow.simplex.Node from,
org.jacop.constraints.netflow.simplex.Node to,
IntVar wVar,
int lowerCapacity,
int upperCapacity) |
Arc |
addArc(org.jacop.constraints.netflow.simplex.Node from,
org.jacop.constraints.netflow.simplex.Node to,
IntVar wVar,
IntVar xVar) |
org.jacop.constraints.netflow.simplex.Node |
addNode() |
org.jacop.constraints.netflow.simplex.Node |
addNode(int balance) |
org.jacop.constraints.netflow.simplex.Node |
addNode(String name) |
org.jacop.constraints.netflow.simplex.Node |
addNode(String name,
int balance) |
NetworkFlow |
build() |
ArrayList<IntVar> |
listVariables() |
List<Constraint> |
primitiveDecomposition(Store store)
Generally speaking, especially in case of multiple arcs between
two nodes and structure constraints imposed on arcs makes it hard
to decompose network flow constraint into primitive ones.
|
void |
setCostVariable(IntVar costVariable) |
org.jacop.constraints.netflow.simplex.Node[][] |
valueGraph(IntVar[] vars,
IntDomain[] domains)
Returns two arrays containing the nodes for each variable and the nodes
for each domain, respectively.
|
public IntVar costVariable
public final List<org.jacop.constraints.netflow.simplex.Node> nodeList
public final List<VarHandler> handlerList
public NetworkBuilder()
public NetworkBuilder(IntVar costVariable)
public void setCostVariable(IntVar costVariable)
public org.jacop.constraints.netflow.simplex.Node addNode()
public org.jacop.constraints.netflow.simplex.Node addNode(int balance)
public org.jacop.constraints.netflow.simplex.Node addNode(String name)
public org.jacop.constraints.netflow.simplex.Node addNode(String name, int balance)
public Arc addArc(org.jacop.constraints.netflow.simplex.Node from, org.jacop.constraints.netflow.simplex.Node to, IntVar wVar, IntVar xVar)
public Arc addArc(org.jacop.constraints.netflow.simplex.Node from, org.jacop.constraints.netflow.simplex.Node to, int weight, IntVar xVar)
public Arc addArc(org.jacop.constraints.netflow.simplex.Node from, org.jacop.constraints.netflow.simplex.Node to, IntVar wVar, int lowerCapacity, int upperCapacity)
public Arc addArc(org.jacop.constraints.netflow.simplex.Node from, org.jacop.constraints.netflow.simplex.Node to, int weight, int lowerCapacity, int upperCapacity)
public Arc addArc(org.jacop.constraints.netflow.simplex.Node from, org.jacop.constraints.netflow.simplex.Node to, int weight, int capacity)
public Arc addArc(org.jacop.constraints.netflow.simplex.Node from, org.jacop.constraints.netflow.simplex.Node to, int weight)
public Arc addArc(org.jacop.constraints.netflow.simplex.Node from, org.jacop.constraints.netflow.simplex.Node to)
public org.jacop.constraints.netflow.simplex.Node[][] valueGraph(IntVar[] vars, IntDomain[] domains)
vars
- varibales for nodesdomains
- nodes for each variablepublic NetworkFlow build()
public List<Constraint> primitiveDecomposition(Store store)
store
- current storeCopyright © 2022. All rights reserved.