|
| | MinCostFlowObserver (const GR &g, const CM &c, const UM &u, const SM &s) |
| | the minimum cost flow of \( g \) with the costs \( c \), the upper bounds \( u \) and the supplies \( s \) (the maps below the ObservedMaps), computed at the first solve(); all must outlive it
|
| template<class V> |
| void | on (const mod::Changed< mod::Cost, int, V > &e) |
| | a cost changed, given to the arc
|
| template<class V> |
| void | on (const mod::Changed< mod::Upper, int, V > &e) |
| | an upper bound changed, given to the arc
|
| template<class V> |
| void | on (const mod::Changed< mod::Supply, int, V > &e) |
| | a supply changed, given to the node
|
| template<class K, class V> |
| void | on (const mod::Inserted< int, K, V > &) |
| | an arc or a node inserted: the algorithm is reset at the next solve
|
| template<class K, class V> |
| void | on (const mod::Erased< int, K, V > &) noexcept |
| | an arc or a node erased: the same
|
| void | on (const mod::Cleared &) noexcept |
| | the digraph cleared: the same
|
| void | on (const mod::Rebuilt &) noexcept |
| | the digraph rebuilt: the same
|
| A::ProblemType | solve (void) |
| | the flow brought up to date: run() after a reset or at the first call, runWarm() otherwise
|
| const A & | algorithm (void) const |
| | the algorithm, for its flow, its potentials and its total cost
|
template<class GR, class A = ::lemon::NetworkSimplex< GR >, class CM = typename GR::template ArcMap< typename A::Cost >, class UM = typename GR::template ArcMap< typename A::Value >, class SM = typename GR::template NodeMap< typename A::Value >>
class ADS::lemon_interop::MinCostFlowObserver< GR, A, CM, UM, SM >
a minimum cost flow of a digraph of LEMON by the algorithm A, kept up to date as an observer of the maps of its costs, upper bounds and supplies, and of the taps of its arcs and nodes
template<class GR, class A = ::lemon::NetworkSimplex< GR >, class CM = typename GR::template ArcMap< typename A::Cost >, class UM = typename GR::template ArcMap< typename A::Value >, class SM = typename GR::template NodeMap< typename A::Value >>
the minimum cost flow of \( g \) with the costs \( c \), the upper bounds \( u \) and the supplies \( s \) (the maps below the ObservedMaps), computed at the first solve(); all must outlive it
template<class GR, class A = ::lemon::NetworkSimplex< GR >, class CM = typename GR::template ArcMap< typename A::Cost >, class UM = typename GR::template ArcMap< typename A::Value >, class SM = typename GR::template NodeMap< typename A::Value >>
the algorithm, for its flow, its potentials and its total cost
template<class GR, class A = ::lemon::NetworkSimplex< GR >, class CM = typename GR::template ArcMap< typename A::Cost >, class UM = typename GR::template ArcMap< typename A::Value >, class SM = typename GR::template NodeMap< typename A::Value >>
template<class K, class V>
an arc or a node erased: the same
template<class GR, class A = ::lemon::NetworkSimplex< GR >, class CM = typename GR::template ArcMap< typename A::Cost >, class UM = typename GR::template ArcMap< typename A::Value >, class SM = typename GR::template NodeMap< typename A::Value >>
template<class K, class V>
an arc or a node inserted: the algorithm is reset at the next solve
template<class GR, class A = ::lemon::NetworkSimplex< GR >, class CM = typename GR::template ArcMap< typename A::Cost >, class UM = typename GR::template ArcMap< typename A::Value >, class SM = typename GR::template NodeMap< typename A::Value >>
the flow brought up to date: run() after a reset or at the first call, runWarm() otherwise