LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
line::sum Namespace Reference

Classes

struct  ClosingOptions
 Closing controls; Kclosed is the population given to the open classes. More...
struct  Servers
 Number of servers of a station; MATLAB's mi(i) = Inf becomes infinite. More...
struct  SumClosedResult
 Mirrors the [XN, QN, UN, RN, it] return list of the MATLAB function. More...
struct  SumClosingResult
 Mirrors the [XN, QN, UN, RN, TN, it] return list of the MATLAB function. More...
struct  SumOptions
 Convergence controls, mirroring the trailing (tol, maxiter) arguments. More...

Functions

template<class T>
SumClosedResult< T > sum_closed (const Matrix< T > &L, const std::vector< long > &N, const std::vector< T > &Z, const std::vector< Servers > &mi, const Matrix< T > &scv, const SumOptions &options=SumOptions())
 Summation method (SUM) and its extension (ESUM) for closed queueing networks, including non-product-form stations with generally distributed service times.
template<class T>
SumClosingResult< T > sum_closing (const std::vector< T > &lambda0, const std::vector< T > &scva, const Matrix< T > &L, const std::vector< Servers > &mi, const Matrix< T > &scv, const std::vector< long > &N, const std::vector< T > &Z, const ClosingOptions &options=ClosingOptions())
 Closing method for open and mixed non-product-form queueing networks, solved with the summation method.

Function Documentation

◆ sum_closed()

template<class T>
SumClosedResult< T > line::sum::sum_closed ( const Matrix< T > & L,
const std::vector< long > & N,
const std::vector< T > & Z,
const std::vector< Servers > & mi,
const Matrix< T > & scv,
const SumOptions & options = SumOptions() )

Summation method (SUM) and its extension (ESUM) for closed queueing networks, including non-product-form stations with generally distributed service times.

Parameters
L(M x R) service demands, L(i,r) = e(i,r)/mu(i,r)
N(R) population per class, all finite
Z(R) think times
mi(M) servers per station
scv(M x R) squared coefficients of variation of the service times
optionstolerances, iteration caps and the closing method

Definition at line 196 of file sum_closed.h.

References line::Matrix< T >::cols(), line::InputError::InputError(), line::sum::SumClosedResult< T >::it, line::Matrix< T >::Matrix(), line::num_abs(), line::sum::SumClosedResult< T >::QN, line::sum::SumClosedResult< T >::RN, line::Matrix< T >::rows(), sum_closed(), line::sum::SumClosedResult< T >::UN, and line::sum::SumClosedResult< T >::XN.

Referenced by line::mva::solver_mva_sum(), sum_closed(), and sum_closing().

◆ sum_closing()

template<class T>
SumClosingResult< T > line::sum::sum_closing ( const std::vector< T > & lambda0,
const std::vector< T > & scva,
const Matrix< T > & L,
const std::vector< Servers > & mi,
const Matrix< T > & scv,
const std::vector< long > & N,
const std::vector< T > & Z,
const ClosingOptions & options = ClosingOptions() )

Closing method for open and mixed non-product-form queueing networks, solved with the summation method.

Parameters
lambda0(R) external arrival rates, zero for a closed class
scva(R) interarrival-time SCVs of the open classes, 1 if Poisson
L(M x R) service demands, open-class visits per external arrival
mi(M) servers per station
scv(M x R) service-time SCVs
N(R) populations of the closed classes; entries of open classes are ignored
Z(R) think times
optionstolerances, iteration caps and the closing method

Definition at line 81 of file sum_closing.h.

References line::Matrix< T >::cols(), line::InputError::InputError(), line::sum::SumClosedResult< T >::it, line::sum::SumClosingResult< T >::it, line::Matrix< T >::Matrix(), line::sum::Servers::of(), line::sum::SumClosedResult< T >::QN, line::sum::SumClosingResult< T >::QN, line::sum::SumClosedResult< T >::RN, line::sum::SumClosingResult< T >::RN, line::Matrix< T >::rows(), line::Matrix< T >::sum(), sum_closed(), sum_closing(), line::sum::SumClosingResult< T >::TN, line::sum::SumClosedResult< T >::UN, line::sum::SumClosingResult< T >::UN, line::sum::SumClosedResult< T >::XN, and line::sum::SumClosingResult< T >::XN.

Referenced by line::mva::solver_mva_sum(), and sum_closing().