Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Res_Filt_With_Tolerance< Net > Struct Template Reference

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.
 

Detailed Description

template<class Net>
struct Aleph::Res_Filt_With_Tolerance< Net >

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.

Template Parameters
NetResidual network type.

Definition at line 400 of file tpl_netcost.H.

Constructor & Destructor Documentation

◆ Res_Filt_With_Tolerance() [1/3]

template<class Net >
Aleph::Res_Filt_With_Tolerance< Net >::Res_Filt_With_Tolerance ( typename Net::Node *  )
inlinenoexcept

Constructor (node parameter ignored).

Definition at line 406 of file tpl_netcost.H.

◆ Res_Filt_With_Tolerance() [2/3]

template<class Net >
Aleph::Res_Filt_With_Tolerance< Net >::Res_Filt_With_Tolerance ( )
defaultnoexcept

Default constructor.

◆ Res_Filt_With_Tolerance() [3/3]

template<class Net >
Aleph::Res_Filt_With_Tolerance< Net >::Res_Filt_With_Tolerance ( const typename Net::Flow_Type &  t)
inlineexplicitnoexcept

A filter of tolerance t.

Definition at line 412 of file tpl_netcost.H.

Member Function Documentation

◆ operator()()

template<class Net >
bool Aleph::Res_Filt_With_Tolerance< Net >::operator() ( typename Net::Arc *  a) const
inlinenoexcept

Check if arc has residual capacity beyond the tolerance.

Parameters
[in]aArc to check.
Returns
true if what a has left, net_detail::residual_room(a), is above tol, false otherwise.

Definition at line 420 of file tpl_netcost.H.

References Aleph::net_detail::residual_room(), and Aleph::Res_Filt_With_Tolerance< Net >::tol.

Member Data Documentation

◆ tol

template<class Net >
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()().


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