![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
Matching(model, name): a stochastic matching node under the first-come-first-matched (FCFM) policy of Comte (2022). More...
#include <line/lang/qn/nodes.h>
Public Member Functions | |
| Matching (NetworkModel &m, const std::string &nm) | |
| void | set_compatibility (std::size_t a, std::size_t b, bool value=true) |
| setCompatibility(class1, class2): one undirected edge of the graph. | |
| void | set_compatibility (const Matrix< double > &G) |
| setCompatibility(G): the whole R x R graph, symmetric with a zero diagonal. | |
| Matrix< double > | get_compatibility () const |
| getCompatibility(): the R x R 0/1 compatibility graph. | |
| void | set_patience (std::size_t cls, const Dist &d) |
| setPatience(class, distribution): a Markovian reneging law for a waiting job. | |
| void | set_service (std::size_t cls, const Dist &d) |
| A Matching node has no service time: always refused. | |
| Public Member Functions inherited from line::Station | |
| void | set_service (std::size_t cls, const Dist &d) |
| setService(class, distribution). | |
| void | set_number_of_servers (double n) |
| setNumberOfServers(n). | |
| void | set_capacity (double k) |
| setCapacity(k), the K of Kendall's notation. | |
| void | set_class_capacity (std::size_t cls, double k) |
| setClassCapacity(class, k). | |
| void | set_drop_rule (std::size_t cls, lang::DropStrategy rule) |
| setDropRule(class, rule). | |
| void | set_sched_param (std::size_t cls, double weight) |
| setSchedParam(class, weight): the DPS/GPS share. | |
| void | set_load_dependence (const std::vector< double > &alpha) |
| setLoadDependence(alpha). | |
| void | set_polling_type (lang::PollingType rule, int par=0) |
| setPollingType(type, k). | |
| void | set_polling_table (const std::vector< std::size_t > &table, const std::vector< Dist > &swlegs=std::vector< Dist >()) |
| setPollingTable(table, swlegs). | |
| void | set_polling_order (lang::PollingOrder order, std::size_t prioclass=0, long threshold=-1) |
| setPollingOrder(order, prioclass, L). | |
| void | set_polling_timer (const Dist &d, lang::PollingTimer scope=lang::PollingTimer::LOCAL, bool preemptive=false) |
| setPollingTimer(dist, scope, preemptive), one law for every class. | |
| void | set_polling_timer (const std::vector< Dist > &d, lang::PollingTimer scope=lang::PollingTimer::LOCAL, bool preemptive=false) |
| setPollingTimer({d_1..d_R}, scope, preemptive). | |
| void | set_switchover (std::size_t cls, const Dist &so) |
| setSwitchover(class, distribution). | |
| void | set_switchover (std::size_t from_cls, std::size_t to_cls, const Dist &so) |
| setSwitchover(fromClass, toClass, distribution). | |
| void | set_breakdown (const Dist &failure, const Dist &repair) |
| setBreakdown(failure, repair). | |
| void | add_server_type (const qn::Station< double >::ServerType &stype) |
| addServerType(type): one pool of a heterogeneous station. | |
| std::size_t | get_station_index () const |
| getStationIndex(): the 1-based station index, distinct from the node one. | |
| Public Member Functions inherited from line::Node | |
| std::size_t | get_index () const |
| get_index(): the 1-based node index the builder assigned. | |
| const std::string & | get_name () const |
| getName(). | |
| NetworkModel & | model () const |
| The model this node belongs to. | |
| operator std::size_t () const | |
| A handle IS its index wherever one is expected. | |
| void | set_routing (std::size_t cls, lang::RoutingStrategy rs) |
| setRouting(class, strategy). | |
| void | set_routing_weights (std::size_t cls, const std::map< std::size_t, double > &weights) |
| setRoutingWeight(class, weights): the WRROBIN share per destination. | |
Additional Inherited Members | |
| Protected Member Functions inherited from line::Station | |
| Station (NetworkModel &m, std::size_t idx, const std::string &nm) | |
| Protected Member Functions inherited from line::Node | |
| Node (NetworkModel &m, std::size_t idx, const std::string &nm) | |
| Protected Attributes inherited from line::Node | |
| NetworkModel * | model_ |
| std::size_t | idx_ |
| std::string | name_ |
Matching(model, name): a stochastic matching node under the first-come-first-matched (FCFM) policy of Comte (2022).
A Queue with SchedStrategy::FCFM and no service time. A class-r arrival is matched with the OLDEST waiting job of a class s compatible with r (set_compatibility), and both leave, each following its own class routing (usually to the Sink). With no compatible job waiting the arrival joins the ordered buffer, or is lost when the buffer holds set_capacity jobs. A waiting job may renege under a Markovian patience law (set_patience).
Solved by SolverNC (exact product form, Source -> Matching -> Sink, no patience) and by SolverCTMC/SolverSSA (ordered-word chain, finite capacity).
|
inline |
Definition at line 188 of file nodes.h.
References line::Station::Station().
|
inline |
getCompatibility(): the R x R 0/1 compatibility graph.
Definition at line 197 of file nodes.h.
References line::qn::Network< T >::get_compatibility(), line::Node::idx_, and line::Node::model_.
|
inline |
setCompatibility(G): the whole R x R graph, symmetric with a zero diagonal.
Definition at line 195 of file nodes.h.
References line::Node::idx_, line::Node::model_, and line::qn::Network< T >::set_compatibility().
|
inline |
setCompatibility(class1, class2): one undirected edge of the graph.
Definition at line 191 of file nodes.h.
References line::Node::idx_, line::Node::model_, and line::qn::Network< T >::set_compatibility().
|
inline |
setPatience(class, distribution): a Markovian reneging law for a waiting job.
Definition at line 199 of file nodes.h.
References line::Node::idx_, line::Node::model_, line::lang::RENEGING, and line::qn::Network< T >::set_patience().
|
inline |
A Matching node has no service time: always refused.
Definition at line 203 of file nodes.h.
References line::Node::idx_, line::Node::model_, and line::qn::Network< T >::set_service().