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

Public Member Functions

 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 OptimalCost ()
 
long MaximumFlow ()
 
long Flow (int arc)
 
int NumNodes ()
 
int NumArcs ()
 
int Tail (int arc)
 
int Head (int arc)
 
long Capacity (int arc)
 
long Supply (int node)
 
long UnitCost (int arc)
 
- Public Member Functions inherited from Google.OrTools.Graph.MinCostFlowBase
void Dispose ()
 
 MinCostFlowBase ()
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from Google.OrTools.Graph.MinCostFlowBase

Additional Inherited Members

- Public Types inherited from Google.OrTools.Graph.MinCostFlowBase
enum  Status {
  NOT_SOLVED , OPTIMAL , FEASIBLE , INFEASIBLE ,
  UNBALANCED , BAD_RESULT , BAD_COST_RANGE
}
 
- Protected Attributes inherited from Google.OrTools.Graph.MinCostFlowBase
bool swigCMemOwn
 
- Package Functions inherited from Google.OrTools.Graph.MinCostFlowBase
- Static Package Functions inherited from Google.OrTools.Graph.MinCostFlowBase

Detailed Description

Definition at line 15 of file MinCostFlow.cs.

Constructor & Destructor Documentation

◆ MinCostFlow() [1/3]

Google.OrTools.Graph.MinCostFlow.MinCostFlow ( int reserve_num_nodes,
int reserve_num_arcs )
inline

Definition at line 52 of file MinCostFlow.cs.

◆ MinCostFlow() [2/3]

Google.OrTools.Graph.MinCostFlow.MinCostFlow ( int reserve_num_nodes)
inline

Definition at line 55 of file MinCostFlow.cs.

◆ MinCostFlow() [3/3]

Google.OrTools.Graph.MinCostFlow.MinCostFlow ( )
inline

Definition at line 58 of file MinCostFlow.cs.

Member Function Documentation

◆ AddArcWithCapacityAndUnitCost()

int Google.OrTools.Graph.MinCostFlow.AddArcWithCapacityAndUnitCost ( int tail,
int head,
long capacity,
long unit_cost )
inline

Definition at line 61 of file MinCostFlow.cs.

◆ Capacity()

long Google.OrTools.Graph.MinCostFlow.Capacity ( int arc)
inline

Definition at line 115 of file MinCostFlow.cs.

◆ Dispose()

override void Google.OrTools.Graph.MinCostFlow.Dispose ( bool disposing)
inlineprotectedvirtual

Reimplemented from Google.OrTools.Graph.MinCostFlowBase.

Definition at line 39 of file MinCostFlow.cs.

◆ Flow()

long Google.OrTools.Graph.MinCostFlow.Flow ( int arc)
inline

Definition at line 90 of file MinCostFlow.cs.

◆ Head()

int Google.OrTools.Graph.MinCostFlow.Head ( int arc)
inline

Definition at line 110 of file MinCostFlow.cs.

◆ MaximumFlow()

long Google.OrTools.Graph.MinCostFlow.MaximumFlow ( )
inline

Definition at line 85 of file MinCostFlow.cs.

◆ NumArcs()

int Google.OrTools.Graph.MinCostFlow.NumArcs ( )
inline

Definition at line 100 of file MinCostFlow.cs.

◆ NumNodes()

int Google.OrTools.Graph.MinCostFlow.NumNodes ( )
inline

Definition at line 95 of file MinCostFlow.cs.

◆ OptimalCost()

long Google.OrTools.Graph.MinCostFlow.OptimalCost ( )
inline

Definition at line 80 of file MinCostFlow.cs.

◆ SetNodeSupply()

void Google.OrTools.Graph.MinCostFlow.SetNodeSupply ( int node,
long supply )
inline

Definition at line 66 of file MinCostFlow.cs.

◆ Solve()

MinCostFlowBase.Status Google.OrTools.Graph.MinCostFlow.Solve ( )
inline

Definition at line 70 of file MinCostFlow.cs.

◆ SolveMaxFlowWithMinCost()

MinCostFlowBase.Status Google.OrTools.Graph.MinCostFlow.SolveMaxFlowWithMinCost ( )
inline

Definition at line 75 of file MinCostFlow.cs.

◆ Supply()

long Google.OrTools.Graph.MinCostFlow.Supply ( int node)
inline

Definition at line 120 of file MinCostFlow.cs.

◆ Tail()

int Google.OrTools.Graph.MinCostFlow.Tail ( int arc)
inline

Definition at line 105 of file MinCostFlow.cs.

◆ UnitCost()

long Google.OrTools.Graph.MinCostFlow.UnitCost ( int arc)
inline

Definition at line 125 of file MinCostFlow.cs.


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