1. Introduction
Queueing systems with complex service mechanisms, particularly those involving multi-phase structures, have become essential tools for modeling and analyzing service-based operations in various domains, such as telecommunications, healthcare, and manufacturing. Among these, systems with Coxian service times stand out due to the analytical flexibility of the Coxian distribution, which generalizes both Erlang and hypoexponential distributions. Its ability to represent a wide range of service behaviors through phase-dependent parameters makes it well suited for realistic service time modeling. In recent years, increasing attention has been devoted to integrating performance measures with cost-based decision making in such queueing models. However, comprehensive cost function formulations for systems with Coxian service times remain relatively scarce in the literature. This paper addresses this gap by constructing and analyzing a cost function for the queueing system, incorporating the impact of both constant and variable customer service speeds across phases. Our approach builds upon previous foundational studies and aims to optimize system performance under operational efficiency constraints.
In addition to their analytical tractability, Coxian distributions possess a phase-type structure that enables an efficient modeling of heterogeneous service environments, in which customer progression depends not only on stochastic service durations but also on control-based system configurations. This flexibility is particularly valuable in operational contexts that require differentiated treatment across stages, such as triage in healthcare systems or multi-step manufacturing workflows, where service acceleration or deceleration in certain phases directly affects throughput, congestion, and costs. Despite this practical relevance, the existing literature predominantly focuses on performance metrics such as queue length, sojourn time, or server traffic intensity, while cost-aware formulations are often restricted to simpler service models. Integrating cost components, such as waiting costs and the amortization of service infrastructure, into multi-phase systems presents a significant analytical challenge due to the nonlinear interplay among service time distributions, customer behavior, and operational decisions. Only limited contributions attempt such integration, and these typically address special cases such as Erlang or hypoexponential distributions with equal phase durations or simplified cost structures.
This paper seeks to bridge this gap by proposing a general and analytically tractable cost function tailored to the system. We explicitly incorporate customer service speed variability across phases, which generalizes both constant-speed and phase-varying service models. This approach enables a unified analysis of systems with uniform or heterogeneous service speeds and provides a meaningful cost–performance trade-off.
The remainder of the paper is organized as follows.
Section 2 reviews existing literature on Coxian phase-type distributions, queueing models with structured service times, and prior approaches to cost function analysis in single-server systems. In
Section 3, we review the structure of Coxian distributions and introduce the queueing system model.
Section 4 develops an analytical framework for performance measures based on service speed. In
Section 5, we propose and examine a cost function tied to customer service speed and derive an optimal traffic intensity.
Section 6 presents sweep and statistical analyses based on changes in cost parameters as well as additional difference-based evaluation using the Wilcoxon signed-rank test.
Section 7 concludes the paper with a summary of the findings and provides some practical insights. Finally,
Section 8 provides the limitations of the presented work and directions for further research.
2. Related Work
Coxian phase-type (PH) distributions and their integration into queueing models have been extensively studied due to their analytical flexibility and ability to approximate a broad class of service time distributions. Among the foundational contributions, He and Zhang [
1] developed a rigorous framework for approximating general matrix-exponential distributions using ordered Coxian structures. Their results provide strong theoretical justification for employing Coxian forms to achieve computational tractability in systems where service processes exhibit multi-stage or phase-like behavior. Parameter estimation and numerical aspects of PH distributions have also been investigated in detail, for example in the doctoral work of Esparza [
2].
2.1. Structural Properties and Service Parameter Optimization
Several studies have examined how the internal structure of Coxian models influences system performance. In particular, Sağlam et al. [
3] analyzed the effect of ordering service speeds in a three-phase Coxian queueing system and demonstrated that optimal sequencing can significantly reduce the average system delay. Their findings highlight the importance of parameter design in multi-phase service models and directly support our modeling approach, where service speeds and transition probabilities are treated as controllable design variables linked to system efficiency and cost.
2.2. Matrix-Analytic Methods and PH-Based Queueing Models
The matrix-analytic framework for PH distributions was pioneered by Marcel F. Neuts and has become central to modern queueing theory. The monograph Neuts [
4] and the review article Alfa [
5] describe matrix-geometric and matrix-analytic techniques for analyzing
-type systems with PH service times. These methods enable a closed-form or semi-closed-form analysis of complex models that are otherwise intractable using classical approaches. A comprehensive overview of matrix-analytic stochastic modeling is provided in Neuts [
6], where the role of matrix exponentials and phase-based subgenerator structures is emphasized.
Subsequent work has extended these techniques to more elaborate settings. For example, Chakravarthy et al. [
7] considered queueing systems with Markovian arrivals, PH service times, server breakdowns, and repairs, demonstrating the robustness of PH-based modeling in failure-prone environments. Computational approaches for related models were discussed in Hochrainer et al. [
8], which proposed an algorithm for computing steady-state probabilities in
systems. Since Erlang distributions form a subclass of PH distributions, their methodology naturally extends to Coxian representations and aligns with our matrix-based formulation for performance and cost analysis.
2.3. Queueing Models with Priorities, Parallel Servers, and Numerical Aspects
PH distributions have also been employed in multi-server and priority settings. In Al Hanbali et al. [
9], approximations for the waiting-time distribution in
priority queues were derived, providing insight into systems where exact analysis is computationally prohibitive. Related numerical techniques for the structured matrices arising in PH-based models were investigated in Jia et al. [
10]. Although this paper focuses on a single-server configuration, it complements this line of research by providing new analytical expressions and structural insights in support of cost-optimization objectives.
2.4. Applications of Coxian and PH Models
Over the last two decades, numerous applied studies have used Coxian and PH distributions to model realistic service systems. Examples include processor-sharing queues with impatient customers [
11],
queues with working vacations and interruptions [
12], and closed queueing networks for fleet sizing in logistics systems [
13]. In the healthcare domain, Jen et al. [
14] proposed a Coxian hurdle model for population-based cancer screening, while Thompson et al. [
15] applied queueing theory to evaluate the effectiveness of triage algorithms in reducing patient waiting times. Flow-line systems with Cox-2 service times and limited buffers were analyzed in Helber [
16], and more recently, Anggraito et al. [
17] studied a multi-server priority queue with two job classes and Cox-2 distributed service times. Extensions to time-dependent environments were considered in Andersen [
18]. On the theoretical side, Protter and Riveros Valdevenito [
19] investigated Markov jump times via Cox constructions, while Rudec and Manger [
20] developed fast approximation methods for the
k-server problem. A new congestion measure for emergency departments was proposed in Wartelle et al. [
21]. Together, these works demonstrate the broad applicability of Coxian and PH modeling in both theoretical and applied settings.
More recent contributions further highlight the flexibility of PH and Coxian models in capturing structural heterogeneity and complex service mechanisms. In Sinu Lal et al. [
22], a multi-type queueing–inventory system for spectrum selection and allocation was developed using phase-type service representations to model differentiated customer demands and resource consumption. Algorithmic aspects of PH-based queueing models in random environments were addressed by Dudin et al. [
23], who studied systems with a varying number of servers and arrival processes modulated by an external stochastic environment.
Phase-type distributions have also been successfully employed beyond classical service systems. A PH-based stochastic model for random telegraph noise in resistive memory devices was proposed in Ruiz-Castro et al. [
24], while García-Mora et al. [
25] introduced a new PH distribution for the sum of concatenated Markov processes with applications to survival analysis in bladder cancer. In the context of actuarial science, Asmussen et al. [
26] demonstrated how PH models can be used for the fitting and valuation of equity-linked life insurance products.
Methodological advances combining PH models with modern data-driven techniques were reported in Vishnevsky et al. [
27], where a fork-join queue with MAP arrivals and PH service times was analyzed using machine learning methods. Furthermore, Chakravarthy [
28] investigated queueing systems with MAP input and heterogeneous phase-type group services, providing insights into performance evaluation under complex service structures. Although outside the queueing domain, the study in Machado et al. [
29] illustrates how multi-phase stochastic modeling ideas also arise in the control and validation of three-phase photovoltaic systems. These studies reinforce the role of Coxian and PH distributions as a powerful and unifying modeling framework for multi-stage service processes across a wide spectrum of application areas.
2.5. Cost Modeling in Multi-Phase Queueing Systems
Despite the extensive literature on PH-based performance analysis, cost function modeling for Coxian queues remains comparatively limited. A notable recent contribution is Immaculate and Rajendran [
30], which analyzed the economic performance of a two-phase Coxian system with encouraged arrivals and customer balking. Their model incorporates waiting and service-related costs and illustrates how system configurations affect both performance and operating expenses.
Several related studies have addressed cost modeling under simpler service assumptions. In Mirchevski and Bakeva [
31], a cost function was constructed and analyzed for an
queue, and its sweep with respect to the traffic intensity
and the number of phases
k was derived. An extension to hypoexponential-2 service times was presented in Mirchevski and Bakeva [
32], including computational illustrations and parametric studies. These works were further expanded in Mirchevski et al. [
33] and Mirchevski et al. [
34], where broader classes of multi-phase systems and new optimization formulations were considered.
2.6. Positioning of the Present Work
In summary, while existing studies have separately investigated Coxian modeling, matrix-analytic methods, and cost optimization in queueing systems, their joint integration remains limited. This paper contributes to the literature by proposing a general cost function formulation for Coxian-k service systems with phase-dependent service speeds. The proposed framework generalizes earlier two-phase and constant-speed models, yields tractable expressions for key performance measures, and leads to a closed-form polynomial equation for determining optimal operating points under operational efficiency constraints. The main contribution of this paper lies in the construction of a cost function that explicitly incorporates two essential components. The first is a waiting cost rate, which is defined as the product of the unit waiting cost and the expected number of customers in the system rather than the expected waiting time, which is more commonly adopted in the literature. The second component is an amortization cost rate that reflects the multi-phase structure of the service process. Instead of assuming a single amortization cost associated with a single server, we introduce phase-dependent amortization costs, resulting in k distinct cost terms corresponding to the k service phases. This formulation captures the heterogeneity of service speeds across phases, since each phase operates with a different service speed and therefore incurs a different operational cost.
3. Coxian Model and Coxian Distribution
Consider a finite continuous-time Markov process with discrete state space , where . States 1 through k are transient, whereas state is absorbing. Let , , denote the probability that the process starts in transient state i. In the Coxian model, the process starts in the first phase; hence, the initial distribution is , where is a k-dimensional row vector. Starting from state i (), the process may jump directly to the absorbing state with a certain probability. Let denote the subgenerator matrix of transition rates among the transient states. In probability theory, the pair is called a representation of the Coxian phase-type distribution.
It is well known that the Coxian model can be used to describe queueing systems in which the customer service time consists of
k phases and follows a Coxian-
k distribution. In the Coxian model, the service requires at most
k phases, and the service time in each phase
i is exponentially distributed with parameter
,
. After completing phase
, the customer proceeds to the next phase with probability
or completes the service and leaves the system with probability
,
. The parameter
,
, is also referred to as the total rate of leaving phase
i. Accordingly, the subgenerator matrix
for the Coxian model has the form
In general, the Coxian-k distribution is a continuous distribution on with parameters , , and probabilities , . According to the above description, the Coxian-k distribution generalizes both Erlang and hypoexponential distributions. Specifically, if for and for , then it reduces to the Erlang-k distribution with common parameter . If only for , then it reduces to a hypoexponential-k distribution with distinct parameters , .
Let
X be a random variable representing the total customer service time over all
k phases, and assume that
X follows the Coxian-
k distribution with parameters
,
, and probabilities
,
, i.e.,
. Then, the probability density function of
X can be written in the following matrix form:
where
is the
subgenerator matrix among the transient states,
is the
k-dimensional input row vector, and
is the
k-dimensional output column vector (absorption rate vector), with
denoting the
k-dimensional column vector of ones, and
. The expression
denotes the matrix exponential of
; it can be computed via the power series
. It is important to note that there is no closed-form expression for (
2). Nevertheless, using matrix-analytic methods and keeping (
2) in its matrix form, one can compute the moments of
X of any order for a
k-phase Coxian model. The following lemma is a standard result and will be useful in the subsequent analysis.
Lemma 1. The states of the Coxian model are transient if and only if the subgenerator matrix is nonsingular.
Proof. See Lemma 2.2.1, p. 45 in Neuts [
4], which is stated for general PH distributions (including the Coxian distribution). □
The matrix
in (
1) is an upper bidiagonal subgenerator matrix of a Coxian-
k model. Its spectrum consists of its diagonal entries,
where
for all
. Hence, all eigenvalues of
are strictly negative real numbers. Since
, the matrix
is nonsingular, and therefore its inverse
exists and is unique. This confirms that the subgenerator matrix
is invertible.
4. Description of the Queueing System Characterized by Customer Service Speed Variability
In this section, we consider a queueing system of type . In addition to the general preliminaries and standard modeling assumptions, we introduce an approach for model construction based on customer service speed variability across phases and derive the complete analytical results associated with this framework.
4.1. Preliminaries
We first provide a brief description of the main components of the considered queueing system, which is characterized by a Poisson arrival process and Coxian-k distributed service times. Throughout the paper, we use the short notation , which indicates the following:
The input stream follows a Poisson process with parameter ;
The service time is distributed according to . Specifically, customer service consists of k exponentially distributed phases with parameters , , such that after completing service in phase j, the customer either proceeds to the next phase with probability , or leaves the system with probability , ;
Service is provided by a single server.
A detailed description of the Coxian service mechanism is given in
Section 3.
4.2. General Assumptions
In this subsection, we summarize the general assumptions underlying the proposed queueing system.
Customers arrive according to a Poisson process with rate ;
Service times follow a Coxian-k phase-type distribution characterized by phase transition probabilities and phase-dependent service speeds ;
Customers are served according to the FIFO (first-in, first-out) discipline;
Infinite buffer (waiting room);
Service of the next customer begins immediately after the completion of service of the previous customer;
Arrival and service processes are mutually independent, and successive service times are independent and identically distributed;
The traffic intensity is defined as
and the system operates in steady state if
. A detailed matrix and symbolic representation of
for the considered model is provided in
Section 4.3 and
Section 5. In further analyses,
is a decision variable.
We can see that under certain special conditions, can be reduced to a simpler form, which is suitable for some special cases of systems. We list the most important special cases below.
The
queueing system with
k phases and hypoexponential-
k service time across the phases. The traffic intensity is
obtained for
,
in the current Coxian queueing system.
The
queueing system with
k phases and Erlang-
k service time across the phases. The traffic intensity is
obtained for
,
and
,
in the current Coxian queueing system.
The
queueing system with one phase and exponential service time. The traffic intensity is
obtained for
,
,
,
and
in the current Coxian queueing system.
4.3. An Approach Characterized by Customer Service Speed Variability
We now introduce an approach that unifies two modeling scenarios: (i) phase-dependent service speeds and (ii) identical service speeds across all phases. Both cases can be expressed through a single parametric relation. Specifically, we assume that the service speeds satisfy
For the first scenario, we allow the service speed to systematically increase or decrease across phases, corresponding to and . If , successive phases become slower, meaning that each phase serves customers at a lower average rate than the previous one. Conversely, if , the service speed increases across phases.
For the second scenario, , implying . In this case, the model reduces to a system with identical service speeds in all phases. Clearly, this scenario constitutes a special case of the general formulation.
Why a geometric progression for phase speeds?
To keep the multi-phase model parsimonious while still allowing heterogeneous phase speeds, we parameterize the service speeds by a single phase speed
via
. From an applied perspective, many service processes are inherently sequential and stage-dependent (e.g., clinical deterioration pathways, diagnostic/treatment stages, and multi-step processing pipelines), where transition or completion rates naturally vary across stages and can be interpreted as “rates of flow” through ordered phases according to Donnelly et al. [
35]. In such settings, a geometric trend provides a compact and interpretable first-order approximation of systematic stage-to-stage speed changes while avoiding the over-parameterization typically associated with fully unconstrained phase-type specifications.
Under this parameterization, the subgenerator matrix
takes the form
for
and
, and
for
.
To establish the main performance results of the model, we first state the following lemma.
Lemma 2. Let , where , , for . Then, the n-th moment of X is given bywhere , is defined by (3) or (4), is the k-dimensional input row vector, and is the k-dimensional column vector of ones. Proof. The result follows by induction on
n, using the matrix exponential integral
together with Lemma 1. See Theorem 2.7, pp. 10–12 in Esparza [
2], for the general case with arbitrary
,
. □
We further introduce two auxiliary random variables: N, denoting the number of customers in the system at an arbitrary time instant, and W, denoting the waiting time of a customer in the queue. Before deriving the main analytical results, we briefly outline the approach used to obtain the steady-state performance measures of the proposed system. The Coxian-k service-time distribution is represented in matrix form, which enables an explicit computation of its first two moments using matrix-analytic techniques. These moments are then substituted into classical results for the queue—in particular, the Pollaczek–Khinchine formula for the mean system size and waiting time. This procedure allows all performance measures to be expressed in closed form as functions of the traffic intensity and the service-phase speeds. The resulting expressions form the analytical foundation for the construction and optimization of the cost function in the subsequent sections.
Theorem 1. For the proposed queueing system operating in steady state and characterized by customer service speed variability (), the traffic intensity ρ, the expected waiting time , and the expected number of customers in the system are given in matrix form bywhere is defined by (3) or (4), , and is the k-dimensional column vector of ones. Proof. By Lemma 2, the traffic intensity satisfies
To compute the expected waiting time, we apply the classical Pollaczek–Khinchin formula,
Using Lemma 2 again yields
Let
T denote the sojourn time of a customer in the system (waiting time plus total service time). By linearity of expectation,
Finally, applying Little’s law gives
□
5. Construction and Analysis of a Cost Function for Queueing System Characterized by Customer Service Speed Variability
This section presents results on the construction and analysis of a cost function for the queueing system, expressed in terms of the traffic intensity, under the assumption that the service speeds , , are unknown. In this way, a strictly convex function on the interval can be constructed, the optimization of which can be easily carried out through derivatives. On the other hand, after finding the optimal traffic intensity , due to the relation between the service speeds and the traffic intensity given by in Theorem 1, the corresponding optimal speeds , can be found. So, controlling the optimal service speeds across the phases is determined by the optimal traffic intensity. It is important to note that if the cost function is treated as a function of multiple variables, for example, , under a single condition , then the function is not convex and can be optimized by some metaheuristic algorithms for global optimization. Precisely because of the idea of representing the function through , it is necessary to represent all service speeds , through one service speed in order to be covered by and their optimal choice to depend initially on the optimal traffic intensity—hence the idea of introducing a factor based on a geometric progression to determine the speeds through the phases. Of course, this is one way to express all , through the first service speed, but it is not the only one. In practice, if we are talking about production where the mechanism of operation of the phases can be controlled, the rule of how the speeds change between the phases can be determined, and accordingly the speeds can be approximately expressed through one of them. The proposed formulation captures the operational behavior of the system and enables both an analytical and numerical investigation of how influences performance and cost.
The construction of the cost function is based on two components: (i) the expected waiting cost per customer per unit time, denoted by
, and (ii) the expected system cost associated with server amortization (depreciation) across phases per customer per unit time, which is denoted by
. Accordingly, we define the expected total cost by
where
denotes the expected total system cost. Using the performance measures derived in Theorem 1, we adopt the following interpretation of
and
:
is given by the product of the waiting cost rate
(per customer per unit time) and the expected number of customers in the system,
, i.e.,
For
and
,
is a linear combination of the phase-wise amortization costs
,
, and the corresponding service speeds
,
, i.e.,
For
, we have
and
,
, so that
becomes a linear combination of the common amortization cost
c and the common service speed
, i.e.,
In practice, the relationship between service capacity and operating or capital cost may be nonlinear due to technological constraints, economies of scale, and discrete capacity expansion. In this paper, the amortization cost is modeled as a linear function of the service speeds as a parsimonious first-order approximation that is widely used in queueing-based cost optimization models. This assumption reflects settings in which marginal capacity adjustments produce approximately proportional changes in operating or depreciation cost over the relevant range of service speeds. From an analytical perspective, the linear specification allows the total cost function to be expressed in a tractable form and enables explicit convexity analysis and the uniqueness of the optimal traffic intensity. More general nonlinear cost structures can be incorporated in the same framework by replacing the linear term with a nonlinear function of the service speeds; however, this would typically preclude closed-form characterization of the optimal solution and require purely numerical optimization. The linear model therefore provides a transparent and analytically tractable benchmark for studying the economic trade-off between congestion and capacity provision.
Since our goal is to express the cost function in terms of
, we must first rewrite the unknown speeds
,
, in terms of
. For this purpose, we next present the performance measures from Theorem 1 in symbolic form (rather than matrix form). Before proceeding, we compute the inverse
for the matrix (
3); the corresponding inverse for (
4) follows as a special case when
. Since
is a
upper bidiagonal matrix, it admits efficient inversion algorithms. A bidiagonal inversion procedure for lower bidiagonal matrices was proposed in Jia et al. [
10]. With a straightforward adaptation to the upper bidiagonal case (combining diagonal and superdiagonal entries), the inverse matrix
for (
3) can be obtained from
where
,
are the diagonal entries and
,
are the superdiagonal entries. Clearly,
is an upper triangular matrix. We obtain
For
, the inverse
corresponding to (
4) follows immediately.
When
and
, we have
If we define
and
for
, then
Consequently, the traffic intensity can be expressed as
that is,
For the second moment, we obtain
Rearranging yields
Since
, we have
, and thus the double sum can be rewritten as
or, equivalently, in the simpler form
The expected waiting time in the queue is therefore
Since
, we obtain
When
, the corresponding expressions become
that is,
and
Using (
6)–(
11), the expected total cost function, expressed explicitly as a function of the traffic intensity
, is given by
for
and
. In particular, for
, the expected total cost function reduces to
where
, since
for all
.
We focus on the analysis of (
12), since (
13) is a special case. Differentiating
with respect to
yields
To determine the optimal traffic intensity, we minimize the expected total cost function (
12) with respect to the traffic intensity
. Since the function (
12) is continuously differentiable on
, a necessary condition for optimality is
Taking the derivative of the explicit expression of the function (
12) and rearranging terms yields a rational equation in
. Multiplying both sides by the common denominator in order to eliminate fractions and collecting like powers of
leads to the following fourth-degree polynomial equation with real coefficients, whose unique solution in the interval
determines the optimal traffic intensity. The resulting equation is
where
We solve Equation (
15) numerically using Wolfram Mathematica 14. The main goal is to identify an optimal solution
satisfying
. This also yields corresponding optimal service speeds
,
, when
and
, and the corresponding optimal service speed
when
, such that the cost function (
12) (or (
13)) is minimized while the system remains in steady state. We next establish the existence and uniqueness of such a candidate
for (
12); the corresponding result for (
13) follows immediately since it is a special case.
Theorem 2. In the proposed queueing system operating in steady state and characterized by customer service speed variability, for and , there exists a unique solution of (15) satisfying . Moreover, the expected total cost function (12) attains its absolute minimum at , and the minimal cost is . Proof. We first show the existence of a solution in
. Let
denote the numerator of (
14). Then,
and
for each
,
,
,
,
,
,
, and
. Since
h is continuous, the intermediate value theorem implies that there exists at least one
such that
.
Next, we compute the second derivative of the expected total cost function (
12):
Since
for every
, the function (
12) is convex on
. Because there exists at least one stationary point in
and
is convex on this interval, the stationary point is unique. Therefore, the solution
of (
15) satisfying
is unique, and (
12) attains its absolute minimum at
with minimal value
. □
6. Sweep and Statistical Analysis for Cost Parameters
In this section, we report numerical results from sweep and statistical analyses of the cost parameters in the cost functions (
12) and (
13) for the special case
. In this setting, the waiting-cost parameter is
(common to both parts of our approach). The amortization cost parameters are
and
for
and
, whereas for
, we assume a common amortization cost
c for both phases. To make the two models comparable, we choose
c so that
More precisely, when
, the amortization term weights the slower phase by the factor
, so the total amortization component involves
. When
, both phases operate at the same speed, and the corresponding total amortization component can be written as
. Hence, imposing
ensures that the two models are evaluated under comparable amortization input and that the optimization experiments use consistent parameters.
For convenience, we record the explicit forms of (
12) and (
13) for
:
and
respectively. In both expressions,
p denotes the probability that a customer proceeds to the second service phase.
6.1. Choice of System Parameters for Numerical Computation
The model parameters were selected to ensure both practical relevance and analytical tractability. The number of service phases was fixed at , representing common two-phase service structures such as preprocessing–execution pipelines or inspection–processing systems.
The arrival rate was chosen to cover light, moderate, and heavy traffic regimes while satisfying the stability condition , allowing the analysis of different congestion levels and their impact on optimal traffic intensity.
The phase-speed factor represents two operating regimes: for homogeneous service speeds and for heterogeneous service speeds with unbalanced phase workloads. This enables a direct comparison of balanced and imbalanced service configurations.
The waiting-cost coefficient
and the amortization costs
and
were selected from typical ranges used in queueing-based cost models, reflecting moderate to high congestion sweep and realistic cost ratios across service phases. Sweep analyses in
Section 6.2 and
Section 6.3 confirm that the qualitative behavior of the optimal solution is robust across wide parameter ranges. Thus, the chosen values represent benchmark scenarios rather than fine-tuned special cases.
All reported cost quantities correspond to steady-state expected costs per unit time. The waiting-cost coefficient is measured in monetary units per customer per unit time, while the amortization costs represent monetary units per unit time associated with operating the service phases. Accordingly, the optimal expected total cost represents the long-run average operational cost of the system.
6.2. Sweep and Statistical Analysis Based on Changes in the Waiting Cost Parameter
Let
denote the baseline value of the waiting-cost parameter
. We examine the sweep of the optimal solutions to changes in
by applying percentage perturbations
and defining
All remaining cost and non-cost parameters are held fixed:
,
,
,
(for
), and
(for
). The amortization costs are selected to be higher for the faster phase, reflecting increased resource intensity; alternative choices are possible when additional technical or human factors are incorporated. The specific numerical values do not affect the theoretical development.
The results are summarized in
Table 1 (for
) and
Table 2 (for
).
Table 1 reports the percentage change
, the updated value
, the optimal traffic intensity
, the optimal first-phase service speed
the optimal second-phase service speed
, and the optimal expected total cost
of (
16).
Table 2 reports:
,
,
, the optimal service speed
and the optimal expected total cost
of (
17).
Effect of changes in . Using
Table 1 (
), a
decrease in
(from 6 to
) raises the optimal traffic intensity from
to
(
+5.75%), whereas a
increase to
lowers it to
(
−2.92%). The optimal service speeds change in the opposite direction:
increases from
to
under
(
+3.01%) and decreases to
under
(
−5.45%), since
,
follows the same pattern. The optimal expected total cost rises from
to
(
+5.59%) for
and falls to
(
−10.09%) for
. Overall, the traffic intensity and cost are more sensitive to decreases in
than to increases.
For
Table 2 (
), the baseline values are
,
, and
. A
change increases traffic intensity to
(
+6.26%), while a
change reduces it to
(
−3.16%). The optimal service speed decreases to
(
−5.90%) for
and increases to
(
+3.27%) for
. The optimal cost decreases to
(
−10.92%) for
and increases to
(
+6.07%) for
. Thus, decreasing
increases traffic intensity, reduces service speed, and lowers total cost with stronger sweep for large decreases.
Operational efficiency. Comparing
Table 1 and
Table 2, the
model consistently yields lower optimal expected total cost across all
values (e.g.,
vs.
at the baseline). It also operates at lower traffic intensity, indicating reduced congestion and improved stability. Although
allows phase-specific service speeds, this flexibility does not reduce cost in the examined scenarios. Hence, under waiting-cost perturbations, the
configuration is more cost-efficient and operationally stable.
Further trend insights. The results are consistent with the convexity of (Theorem 2), ensuring a unique minimizer that varies smoothly with . The model exhibits stronger responsiveness in traffic intensity and service speeds, indicating higher sweep to cost changes, while shows more gradual adjustments and smoother cost evolution.
Overall, the configuration achieves lower optimal cost, lower traffic intensity, and more moderate sweep to . Additional experiments with other values confirm the same qualitative pattern with the performance gap decreasing as tends to 1.
To complement the discrete sweep results reported in
Table 1 and
Table 2, we visualize the dependence of the optimized expected total cost on the waiting-cost parameter and the phase-speed structure by means of a two-dimensional heatmap.
Specifically, for each pair
, we compute the optimal traffic intensity level
and plot the corresponding minimized cost value
as a color-coded surface over the domain
This representation provides a continuous sweep map of the optimal operating cost with respect to both the waiting-cost weight and the service-phase speed structure. The two tables correspond to horizontal cross-sections of this surface at and , respectively.
The heatmap therefore compactly summarizes the combined effect of cost weighting and phase heterogeneity on system performance, allowing the main sweep trends to be identified visually without relying on large numerical tables.
The heatmap in
Figure 1 shows that the optimal expected total cost
increases monotonically with the waiting cost parameter
and with decreasing values of the phase-speed factor
. Lower cost levels are concentrated in the region of small
and
close to 1, corresponding to balanced service speeds across phases. In contrast, heterogeneous service speeds (
) lead to systematically higher costs for the same waiting-cost level. Overall, the figure confirms that
is the dominant driver of cost growth, while
governs the relative efficiency of the system within the feasible operating region.
Polynomial Trend Fitting for Optimal Solutions
As an auxiliary summary of the monotone dependence observed in
Table 1 and
Table 2, we fit third-degree polynomial regressions describing how the optimal traffic intensity
and the optimal expected total cost
vary with
. The estimated coefficients (with standard errors, test statistics, and
p-values) are reported in
Table 3 for both
and
.
In
Table 3, the independent variable is
and is denoted by
x for brevity (the same convention is used later for
or
). For each coefficient
, we test
against
. At conventional significance levels (e.g.,
or
), all reported
p-values satisfy
p-Value; hence,
is rejected for every term. The corresponding fitted curves are shown in
Figure 2.
Table 4 summarizes the fit quality. All models achieve
(and similarly high adjusted
). The errors are small: for
, the RMSE is
(
) and
(
); for
, the MAE is below 1 and the RMSE is
(
) and
(
). The relative errors are also very small (MAPE below
in all cases). Overall, third-degree polynomials provide accurate compact approximations of the numerically obtained optimal solutions over the tested range of
.
6.3. Sweep and Statistical Analysis Based on Changes in the Amortization Cost Parameters , , and c
In this subsection, we present experimental results for both sweep and statistical analyses in which the amortization costs are varied simultaneously in accordance with the relation .
For the first case (
), we select the initial values
and
, which yield
. We then vary this quantity according to the rate
relative to
, and we compute the corresponding new values
For the second case (
), we choose the initial value
, which implies
. The new values are then obtained as
where
is defined relative to
.
All remaining parameters are held fixed throughout the experiments, namely
,
, and
. The numerical results are reported in
Table 5 for
and in
Table 6 for
.
Specifically,
Table 5 contains the percentage change of
, which is denoted by
, the new value
, the optimal traffic intensity
, the optimal service speed in the first phase
the optimal service speed in the second phase
, and the corresponding optimal value of the cost function (
16), denoted by
.
Similarly,
Table 6 reports the percentage change of
, denoted by
, the new value
, the optimal traffic intensity
, the optimal service speed
and the optimal value of the cost function (
17),
.
Effect of Changes in and . For , reducing by from the baseline decreases the optimal traffic intensity by about 15%, increases the optimal service speeds and by roughly 17%, and reduces the expected total cost by approximately 87%. Conversely, increasing the cost by raises by about 2.5%, reduces service speeds by about 2.2%, and increases by about 82.3%.
For , a decrease in leads to a slightly stronger response: decreases by about 15.8%, increases by about 18.7%, and decreases by roughly 86.5%. A increase produces the opposite effect: rises by about 2.5%, falls by about 2.4%, and increases by about 81.6%. Thus, amortization-cost changes strongly affect both traffic intensity and service speeds, while cost variations remain substantial in both directions and for both models.
Operational efficiency.Table 5 and
Table 6 show that the traffic intensity increases as amortization costs rise in both models, reflecting reduced service effort when capacity becomes more expensive. However, the
model consistently requires higher service speeds than the single speed
under
, indicating more intensive service operation. Moreover, cost increases are steeper for
, whereas the
configuration exhibits smoother cost growth and lower service effort. Overall,
provides higher operational efficiency and greater cost stability under varying amortization costs.
Further trend insights. Both models exhibit smooth, convex cost behavior consistent with Theorem 2 with traffic intensity increasing monotonically as amortization costs rise. While both adapt gradually to cost changes, the configuration shows stronger sweep in , indicating lower robustness to cost perturbations. In contrast, yields smoother cost trajectories and more stable service speeds.
Overall, although both models adjust effectively to amortization-cost variation, the configuration provides more stable and predictable performance with lower sweep and smoother cost evolution. The model remains more responsive but also more volatile, which may complicate cost control. These results highlight the advantage of as a more robust and economically stable operating regime under changing amortization conditions.
To further improve the interpretability of the sweep results reported in
Table 5 and
Table 6, we complement the tabulated numerical values with a two–dimensional heatmap representation. The heatmap depicts the optimal expected total cost
as a function of the comparable amortization term
(or
) and the phase–speed factor
. This visualization provides a compact overview of the joint impact of amortization costs and service-speed heterogeneity on the system’s cost structure and facilitates the identification of regions associated with low and high operating costs. The heatmap is shown in
Figure 3.
The heatmap illustrates that the optimal expected total cost increases monotonically with the amortization cost parameter (or ), as evidenced by the pronounced left-to-right color gradient. For a fixed amortization level, larger values of , corresponding to more balanced service speeds across phases, consistently result in lower expected total costs, which is visible as darker regions toward the upper part of the plot. Hence, amortization costs constitute the dominant driver of overall cost growth, whereas the phase-speed structure primarily governs cost efficiency with configurations closer to being systematically more economical.
Polynomial Trend Fitting for Optimal Solutions
To provide a compact statistical summary of the sweep results in
Table 5 and
Table 6, we fit third-degree polynomial regressions linking the amortization-related parameter
for
(or equivalently
for
) to the optimal solutions
and
. The estimated coefficients are reported in
Table 7. As before, for each coefficient, we test
against
; all reported
p-values are below common significance levels; hence, all terms are statistically significant.
The fitted polynomial relationships are illustrated in
Figure 4.
Table 8 reports standard fit diagnostics. For
, the explanatory power remains high (
for
and
for
) with an MAE of
–
and RMSE of
–
(MAPE below
). For
, the fits are nearly exact (
) with RMSE values of
(
) and
(
) and an MAPE below
. Overall, cubic polynomials provide accurate, low-parameter approximations of the numerically optimized
and
as functions of the amortization-cost level.
6.4. Difference-Based Evaluation: Wilcoxon Signed-Rank Test
To quantify the effect of the phase-structure parameter
, we compare the optimal solutions under
and
via the paired differences
The distributions of
and
are displayed in
Figure 5: panels (a)–(b) correspond to the sweep runs in
Table 1 and
Table 2 (varying
), while panels (c)–(d) correspond to
Table 5 and
Table 6 (varying
). In all panels, red bars represent
and blue bars represent
.
To test whether these paired differences are statistically different from zero, we apply the Wilcoxon signed-rank test (paired, two-sided). Using
paired observations in each comparison, all differences are strictly positive in
Figure 5a–d. The test yields
and
, so for
, the median difference equaling zero, is rejected at the 5% level for both
and
under both the
-variation and the amortization-cost-variation experiments. Therefore,
systematically achieves smaller optimal traffic intensity and lower optimized expected total cost than
across the considered parameter ranges, indicating a more efficient operating regime.
7. Conclusions
In this paper, we proposed a general and analytically tractable cost function formulation for the queueing system with customer service speed variability. A parametric representation of phase-dependent service speeds enabled explicit analytical expressions for key performance measures, including expected waiting time, system size, and total operational cost. The cost function was formulated in terms of the traffic intensity , and its convexity was proven, ensuring the existence and uniqueness of the optimal value . Numerical experiments confirmed the theoretical results and illustrated how optimal solutions vary under changes in waiting and amortization cost parameters.
The sweep analysis shows that the configuration with consistently provides superior performance. Across all tested parameter ranges, it yields lower optimal expected total costs , lower optimal traffic intensity , and smoother cost responses, indicating greater stability and predictability. In contrast, heterogeneous service speeds () do not improve cost efficiency and instead lead to higher traffic intensity levels and steeper cost growth, particularly under increasing cost pressures. From an operational standpoint, constant service speeds support more stable and cost-effective system management. Although variable service speeds may arise in practice, the results indicate that balanced service configurations provide more favorable trade-offs between cost, performance, and robustness.
By linking service speed structure to operational costs, the model provides clear guidance for system design and resource allocation. Maintaining consistent service speeds across phases reduces expected costs while improving predictability and stability, offering actionable insights for optimizing multi-phase service systems in areas such as healthcare, manufacturing, and service operations.
8. Limitations and Further Research Directions
The proposed model relies on several assumptions that ensure analytical tractability but also indicate directions for further research. The main limitations are summarized below.
Single-server structure. The system is modeled as a single-server queue, which may be restrictive for large-scale or parallel service environments. Future work may extend the model to tandem or multi-server queueing networks to better capture complex operational settings.
Sequential phase entry. All customers are assumed to enter at phase 1 and proceed sequentially. In practice, customers may enter at intermediate stages or require only partial processing. Extensions with probabilistic phase entry and routing would broaden the model’s applicability.
Linear cost structure. Costs are assumed to be linear in waiting and service-capacity components. However, standard, nonlinear cost functions may better capture congestion effects, technological constraints, or economies of scale, and thus these represent an important direction for future work.
Structured service speeds. Service rates are assumed to follow a geometric progression , . While this provides a compact parameterization, it may be restrictive in systems with heterogeneous technologies or resources. More flexible structures, such as independently specified or data-driven service speeds, could improve realism.
Sweep-based analysis. This paper uses sweep analysis rather than formal quantitative sensitivity measures. Future research may incorporate differential sensitivity metrics and uncertainty-based approaches, such as Monte Carlo simulations, to assess robustness more rigorously.
Optimization formulation. Optimization is performed with respect to the traffic intensity to preserve convexity and analytical tractability. An alternative approach is to express cost directly in terms of arrival and service rates, enabling the use of metaheuristic or global optimization methods for more complex or nonconvex extensions.
These directions provide a basis for developing more flexible and realistic cost-aware queueing models while preserving the core analytical insights established in this work.