ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::ReoptPolicy Concept Reference

a recompute policy: whether to compute from scratch before a repair, whether to abandon a repair while it runs (polled by the observer with its work \( w \) so far), and the record of the outcome after it More...

#include <ADS/Modification.h>

Concept definition

template< class P >
concept ReoptPolicy =
requires( P & p , const ReoptStats & s , int outcome , double w )
{
{ p.scratch( s ) } -> std::convertible_to< bool >;
{ p.abandon( s , w ) } -> std::convertible_to< bool >;
p.record( outcome , w );
}
a recompute policy: whether to compute from scratch before a repair, whether to abandon a repair whil...
Definition Modification.h:223
what a recompute policy reads: the work is a count of elementary operations of the observer (nodes,...
Definition Modification.h:208

Detailed description

a recompute policy: whether to compute from scratch before a repair, whether to abandon a repair while it runs (polled by the observer with its work \( w \) so far), and the record of the outcome after it