|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectJaCoP.constraints.netflow.simplex.NetworkSimplex
JaCoP.constraints.netflow.Network
public class Network
This class extends the minimum-cost flow network by providing operations and data structures for removal and modification of arcs.
| Field Summary | |
|---|---|
long |
costOffset
Cost due to deleted arcs |
java.util.List<Arc> |
deletedArcs
List of deleted arcs (contains no duplicates) |
TimeStamp<java.lang.Integer> |
deletedSize
Number of deleted arcs at each level |
java.util.LinkedHashSet<ArcCompanion> |
lastModifiedArcs
Set of arcs modified at current level |
java.util.List<ArcCompanion> |
modifiedArcs
List of modified arcs (may contain duplicates) |
TimeStamp<java.lang.Integer> |
modifiedSize
Number of modified arcs at each level |
Store |
store
The store |
| Fields inherited from class JaCoP.constraints.netflow.simplex.NetworkSimplex |
|---|
allArcs, blocking, DEBUG, DEBUG_ALL, DELETED_ARC, infeasibleNodes, LARGE_COST, lower, nodes, numArcs, root, TREE_ARC |
| Constructor Summary | |
|---|---|
Network(java.util.List<Node> nodes,
java.util.List<Arc> arcs)
|
|
| Method Summary | |
|---|---|
void |
backtrack()
|
void |
changeCostOffset(long delta)
Changes the cost offset by some value. |
long |
cost(long cutoff)
|
int |
getStoreLevel()
Retrieves the current store level for domain pruning. |
void |
increaseLevel()
|
void |
initialize(Store store)
|
void |
modified(ArcCompanion companion)
Tells the network that an arc has been modified. |
boolean |
needsUpdate(int maxCost)
|
void |
remove(Arc arc)
Removes an arc from the network. |
| Methods inherited from class JaCoP.constraints.netflow.simplex.NetworkSimplex |
|---|
addArcWithFlow, augmentFlow, dualPivot, networkSimplex, parametricStep, primalStep, print, removeArc, treeSwap, updateTree |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final java.util.List<Arc> deletedArcs
public TimeStamp<java.lang.Integer> deletedSize
public long costOffset
public final java.util.List<ArcCompanion> modifiedArcs
public TimeStamp<java.lang.Integer> modifiedSize
public final java.util.LinkedHashSet<ArcCompanion> lastModifiedArcs
public Store store
| Constructor Detail |
|---|
public Network(java.util.List<Node> nodes,
java.util.List<Arc> arcs)
| Method Detail |
|---|
public void initialize(Store store)
public void remove(Arc arc)
MutableNetwork
remove in interface MutableNetworkarc - The arc to be removedpublic void modified(ArcCompanion companion)
MutableNetwork
modified in interface MutableNetworkcompanion - The arc that was modifiedpublic void increaseLevel()
public void backtrack()
public void changeCostOffset(long delta)
MutableNetwork
changeCostOffset in interface MutableNetworkdelta - the change in costpublic long cost(long cutoff)
cost in class NetworkSimplexpublic int getStoreLevel()
MutableNetwork
getStoreLevel in interface MutableNetworkpublic boolean needsUpdate(int maxCost)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||