Package com.google.ortools.graph
Class LinearSumAssignment
- java.lang.Object
-
- com.google.ortools.graph.LinearSumAssignment
-
public class LinearSumAssignment extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLinearSumAssignment.Status
-
Field Summary
Fields Modifier and Type Field Description protected booleanswigCMemOwn
-
Constructor Summary
Constructors Modifier Constructor Description LinearSumAssignment()protectedLinearSumAssignment(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intaddArcWithCost(int left_node, int right_node, long cost)voiddelete()protected voidfinalize()longgetAssignmentCost(int left_node)longgetCost(int arc)protected static longgetCPtr(LinearSumAssignment obj)intgetLeftNode(int arc)intgetNumArcs()intgetNumNodes()longgetOptimalCost()intgetRightMate(int left_node)intgetRightNode(int arc)LinearSumAssignment.Statussolve()protected static longswigRelease(LinearSumAssignment obj)
-
-
-
Method Detail
-
getCPtr
protected static long getCPtr(LinearSumAssignment obj)
-
swigRelease
protected static long swigRelease(LinearSumAssignment obj)
-
finalize
protected void finalize()
- Overrides:
finalizein classjava.lang.Object
-
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
public LinearSumAssignment.Status solve()
-
getOptimalCost
public long getOptimalCost()
-
getRightMate
public int getRightMate(int left_node)
-
getAssignmentCost
public long getAssignmentCost(int left_node)
-
-