ortools.graph.python.min_cost_flow

class SimpleMinCostFlow(pybind11_builtins.pybind11_object):
SimpleMinCostFlow()

__init__(self: SimpleMinCostFlow) -> None

def add_arc_with_capacity_and_unit_cost(self, tail: int, head: int, capacity: int, unit_cost: int) -> int:

add_arc_with_capacity_and_unit_cost(self: SimpleMinCostFlow, tail: int, head: int, capacity: int, unit_cost: int) -> int

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

add_arcs_with_capacity_and_unit_cost(self: SimpleMinCostFlow, arg0: numpy.ndarray[numpy.int32], arg1: numpy.ndarray[numpy.int32], arg2: numpy.ndarray[numpy.int64], arg3: numpy.ndarray[numpy.int64]) -> object

def set_node_supply(self, node: int, supply: int) -> None:

set_node_supply(self: SimpleMinCostFlow, node: int, supply: int) -> None

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

set_nodes_supplies(self: SimpleMinCostFlow, arg0: numpy.ndarray[numpy.int32], arg1: numpy.ndarray[numpy.int64]) -> object

def num_nodes(self) -> int:

num_nodes(self: SimpleMinCostFlow) -> int

def num_arcs(self) -> int:

num_arcs(self: SimpleMinCostFlow) -> int

def tail(self, arc: int) -> int:

tail(self: SimpleMinCostFlow, arc: int) -> int

def head(self, arc: int) -> int:

head(self: SimpleMinCostFlow, arc: int) -> int

def capacity(self, arc: int) -> int:

capacity(self: SimpleMinCostFlow, arc: int) -> int

def supply(self, node: int) -> int:

supply(self: SimpleMinCostFlow, node: int) -> int

def unit_cost(self, arc: int) -> int:

unit_cost(self: SimpleMinCostFlow, arc: int) -> int

def solve(self, *args, **kwargs):

solve(self: SimpleMinCostFlow) -> operations_research::MinCostFlowBase::Status

def solve_max_flow_with_min_cost(self, *args, **kwargs):

solve_max_flow_with_min_cost(self: SimpleMinCostFlow) -> operations_research::MinCostFlowBase::Status

def optimal_cost(self) -> int:

optimal_cost(self: SimpleMinCostFlow) -> int

def maximum_flow(self) -> int:

maximum_flow(self: SimpleMinCostFlow) -> int

def flow(self, arc: int) -> int:

flow(self: SimpleMinCostFlow, arc: int) -> int

def flows(self, arg0: numpy.ndarray[numpy.int32]) -> object:

flows(self: SimpleMinCostFlow, arg0: numpy.ndarray[numpy.int32]) -> object

BAD_COST_RANGE: ClassVar[SimpleMinCostFlow.Status] = <Status.BAD_COST_RANGE: 6>
BAD_RESULT: ClassVar[SimpleMinCostFlow.Status] = <Status.BAD_RESULT: 5>
FEASIBLE: ClassVar[SimpleMinCostFlow.Status] = <Status.FEASIBLE: 2>
INFEASIBLE: ClassVar[SimpleMinCostFlow.Status] = <Status.INFEASIBLE: 3>
NOT_SOLVED: ClassVar[SimpleMinCostFlow.Status] = <Status.NOT_SOLVED: 0>
OPTIMAL: ClassVar[SimpleMinCostFlow.Status] = <Status.OPTIMAL: 1>
UNBALANCED: ClassVar[SimpleMinCostFlow.Status] = <Status.UNBALANCED: 4>
class SimpleMinCostFlow.Status(pybind11_builtins.pybind11_object):

Members:

BAD_COST_RANGE

BAD_RESULT

FEASIBLE

INFEASIBLE

NOT_SOLVED

OPTIMAL

UNBALANCED

SimpleMinCostFlow.Status(value: int)

__init__(self: SimpleMinCostFlow.Status, value: int) -> None

name: str

name(self: handle) -> str

value: int

(arg0: SimpleMinCostFlow.Status) -> int

BAD_COST_RANGE: ClassVar[SimpleMinCostFlow.Status] = <Status.BAD_COST_RANGE: 6>
BAD_RESULT: ClassVar[SimpleMinCostFlow.Status] = <Status.BAD_RESULT: 5>
FEASIBLE: ClassVar[SimpleMinCostFlow.Status] = <Status.FEASIBLE: 2>
INFEASIBLE: ClassVar[SimpleMinCostFlow.Status] = <Status.INFEASIBLE: 3>
NOT_SOLVED: ClassVar[SimpleMinCostFlow.Status] = <Status.NOT_SOLVED: 0>
OPTIMAL: ClassVar[SimpleMinCostFlow.Status] = <Status.OPTIMAL: 1>
UNBALANCED: ClassVar[SimpleMinCostFlow.Status] = <Status.UNBALANCED: 4>