Class LinearSumAssignment
java.lang.Object
com.google.ortools.graph.LinearSumAssignment
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
addArcWithCost
(int left_node, int right_node, long cost) void
delete()
protected void
finalize()
long
getAssignmentCost
(int left_node) long
getCost
(int arc) protected static long
int
getLeftNode
(int arc) int
int
long
int
getRightMate
(int left_node) int
getRightNode
(int arc) solve()
protected static long
-
Field Details
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Constructor Details
-
LinearSumAssignment
protected LinearSumAssignment(long cPtr, boolean cMemoryOwn) -
LinearSumAssignment
public LinearSumAssignment()
-
-
Method Details
-
getCPtr
-
swigRelease
-
finalize
-
delete
public void delete() -
addArcWithCost
public int addArcWithCost(int left_node, int right_node, long cost) -
getNumNodes
public int getNumNodes() -
getNumArcs
public int getNumArcs() -
getLeftNode
public int getLeftNode(int arc) -
getRightNode
public int getRightNode(int arc) -
getCost
public long getCost(int arc) -
solve
-
getOptimalCost
public long getOptimalCost() -
getRightMate
public int getRightMate(int left_node) -
getAssignmentCost
public long getAssignmentCost(int left_node)
-