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

a solution that follows the events of weights W More...

#include <ADS/graph/Reoptimization.h>

Concept definition

template< class R , class W >
concept Reoptimizable =
GraphObserver< R , W > && requires( R & r , const GraphEvent< W > & e ,
std::span< const GraphEvent< W > > s )
{
r.apply( e );
r.apply( s );
r.solve();
{ r.outcome() } -> std::convertible_to< int >;
}
an observer of the events of weights W: the kinds that it wants, and the two ways of getting them
Definition Observable.h:298
a solution that follows the events of weights W
Definition Reoptimization.h:150
std::variant< NodeInserted, NodeDeleted, EdgeInserted< W >, EdgeDeleted< W >, WeightChanged< W > > GraphEvent
an event, whose kind is its index in the variant, the variant of GraphModifications< W >
Definition Observable.h:237

Detailed description

a solution that follows the events of weights W