ortools.graph.python.linear_sum_assignment

class SimpleLinearSumAssignment(pybind11_builtins.pybind11_object):
SimpleLinearSumAssignment()
def add_arc_with_cost(self, left_node: int, right_node: int, cost: int) -> int:

add_arc_with_cost(self: ortools.graph.python.linear_sum_assignment.SimpleLinearSumAssignment, left_node: int, right_node: int, cost: int) -> int

def add_arcs_with_cost( self, arg0: numpy.ndarray[numpy.int32], arg1: numpy.ndarray[numpy.int32], arg2: numpy.ndarray[numpy.int64]) -> object:

add_arcs_with_cost(self: ortools.graph.python.linear_sum_assignment.SimpleLinearSumAssignment, arg0: numpy.ndarray[numpy.int32], arg1: numpy.ndarray[numpy.int32], arg2: numpy.ndarray[numpy.int64]) -> object

def num_nodes(self) -> int:
def num_arcs(self) -> int:
def left_node(self, arc: int) -> int:
def right_node(self, arc: int) -> int:
def cost(self, arc: int) -> int:
def solve(self, *args, **kwargs):

solve(self: ortools.graph.python.linear_sum_assignment.SimpleLinearSumAssignment) -> operations_research::SimpleLinearSumAssignment::Status

def optimal_cost(self) -> int:
def right_mate(self, left_node: int) -> int:
def assignment_cost(self, left_node: int) -> int:

assignment_cost(self: ortools.graph.python.linear_sum_assignment.SimpleLinearSumAssignment, left_node: int) -> int

OPTIMAL: ClassVar[SimpleLinearSumAssignment.Status] = <Status.OPTIMAL: 0>
INFEASIBLE: ClassVar[SimpleLinearSumAssignment.Status] = <Status.INFEASIBLE: 1>
POSSIBLE_OVERFLOW: ClassVar[SimpleLinearSumAssignment.Status] = <Status.POSSIBLE_OVERFLOW: 2>
class SimpleLinearSumAssignment.Status(pybind11_builtins.pybind11_object):

Members:

OPTIMAL

INFEASIBLE

POSSIBLE_OVERFLOW

SimpleLinearSumAssignment.Status(value: int)
name: str

name(self: object) -> str

OPTIMAL: ClassVar[SimpleLinearSumAssignment.Status] = <Status.OPTIMAL: 0>
INFEASIBLE: ClassVar[SimpleLinearSumAssignment.Status] = <Status.INFEASIBLE: 1>
POSSIBLE_OVERFLOW: ClassVar[SimpleLinearSumAssignment.Status] = <Status.POSSIBLE_OVERFLOW: 2>