Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.graph.MinCostFlow Class Reference
Inheritance diagram for com.google.ortools.graph.MinCostFlow:
com.google.ortools.graph.MinCostFlowBase

Public Member Functions

synchronized void delete ()
 
 MinCostFlow (int reserve_num_nodes, int reserve_num_arcs)
 
 MinCostFlow (int reserve_num_nodes)
 
 MinCostFlow ()
 
int addArcWithCapacityAndUnitCost (int tail, int head, long capacity, long unit_cost)
 
void setNodeSupply (int node, long supply)
 
MinCostFlowBase.Status solve ()
 
MinCostFlowBase.Status solveMaxFlowWithMinCost ()
 
long getOptimalCost ()
 
long getMaximumFlow ()
 
long getFlow (int arc)
 
int getNumNodes ()
 
int getNumArcs ()
 
int getTail (int arc)
 
int getHead (int arc)
 
long getCapacity (int arc)
 
long getSupply (int node)
 
long getUnitCost (int arc)
 
- Public Member Functions inherited from com.google.ortools.graph.MinCostFlowBase
 MinCostFlowBase ()
 

Protected Member Functions

 MinCostFlow (long cPtr, boolean cMemoryOwn)
 
void finalize ()
 
- Protected Member Functions inherited from com.google.ortools.graph.MinCostFlowBase
 MinCostFlowBase (long cPtr, boolean cMemoryOwn)
 

Static Protected Member Functions

static long getCPtr (MinCostFlow obj)
 
static long swigRelease (MinCostFlow obj)
 
- Static Protected Member Functions inherited from com.google.ortools.graph.MinCostFlowBase
static long getCPtr (MinCostFlowBase obj)
 
static long swigRelease (MinCostFlowBase obj)
 

Additional Inherited Members

- Protected Attributes inherited from com.google.ortools.graph.MinCostFlowBase
transient boolean swigCMemOwn
 

Detailed Description

Definition at line 11 of file MinCostFlow.java.

Constructor & Destructor Documentation

◆ MinCostFlow() [1/4]

com.google.ortools.graph.MinCostFlow.MinCostFlow ( long cPtr,
boolean cMemoryOwn )
protected

Definition at line 14 of file MinCostFlow.java.

◆ MinCostFlow() [2/4]

com.google.ortools.graph.MinCostFlow.MinCostFlow ( int reserve_num_nodes,
int reserve_num_arcs )

Definition at line 51 of file MinCostFlow.java.

◆ MinCostFlow() [3/4]

com.google.ortools.graph.MinCostFlow.MinCostFlow ( int reserve_num_nodes)

Definition at line 55 of file MinCostFlow.java.

◆ MinCostFlow() [4/4]

com.google.ortools.graph.MinCostFlow.MinCostFlow ( )

Definition at line 59 of file MinCostFlow.java.

Member Function Documentation

◆ addArcWithCapacityAndUnitCost()

int com.google.ortools.graph.MinCostFlow.addArcWithCapacityAndUnitCost ( int tail,
int head,
long capacity,
long unit_cost )

Definition at line 63 of file MinCostFlow.java.

◆ delete()

synchronized void com.google.ortools.graph.MinCostFlow.delete ( )

Reimplemented from com.google.ortools.graph.MinCostFlowBase.

Definition at line 40 of file MinCostFlow.java.

◆ finalize()

void com.google.ortools.graph.MinCostFlow.finalize ( )
protected

Reimplemented from com.google.ortools.graph.MinCostFlowBase.

Definition at line 36 of file MinCostFlow.java.

◆ getCapacity()

long com.google.ortools.graph.MinCostFlow.getCapacity ( int arc)

Definition at line 107 of file MinCostFlow.java.

◆ getCPtr()

static long com.google.ortools.graph.MinCostFlow.getCPtr ( MinCostFlow obj)
staticprotected

Definition at line 19 of file MinCostFlow.java.

◆ getFlow()

long com.google.ortools.graph.MinCostFlow.getFlow ( int arc)

Definition at line 87 of file MinCostFlow.java.

◆ getHead()

int com.google.ortools.graph.MinCostFlow.getHead ( int arc)

Definition at line 103 of file MinCostFlow.java.

◆ getMaximumFlow()

long com.google.ortools.graph.MinCostFlow.getMaximumFlow ( )

Definition at line 83 of file MinCostFlow.java.

◆ getNumArcs()

int com.google.ortools.graph.MinCostFlow.getNumArcs ( )

Definition at line 95 of file MinCostFlow.java.

◆ getNumNodes()

int com.google.ortools.graph.MinCostFlow.getNumNodes ( )

Definition at line 91 of file MinCostFlow.java.

◆ getOptimalCost()

long com.google.ortools.graph.MinCostFlow.getOptimalCost ( )

Definition at line 79 of file MinCostFlow.java.

◆ getSupply()

long com.google.ortools.graph.MinCostFlow.getSupply ( int node)

Definition at line 111 of file MinCostFlow.java.

◆ getTail()

int com.google.ortools.graph.MinCostFlow.getTail ( int arc)

Definition at line 99 of file MinCostFlow.java.

◆ getUnitCost()

long com.google.ortools.graph.MinCostFlow.getUnitCost ( int arc)

Definition at line 115 of file MinCostFlow.java.

◆ setNodeSupply()

void com.google.ortools.graph.MinCostFlow.setNodeSupply ( int node,
long supply )

Definition at line 67 of file MinCostFlow.java.

◆ solve()

MinCostFlowBase.Status com.google.ortools.graph.MinCostFlow.solve ( )

Definition at line 71 of file MinCostFlow.java.

◆ solveMaxFlowWithMinCost()

MinCostFlowBase.Status com.google.ortools.graph.MinCostFlow.solveMaxFlowWithMinCost ( )

Definition at line 75 of file MinCostFlow.java.

◆ swigRelease()

static long com.google.ortools.graph.MinCostFlow.swigRelease ( MinCostFlow obj)
staticprotected

Definition at line 23 of file MinCostFlow.java.


The documentation for this class was generated from the following file: