|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Arc filter for the residual networks of a floating flow, which the cycle canceling takes: an arc has residual capacity if it has more than a tolerance left. More...
#include <tpl_netcost.H>
Public Member Functions | |
| Res_Filt_With_Tolerance (typename Net::Node *) noexcept | |
| Constructor (node parameter ignored). | |
| Res_Filt_With_Tolerance () noexcept=default | |
| Default constructor. | |
| Res_Filt_With_Tolerance (const typename Net::Flow_Type &t) noexcept | |
| A filter of tolerance t. | |
| bool | operator() (typename Net::Arc *a) const noexcept |
| Check if arc has residual capacity beyond the tolerance. | |
Public Attributes | |
| Net::Flow_Type | tol {0} |
| An arc with no more than it left has no residual capacity. | |
Arc filter for the residual networks of a floating flow, which the cycle canceling takes: an arc has residual capacity if it has more than a tolerance left.
A residue of rounding of a capacity, of the order of an ulp, was the slack of negative cycles that the canceling took, each leaving such a residue for another, so that it did not end. What a mirror has left is the flow of its image (see net_detail::residual_room()): for an arc of capacity infinity or max(), cap - (cap - flow) was NaN or 0, and the canceling could not take back its flow.
| Net | Residual network type. |
Definition at line 400 of file tpl_netcost.H.
|
inlinenoexcept |
Constructor (node parameter ignored).
Definition at line 406 of file tpl_netcost.H.
|
defaultnoexcept |
Default constructor.
|
inlineexplicitnoexcept |
A filter of tolerance t.
Definition at line 412 of file tpl_netcost.H.
|
inlinenoexcept |
Check if arc has residual capacity beyond the tolerance.
| [in] | a | Arc to check. |
Definition at line 420 of file tpl_netcost.H.
References Aleph::net_detail::residual_room(), and Aleph::Res_Filt_With_Tolerance< Net >::tol.
| Net::Flow_Type Aleph::Res_Filt_With_Tolerance< Net >::tol {0} |
An arc with no more than it left has no residual capacity.
Definition at line 403 of file tpl_netcost.H.
Referenced by Aleph::Res_Filt_With_Tolerance< Net >::operator()().