C++ Reference

C++ Reference: Graph

MinCostFlow

Detailed Description

Definition at line 613 of file min_cost_flow.h.

Public Types

typedef Graph::NodeIndex NodeIndex
 
typedef Graph::ArcIndex ArcIndex
 
typedef Graph::OutgoingArcIterator OutgoingArcIterator
 
typedef Graph::OutgoingOrOppositeIncomingArcIterator OutgoingOrOppositeIncomingArcIterator
 
typedef ZVector< ArcIndexArcIndexArray
 

Public Member Functions

 MinCostFlow (const StarGraph *graph)
 
const StarGraphgraph () const
 
Status status () const
 
void SetNodeSupply (NodeIndex node, FlowQuantity supply)
 
void SetArcUnitCost (ArcIndex arc, CostValue unit_cost)
 
void SetArcCapacity (ArcIndex arc, FlowQuantity new_capacity)
 
void SetArcFlow (ArcIndex arc, FlowQuantity new_flow)
 
bool Solve ()
 
bool CheckFeasibility (std::vector< NodeIndex > *const infeasible_supply_node, std::vector< NodeIndex > *const infeasible_demand_node)
 
bool MakeFeasible ()
 
CostValue GetOptimalCost () const
 
FlowQuantity Flow (ArcIndex arc) const
 
FlowQuantity Capacity (ArcIndex arc) const
 
CostValue UnitCost (ArcIndex arc) const
 
FlowQuantity Supply (NodeIndex node) const
 
FlowQuantity InitialSupply (NodeIndex node) const
 
FlowQuantity FeasibleSupply (NodeIndex node) const
 
void SetUseUpdatePrices (bool value)
 
void SetCheckFeasibility (bool value)
 

Member Typedef Documentation

◆ ArcIndex

typedef Graph::ArcIndex ArcIndex
inherited

Definition at line 329 of file min_cost_flow.h.

◆ ArcIndexArray

typedef ZVector<ArcIndex> ArcIndexArray
inherited

Definition at line 333 of file min_cost_flow.h.

◆ NodeIndex

typedef Graph::NodeIndex NodeIndex
inherited

Definition at line 328 of file min_cost_flow.h.

◆ OutgoingArcIterator

typedef Graph::OutgoingArcIterator OutgoingArcIterator
inherited

Definition at line 330 of file min_cost_flow.h.

◆ OutgoingOrOppositeIncomingArcIterator

typedef Graph::OutgoingOrOppositeIncomingArcIterator OutgoingOrOppositeIncomingArcIterator
inherited

Definition at line 332 of file min_cost_flow.h.

Constructor & Destructor Documentation

◆ MinCostFlow()

MinCostFlow ( const StarGraph graph)
inlineexplicit

Definition at line 615 of file min_cost_flow.h.

Member Function Documentation

◆ Capacity()

FlowQuantity Capacity ( ArcIndex  arc) const
inherited

◆ CheckFeasibility()

bool CheckFeasibility ( std::vector< NodeIndex > *const  infeasible_supply_node,
std::vector< NodeIndex > *const  infeasible_demand_node 
)
inherited

◆ FeasibleSupply()

FlowQuantity FeasibleSupply ( NodeIndex  node) const
inherited

◆ Flow()

FlowQuantity Flow ( ArcIndex  arc) const
inherited

◆ GetOptimalCost()

CostValue GetOptimalCost
inlineinherited

Definition at line 384 of file min_cost_flow.h.

◆ graph()

const StarGraph * graph
inlineinherited

Definition at line 341 of file min_cost_flow.h.

◆ InitialSupply()

FlowQuantity InitialSupply ( NodeIndex  node) const
inherited

◆ MakeFeasible()

bool MakeFeasible
inherited

◆ SetArcCapacity()

void SetArcCapacity ( ArcIndex  arc,
FlowQuantity  new_capacity 
)
inherited

◆ SetArcFlow()

void SetArcFlow ( ArcIndex  arc,
FlowQuantity  new_flow 
)
inherited

◆ SetArcUnitCost()

void SetArcUnitCost ( ArcIndex  arc,
CostValue  unit_cost 
)
inherited

◆ SetCheckFeasibility()

void SetCheckFeasibility ( bool  value)
inlineinherited

Definition at line 418 of file min_cost_flow.h.

◆ SetNodeSupply()

void SetNodeSupply ( NodeIndex  node,
FlowQuantity  supply 
)
inherited

◆ SetUseUpdatePrices()

void SetUseUpdatePrices ( bool  value)
inlineinherited

Definition at line 410 of file min_cost_flow.h.

◆ Solve()

bool Solve
inherited

◆ status()

Status status
inlineinherited

Definition at line 346 of file min_cost_flow.h.

◆ Supply()

FlowQuantity Supply ( NodeIndex  node) const
inherited

◆ UnitCost()

CostValue UnitCost ( ArcIndex  arc) const
inherited

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