![]() |
OR-Tools
8.2
|
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< ArcIndex > | ArcIndexArray |
enum | Status { NOT_SOLVED , OPTIMAL , FEASIBLE , INFEASIBLE , UNBALANCED , BAD_RESULT , BAD_COST_RANGE } |
Public Member Functions | |
MinCostFlow (const StarGraph *graph) | |
const StarGraph * | graph () 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) |
|
inherited |
Definition at line 329 of file min_cost_flow.h.
|
inherited |
Definition at line 333 of file min_cost_flow.h.
|
inherited |
Definition at line 328 of file min_cost_flow.h.
|
inherited |
Definition at line 330 of file min_cost_flow.h.
|
inherited |
Definition at line 332 of file min_cost_flow.h.
|
inherited |
Enumerator | |
---|---|
NOT_SOLVED | |
OPTIMAL | |
FEASIBLE | |
INFEASIBLE | |
UNBALANCED | |
BAD_RESULT | |
BAD_COST_RANGE |
Definition at line 194 of file min_cost_flow.h.
|
inlineexplicit |
Definition at line 615 of file min_cost_flow.h.
|
inherited |
Definition at line 391 of file min_cost_flow.cc.
|
inherited |
Definition at line 373 of file min_cost_flow.cc.
|
inherited |
Definition at line 407 of file min_cost_flow.cc.
|
inherited |
Definition at line 388 of file min_cost_flow.cc.
|
inlineinherited |
Definition at line 384 of file min_cost_flow.h.
|
inlineinherited |
Definition at line 341 of file min_cost_flow.h.
|
inherited |
Definition at line 401 of file min_cost_flow.cc.
|
inherited |
Definition at line 381 of file min_cost_flow.cc.
|
inherited |
Definition at line 356 of file min_cost_flow.cc.
|
inherited |
Definition at line 360 of file min_cost_flow.cc.
Definition at line 353 of file min_cost_flow.cc.
|
inlineinherited |
Definition at line 418 of file min_cost_flow.h.
|
inherited |
Definition at line 350 of file min_cost_flow.cc.
|
inlineinherited |
Definition at line 410 of file min_cost_flow.h.
|
inherited |
Definition at line 363 of file min_cost_flow.cc.
|
inlineinherited |
Definition at line 346 of file min_cost_flow.h.
|
inherited |
Definition at line 398 of file min_cost_flow.cc.
Definition at line 394 of file min_cost_flow.cc.