Next Article in Journal
Complex Double Interface Dynamics in Time-Fractional Models: Computational Analysis of Meshless and Multi-Resolution Techniques
Previous Article in Journal
Mathematical Modeling-Driven Shape Digitization: A Perspective of Mongolian Motifs and Patterns
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Cost Parameters-Based Comprehensive Analysis of a New Cost Function Construction for Coxian-k Queueing System Characterized by Customer Service Speed Variability

by
Stefan Mirchevski
1,2,*,
Aleksandra Popovska-Mitrovikj
3 and
Verica Bakeva
3
1
Faculty of Civil Engineering, Ss. Cyril and Methodius University in Skopje, 1000 Skopje, North Macedonia
2
Faculty of Informatics, European University, 1000 Skopje, North Macedonia
3
Faculty of Computer Science and Engineering, Ss. Cyril and Methodius University in Skopje, 1000 Skopje, North Macedonia
*
Author to whom correspondence should be addressed.
Math. Comput. Appl. 2026, 31(2), 43; https://doi.org/10.3390/mca31020043
Submission received: 22 December 2025 / Revised: 18 February 2026 / Accepted: 28 February 2026 / Published: 6 March 2026

Abstract

We investigate cost optimization in an M / Cox k / 1 queueing system with phase-dependent service speeds. A unified parametric framework is introduced to model both homogeneous and heterogeneous service regimes, and closed-form expressions for steady-state performance measures are derived. These results are used to construct an expected total cost function explicitly parameterized by the traffic intensity. We prove that the cost function is strictly convex on the stability region, ensuring the existence and uniqueness of the optimal traffic intensity. For the Coxian-2 case, analytical and numerical sweep analyses are conducted with respect to waiting and service-capacity cost parameters. Polynomial response surfaces and nonparametric statistical tests are employed to validate the robustness of the results. The analysis shows that balanced service speeds across phases consistently yield lower optimal traffic intensity levels and reduced expected total costs, whereas heterogeneous service speeds increase congestion and cost sweep. These findings provide practical guidance for the economic design and control of multi-phase service systems.

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 M / C o x k ( p 1 , , p k 1 ; μ 1 , , μ k ) / 1 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 M / C o x k ( p 1 , , p k 1 ; μ 1 , , μ k ) / 1 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 M / G / 1 -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 M / E r / c / K 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 M / P H / c 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], M / G / 1 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 M / E k / 1 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 { X ( t ) : t 0 } with discrete state space { 1 , , k , k + 1 } , where k N . States 1 through k are transient, whereas state k + 1 is absorbing. Let s i = P ( X ( 0 ) = i ) , i = 1 , , k , 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 s = ( 1 , 0 , , 0 ) , where s is a k-dimensional row vector. Starting from state i ( i = 1 , , k ), the process may jump directly to the absorbing state k + 1 with a certain probability. Let S denote the k × k subgenerator matrix of transition rates among the transient states. In probability theory, the pair ( s , S ) 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 μ i > 0 , i = 1 , , k . After completing phase j < k , the customer proceeds to the next phase with probability p j or completes the service and leaves the system with probability q j = 1 p j , j = 1 , , k 1 . The parameter μ i , i = 1 , , k , is also referred to as the total rate of leaving phase i. Accordingly, the subgenerator matrix S for the Coxian model has the form
S = μ 1 p 1 μ 1 0 0 0 0 0 μ 2 p 2 μ 2 0 0 0 0 0 μ 3 0 0 0 0 0 0 μ k 2 p k 2 μ k 2 0 0 0 0 0 μ k 1 p k 1 μ k 1 0 0 0 0 0 μ k k × k .
In general, the Coxian-k distribution is a continuous distribution on [ 0 , + ) with parameters μ i > 0 , i = 1 , , k , and probabilities 0 p j 1 , j = 1 , , k 1 . According to the above description, the Coxian-k distribution generalizes both Erlang and hypoexponential distributions. Specifically, if p j = 1 for j = 1 , , k 1 and μ i = μ for i = 1 , , k , then it reduces to the Erlang-k distribution with common parameter μ . If p j = 1 only for j = i , , k 1 , then it reduces to a hypoexponential-k distribution with distinct parameters μ i , i = 1 , , k .
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 μ i , i = 1 , , k , and probabilities p j , j = 1 , , k 1 , i.e., X C o x k ( p 1 , , p k 1 ; μ 1 , , μ k ) . Then, the probability density function of X can be written in the following matrix form:
f X ( t ) = s · exp ( S t ) · r ,
where S is the k × k subgenerator matrix among the transient states, s = ( 1 , 0 , , 0 ) is the k-dimensional input row vector, and r = S · 1 is the k-dimensional output column vector (absorption rate vector), with 1 denoting the k-dimensional column vector of ones, and t 0 . The expression exp ( S t ) denotes the matrix exponential of S t ; it can be computed via the power series exp ( S t ) = k = 0 + t k S k k ! . 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 1 , , k of the Coxian model are transient if and only if the subgenerator matrix S 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 S in (1) is an upper bidiagonal subgenerator matrix of a Coxian-k model. Its spectrum consists of its diagonal entries,
σ ( S ) = { μ 1 , μ 2 , , μ k } ,
where μ i > 0 for all i = 1 , , k . Hence, all eigenvalues of S are strictly negative real numbers. Since 0 σ ( S ) , the matrix S is nonsingular, and therefore its inverse S 1 exists and is unique. This confirms that the subgenerator matrix S is invertible.

4. Description of the M / Cox k ( p 1 , , p k 1 ; μ 1 , , μ k ) / 1 Queueing System Characterized by Customer Service Speed Variability

In this section, we consider a queueing system of type M / C o x k ( p 1 , p k 1 ; μ 1 , , μ k ) / 1 . 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 M / C o x k ( p 1 , p k 1 ; μ 1 , , μ k ) / 1 , which indicates the following:
  • The input stream follows a Poisson process with parameter λ > 0 ;
  • The service time is distributed according to C o x k ( p 1 , p k 1 ; μ 1 , , μ k ) . Specifically, customer service consists of k exponentially distributed phases with parameters μ i > 0 , i = 1 , , k , such that after completing service in phase j, the customer either proceeds to the next phase with probability p j , j = 1 , k 1 or leaves the system with probability q j = 1 p j , j = 1 , , k 1 ;
  • 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 M / C o x k ( p 1 , p k 1 ; μ 1 , , μ k ) / 1 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 ( p 1 , , p k 1 ) and phase-dependent service speeds ( μ 1 , , μ k ) ;
  • 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
    ρ = λ E X ,
    and the system operates in steady state if 0 < ρ < 1 . 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 M / Hypo k / 1 queueing system with k phases and hypoexponential-k service time across the phases. The traffic intensity is
    ρ = λ j = 1 k i = 1 , i j k μ i i = 1 k μ i ,
    obtained for p j = 1 , j = 1 , , k 1 in the current Coxian queueing system.
  • The M / Erlang k / 1 queueing system with k phases and Erlang-k service time across the phases. The traffic intensity is
    ρ = λ k μ ,
    obtained for μ i = μ , i = 1 , , k and p j = 1 , j = 1 , , k 1 in the current Coxian queueing system.
  • The M / M / 1 queueing system with one phase and exponential service time. The traffic intensity is
    ρ = λ μ ,
    obtained for μ i = μ , i = 1 , , k , p j = 1 , j = 1 , , k 1 and k = 1 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
μ i = μ 1 α i 1 , i = 1 , , k .
For the first scenario, we allow the service speed to systematically increase or decrease across phases, corresponding to α > 0 and α 1 . If 0 < α < 1 , successive phases become slower, meaning that each phase serves customers at a lower average rate than the previous one. Conversely, if α > 1 , the service speed increases across phases.
For the second scenario, α = 1 , implying μ 1 = = μ k = μ . 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 μ i = μ 1 α i 1 . 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 S takes the form
S = μ 1 p 1 μ 1 0 0 0 0 0 μ 1 α p 2 μ 1 α 0 0 0 0 0 μ 1 α 2 0 0 0 0 0 0 μ 1 α k 3 p k 2 μ 1 α k 3 0 0 0 0 0 μ 1 α k 2 p k 1 μ 1 α k 2 0 0 0 0 0 μ 1 α k 1 k × k ,
for α > 0 and α 1 , and
S = μ p 1 μ 0 0 0 0 0 μ p 2 μ 0 0 0 0 0 μ 0 0 0 0 0 0 μ p k 2 μ 0 0 0 0 0 μ p k 1 μ 0 0 0 0 0 μ k × k ,
for α = 1 .
To establish the main performance results of the model, we first state the following lemma.
Lemma 2.
Let X C o x k ( p 1 , , p k 1 ; μ 1 , , μ k ) , where μ i = μ 1 α i 1 , i = 1 , , k , for α > 0 . Then, the n-th moment of X is given by
E X n = ( 1 ) n n ! s S n 1 ,
where n N , S is defined by (3) or (4), s = ( 1 , 0 , , 0 ) is the k-dimensional input row vector, and 1 is the k-dimensional column vector of ones.
Proof. 
The result follows by induction on n, using the matrix exponential integral
0 + t e S t d t = S 2
together with Lemma 1. See Theorem 2.7, pp. 10–12 in Esparza [2], for the general case with arbitrary μ i > 0 , i = 1 , , k . □
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 M / G / 1 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 M / C o x k ( p 1 , p k 1 ; μ 1 , , μ k ) / 1 queueing system operating in steady state and characterized by customer service speed variability ( α > 0 ), the traffic intensity ρ, the expected waiting time E W , and the expected number of customers in the system E N are given in matrix form by
ρ = λ s S 1 1 , E W = λ s S 2 1 1 ρ , E N = ρ + λ 2 s S 2 1 1 ρ ,
where S is defined by (3) or (4), s = ( 1 , 0 , , 0 ) , and 1 is the k-dimensional column vector of ones.
Proof. 
By Lemma 2, the traffic intensity satisfies
ρ = λ E X = λ s S 1 1 .
To compute the expected waiting time, we apply the classical Pollaczek–Khinchin formula,
E W = λ E X 2 2 ( 1 ρ ) .
Using Lemma 2 again yields
E W = λ s S 2 1 1 ρ .
Let T denote the sojourn time of a customer in the system (waiting time plus total service time). By linearity of expectation,
E T = E W + E X .
Finally, applying Little’s law gives
E N = λ E T = ρ + λ 2 s S 2 1 1 ρ .

5. Construction and Analysis of a Cost Function for M / Cox k ( p 1 , , p k 1 ; μ 1 , , μ k ) / 1 Queueing System Characterized by Customer Service Speed Variability

This section presents results on the construction and analysis of a cost function for the M / C o x k ( p 1 , p k 1 ; μ 1 , , μ k ) / 1 queueing system, expressed in terms of the traffic intensity, under the assumption that the service speeds μ i , i = 1 , , k , are unknown. In this way, a strictly convex function on the interval ( 0 , 1 ) 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 μ i and the traffic intensity ρ given by ρ = λ s S 1 1 in Theorem 1, the corresponding optimal speeds μ i * , i = 1 , , k 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, λ > 0 , μ 1 , , μ k > 0 under a single condition 0 < ρ < 1 , 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 μ i , i = 1 , , k 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 μ i , i = 1 , , k 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 C w , and (ii) the expected system cost associated with server amortization (depreciation) across phases per customer per unit time, which is denoted by C s . Accordingly, we define the expected total cost by
Φ = C w + C s ,
where Φ denotes the expected total system cost. Using the performance measures derived in Theorem 1, we adopt the following interpretation of C w and C s :
  • C w is given by the product of the waiting cost rate c w > 0 (per customer per unit time) and the expected number of customers in the system, E N , i.e.,
    C w = c w E N = c w ρ + λ 2 s S 2 1 1 ρ ;
  • For α > 0 and α 1 , C s is a linear combination of the phase-wise amortization costs c i > 0 , i = 1 , , k , and the corresponding service speeds μ i > 0 , i = 1 , , k , i.e.,
    C s = c i μ i ;
  • For α = 1 , we have c i = c > 0 and μ i = μ > 0 , i = 1 , , k , so that C s becomes a linear combination of the common amortization cost c and the common service speed μ , i.e.,
    C s = k c μ .
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 μ i = μ 1 α i 1 , i = 1 , , k , 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 S 1 = [ s i j 1 ] for the matrix (3); the corresponding inverse for (4) follows as a special case when α = 1 . Since S is a k × k 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 S 1 for (3) can be obtained from
s i j 1 = u j d j · s i , j + 1 1 ,     i < j , 1 d i , i = j , 0 , i > j ,
where d i = μ i α i 1 , i = 1 , , k are the diagonal entries and u i = p i μ 1 α i 1 , i = 1 , , k 1 are the superdiagonal entries. Clearly, S 1 is an upper triangular matrix. We obtain
S 1 = 1 μ 1 p 1 μ 1 α p 1 p 2 μ 1 α 2 p 1 p 2 p k 3 μ 1 α k 3 p 1 p 2 p k 2 μ 1 α k 2 p 1 p 2 p k 1 μ 1 α k 1 0 1 μ 1 α p 2 μ 1 α 2 p 2 p 3 p k 3 μ 1 α k 3 p 2 p 3 p k 2 μ 1 α k 2 p 2 p 3 p k 1 μ 1 α k 1 0 0 1 μ 1 α 2 p 3 p 4 p k 3 μ 1 α k 3 p 3 p 4 p k 2 μ 1 α k 2 p 3 p 4 p k 1 μ 1 α k 1 0 0 0 1 μ 1 α k 3 p k 2 μ 1 α k 2 p k 2 p k 1 μ 1 α k 1 0 0 0 0 1 μ 1 α k 2 p k 1 μ 1 α k 1 0 0 0 0 0 1 μ 1 α k 1 k × k .
For α = 1 , the inverse S 1 corresponding to (4) follows immediately.
When α > 0 and α 1 , we have
E X = s · S 1 · 1 = i = 1 k α 1 i μ 1 j = 1 i 1 p j .
If we define β 1 : = 1 and β i : = j = 1 i 1 p j for i = 2 , , k , then
E X = 1 μ 1 i = 1 k β i α 1 i .
Consequently, the traffic intensity can be expressed as
ρ = λ μ 1 i = 1 k β i α 1 i ,
that is,
μ 1 = λ ρ i = 1 k β i α 1 i .
For the second moment, we obtain
E X 2 = 2 i = 1 k β i μ 1 2 α 2 i 2 + 2 i = 1 k 1 m = i + 1 k β i μ 1 2 α m 1 α i 1 l = 1 m 1 p l .
Rearranging yields
E X 2 = 2 μ 1 2 i = 1 k β i α 2 2 i + i = 1 k 1 m = i + 1 k β i l = 1 m 1 p l α 1 i α 1 m .
Since l = i m 1 p l = β m β i , we have β m = β i l = i m 1 p l , and thus the double sum can be rewritten as
E X 2 = 2 μ 1 2 i = 1 k β i α 2 2 i + i = 1 k 1 m = i + 1 k β m α 1 i α 1 m ,
or, equivalently, in the simpler form
E X 2 = 2 μ 1 2 i = 0 k 1 m = i 2 i β i + 1 α m .
The expected waiting time in the queue is therefore
E W = ρ 2 λ ( 1 ρ ) · i = 0 k 1 m = i 2 i β i + 1 α m i = 1 k β i α 1 i 2 .
Since E N = λ E X + λ E W , we obtain
E N = ρ + ρ 2 1 ρ · i = 0 k 1 m = i 2 i β i + 1 α m i = 1 k β i α 1 i 2 .
When α = 1 , the corresponding expressions become
ρ = λ μ i = 1 k β i ,
that is,
μ = λ ρ i = 1 k β i ,
E W = ρ 2 m = 0 k 1 ( m + 1 ) β m + 1 λ ( 1 ρ ) i = 1 k β i 2 ,
and
E N = ρ + ρ 2 m = 0 k 1 ( m + 1 ) β m + 1 ( 1 ρ ) i = 1 k β i 2 .
Using (6)–(11), the expected total cost function, expressed explicitly as a function of the traffic intensity ρ , is given by
Φ ( ρ ; α , p 1 , , p k 1 , λ , c w , c 1 , , c k ) = c w ρ + ρ 2 1 ρ · i = 0 k 1 m = i 2 i β i + 1 α m i = 1 k β i α 1 i 2                                                                                                                                                                                                             + λ ρ i = 1 k β i α 1 i r = 1 k c r α r 1 ,
for α > 0 and α 1 . In particular, for α = 1 , the expected total cost function reduces to
Φ ( ρ ; 1 , p 1 , , p k 1 , λ , c w , c ) = c w ρ + ρ 2 m = 0 k 1 ( m + 1 ) β m + 1 ( 1 ρ ) i = 1 k β i 2 + k c λ ρ i = 1 k β i ,
where r = 1 k c r α r 1 = k c , since c r = c for all r = 1 , , k .
We focus on the analysis of (12), since (13) is a special case. Differentiating Φ with respect to ρ yields
Φ ( ρ ; α , p 1 , , p k 1 , λ , c w , c 1 , , c k ) =                                               = c w 1 + 2 ρ ρ 2 ( 1 ρ ) 2 · i = 0 k 1 m = i 2 i β i + 1 α m i = 1 k β i α 1 i 2 λ ρ 2 i = 1 k β i α 1 i r = 1 k c r α r 1 .
To determine the optimal traffic intensity, we minimize the expected total cost function (12) with respect to the traffic intensity ρ ( 0 , 1 ) . Since the function (12) is continuously differentiable on ( 0 , 1 ) , a necessary condition for optimality is
Φ ( ρ ; α , p 1 , , p k 1 , λ , c w , c 1 , , c k ) = 0 .
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 ( 0 , 1 ) determines the optimal traffic intensity. The resulting equation is
A ρ 4 + B ρ 3 + C ρ 2 + D ρ + E = 0 ,
where
A = c w i = 1 k β i α 1 i 2 c w i = 0 k 1 m = i 2 i β i + 1 α m , B = 2 c w i = 0 k 1 m = i 2 i β i + 1 α m 2 c w i = 1 k β i α 1 i 2 , C = c w i = 1 k β i α 1 i 2 λ i = 1 k β i α 1 i 3 r = 1 k c r α r 1 , D = 2 λ i = 1 k β i α 1 i 3 r = 1 k c r α r 1 , E = λ i = 1 k β i α 1 i 3 r = 1 k c r α r 1 .
We solve Equation (15) numerically using Wolfram Mathematica 14. The main goal is to identify an optimal solution ρ * satisfying 0 < ρ * < 1 . This also yields corresponding optimal service speeds μ i * , i = 1 , , k , when α > 0 and α 1 , and the corresponding optimal service speed μ * when α = 1 , 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 M / C o x k ( p 1 , p k 1 ; μ 1 , , μ k ) / 1 queueing system operating in steady state and characterized by customer service speed variability, for α > 0 and α 1 , there exists a unique solution ρ * of (15) satisfying 0 < ρ * < 1 . Moreover, the expected total cost function (12) attains its absolute minimum at ρ * , and the minimal cost is Φ ( ρ * ; α , p 1 , , p k 1 , λ , c w , c 1 , , c k ) .
Proof. 
We first show the existence of a solution in ( 0 , 1 ) . Let
h ( ρ ) = c w ρ 2 i = 1 k β i α 1 i 2 ( 1 ρ ) 2 + i = 0 k 1 m = i 2 i β i + 1 α m ( 2 ρ ρ 2 )                                                                                                                                                                                   λ i = 1 k β i α 1 i 3 r = 1 k c r α r 1 ( 1 ρ ) 2
denote the numerator of (14). Then,
h ( 0 ) = λ i = 1 k β i α 1 i 3 r = 1 k c r α r 1 < 0
and
h ( 1 ) = c w i = 0 k 1 m = i 2 i β i + 1 α m > 0 ,
for each λ > 0 , 0 p j 1 , j = 1 , , k 1 , c w > 0 , c r > 0 , r = 1 , , k , α > 0 , and α 1 . Since h is continuous, the intermediate value theorem implies that there exists at least one ρ * ( 0 , 1 ) such that h ( ρ * ) = 0 .
Next, we compute the second derivative of the expected total cost function (12):
Φ ( ρ ; α , p 1 , , p k 1 , λ , c w , c 1 , , c k ) = 2 c w ( 1 ρ ) 3 · i = 0 k 1 m = i 2 i β i + 1 α m i = 1 k β i α 1 i 2                                                                                                                                                                                                                     + 2 λ ρ 3 i = 1 k β i α 1 i r = 1 k c r α r 1 .
Since Φ ( ρ ; α , p , λ , c w , c 1 , c 2 ) > 0 for every 0 < ρ < 1 , the function (12) is convex on ( 0 , 1 ) . Because there exists at least one stationary point in ( 0 , 1 ) and Φ is convex on this interval, the stationary point is unique. Therefore, the solution ρ * of (15) satisfying 0 < ρ * < 1 is unique, and (12) attains its absolute minimum at ρ * with minimal value Φ ( ρ * ; α , p 1 , , p k 1 , λ , c w , c 1 , , c k ) . □

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 k = 2 . In this setting, the waiting-cost parameter is c w (common to both parts of our approach). The amortization cost parameters are c 1 and c 2 for α > 0 and α 1 , whereas for α = 1 , we assume a common amortization cost c for both phases. To make the two models comparable, we choose c so that
c 1 + α c 2 = 2 c .
More precisely, when α = 0.5 , the amortization term weights the slower phase by the factor α = 0.5 , so the total amortization component involves c 1 + 0.5 c 2 . When α = 1 , both phases operate at the same speed, and the corresponding total amortization component can be written as 2 c . Hence, imposing c 1 + α c 2 = 2 c 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 k = 2 :
Φ ( ρ ; α , p , λ , c w , c 1 , c 2 ) = c w ρ + α 2 + p + α p ρ 2 ( α + p ) 2 ( 1 ρ ) + λ ( α + p ) ( c 1 + α c 2 ) α ρ ,
and
Φ ( ρ ; 1 , p , λ , c w , c ) = c w ρ + 1 + 2 p ρ 2 ( 1 + p ) 2 ( 1 ρ ) + 2 λ c ( 1 + p ) ρ ,
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 k = 2 , 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 ρ < 1 , allowing the analysis of different congestion levels and their impact on optimal traffic intensity.
The phase-speed factor α represents two operating regimes: α = 1 for homogeneous service speeds and α < 1 for heterogeneous service speeds with unbalanced phase workloads. This enables a direct comparison of balanced and imbalanced service configurations.
The waiting-cost coefficient c w and the amortization costs c 1 and c 2 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 c w 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 c w

Let c w initial denote the baseline value of the waiting-cost parameter c w . We examine the sweep of the optimal solutions to changes in c w by applying percentage perturbations
Δ c w : 0 % , ± 10 % , , ± 90 % around c w initial = 6 ,
and defining
c w new = c w initial + Δ c w .
All remaining cost and non-cost parameters are held fixed: λ = 25 , p = 0.5 , c 1 = 12 , c 2 = 8 (for α = 0.5 ), and c = 8 (for α = 1 ). 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 α = 0.5 ) and Table 2 (for α = 1 ). Table 1 reports the percentage change Δ c w , the updated value c w new , the optimal traffic intensity ρ * , the optimal first-phase service speed
μ 1 * = λ ( α + p ) α ρ * ,
the optimal second-phase service speed μ 2 * = α μ 1 * , and the optimal expected total cost Φ ( ρ * ) of (16). Table 2 reports: Δ c w , c w new , ρ * , the optimal service speed
μ * = λ ( 1 + p ) ρ * ,
and the optimal expected total cost Φ ( ρ * ) of (17).
Effect of changes in c w new . Using Table 1 ( α = 0.5 ), a 90 % decrease in c w (from 6 to 0.6 ) raises the optimal traffic intensity from ρ base * = 0.9203 to 0.9733 (+5.75%), whereas a 90 % increase to 11.4 lowers it to 0.8934 (−2.92%). The optimal service speeds change in the opposite direction: μ 1 * increases from 54.33 to 55.97 under + 90 % (+3.01%) and decreases to 51.37 under 90 % (−5.45%), since μ 2 * = α μ 1 * , μ 2 * follows the same pattern. The optimal expected total cost rises from 938.56 to 990.99 (+5.59%) for + 90 % and falls to 843.82 (−10.09%) for 90 % . Overall, the traffic intensity and cost are more sensitive to decreases in c w than to increases.
For Table 2 ( α = 1 ), the baseline values are ρ base * = 0.9138 , μ base * = 41.0371 , and Φ ( ρ * ) base = 713.7463 . A 90 % change increases traffic intensity to 0.9710 (+6.26%), while a + 90 % change reduces it to 0.8849 (−3.16%). The optimal service speed decreases to 38.6181 (−5.90%) for 90 % and increases to 42.3775 (+3.27%) for + 90 % . The optimal cost decreases to 635.8418 (−10.92%) for 90 % and increases to 757.0696 (+6.07%) for + 90 % . Thus, decreasing c w 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 α = 1 model consistently yields lower optimal expected total cost across all c w new values (e.g., 713.75 vs. 938.56 at the baseline). It also operates at lower traffic intensity, indicating reduced congestion and improved stability. Although α = 0.5 allows phase-specific service speeds, this flexibility does not reduce cost in the examined scenarios. Hence, under waiting-cost perturbations, the α = 1 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 c w new . The α = 0.5 model exhibits stronger responsiveness in traffic intensity and service speeds, indicating higher sweep to cost changes, while α = 1 shows more gradual adjustments and smoother cost evolution.
Overall, the α = 1 configuration achieves lower optimal cost, lower traffic intensity, and more moderate sweep to c w new . 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 ( c w , α ) , we compute the optimal traffic intensity level
ρ * ( c w , α ) = arg min ρ ( 0 , 1 ) Φ ( ρ ; α , c w ) ,
and plot the corresponding minimized cost value Φ ( ρ * ( c w , α ) ) as a color-coded surface over the domain
c w [ 0.6 , 11.4 ] , α [ 0.5 , 1 ] .
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 α = 0.5 and α = 1 , 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 c w and with decreasing values of the phase-speed factor α . Lower cost levels are concentrated in the region of small c w and α close to 1, corresponding to balanced service speeds across phases. In contrast, heterogeneous service speeds ( α < 1 ) lead to systematically higher costs for the same waiting-cost level. Overall, the figure confirms that c w 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 c w new . The estimated coefficients (with standard errors, test statistics, and p-values) are reported in Table 3 for both α = 0.5 and α = 1 .
In Table 3, the independent variable is c w new and is denoted by x for brevity (the same convention is used later for ( c 1 + α c 2 ) n e w or 2 c new ). For each coefficient β i , we test H 0 : β i = 0 against H 1 : β i 0 . At conventional significance levels (e.g., 0.05 or 0.01 ), all reported p-values satisfy α > p-Value; hence, H 0 is rejected for every term. The corresponding fitted curves are shown in Figure 2.
Table 4 summarizes the fit quality. All models achieve R 2 > 0.999 (and similarly high adjusted R 2 ). The errors are small: for ρ * , the RMSE is 0.000601429 ( α = 0.5 ) and 0.000655599 ( α = 1 ); for Φ ( ρ * ) , the MAE is below 1 and the RMSE is 0.972445 ( α = 0.5 ) and 0.792025 ( α = 1 ). The relative errors are also very small (MAPE below 0.1 % in all cases). Overall, third-degree polynomials provide accurate compact approximations of the numerically obtained optimal solutions over the tested range of c w new .

6.3. Sweep and Statistical Analysis Based on Changes in the Amortization Cost Parameters c 1 , c 2 , 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 c 1 + α c 2 = 2 c .
For the first case ( α = 0.5 ), we select the initial values c 1 = 12 and c 2 = 8 , which yield ( c 1 + α c 2 ) initial = 16 . We then vary this quantity according to the rate
Δ ( c 1 + α c 2 ) : 0 % , ± 10 % , , ± 90 %
relative to ( c 1 + α c 2 ) initial , and we compute the corresponding new values
( c 1 + α c 2 ) new = ( c 1 + α c 2 ) initial + Δ ( c 1 + α c 2 ) .
For the second case ( α = 1 ), we choose the initial value c initial = 8 , which implies 2 c initial = 16 . The new values are then obtained as
2 c new = 2 c initial + Δ 2 c ,
where
Δ 2 c : 0 % , ± 10 % , , ± 90 %
is defined relative to 2 c initial .
All remaining parameters are held fixed throughout the experiments, namely λ = 25 , p = 0.5 , and c w = 6 . The numerical results are reported in Table 5 for α = 0.5 and in Table 6 for α = 1 .
Specifically, Table 5 contains the percentage change of c 1 + α c 2 , which is denoted by Δ ( c 1 + α c 2 ) , the new value ( c 1 + α c 2 ) n e w , the optimal traffic intensity ρ * , the optimal service speed in the first phase
μ 1 * = λ ( α + p ) α ρ * ,
the optimal service speed in the second phase μ 2 * = α μ 1 * , and the corresponding optimal value of the cost function (16), denoted by Φ ( ρ * ) .
Similarly, Table 6 reports the percentage change of 2 c , denoted by Δ 2 c , the new value 2 c new , the optimal traffic intensity ρ * , the optimal service speed
μ * = λ ( 1 + p ) ρ * ,
and the optimal value of the cost function (17), Φ ( ρ * ) .
Effect of Changes in ( c 1 + α c 2 ) new and 2 c new . For α = 0.5 , reducing ( c 1 + α c 2 ) by 90 % from the baseline ( c 1 + α c 2 ) initial = 16 decreases the optimal traffic intensity ρ * by about 15%, increases the optimal service speeds μ 1 * and μ 2 * by roughly 17%, and reduces the expected total cost Φ ( ρ * ) by approximately 87%. Conversely, increasing the cost by 90 % raises ρ * by about 2.5%, reduces service speeds by about 2.2%, and increases Φ ( ρ * ) by about 82.3%.
For α = 1 , a 90 % decrease in 2 c n e w leads to a slightly stronger response: ρ * decreases by about 15.8%, μ * increases by about 18.7%, and Φ ( ρ * ) decreases by roughly 86.5%. A 90 % 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 α = 0.5 model consistently requires higher service speeds than the single speed μ * under α = 1 , indicating more intensive service operation. Moreover, cost increases are steeper for α = 0.5 , whereas the α = 1 configuration exhibits smoother cost growth and lower service effort. Overall, α = 1 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 α = 0.5 configuration shows stronger sweep in Φ ( ρ * ) , indicating lower robustness to cost perturbations. In contrast, α = 1 yields smoother cost trajectories and more stable service speeds.
Overall, although both models adjust effectively to amortization-cost variation, the α = 1 configuration provides more stable and predictable performance with lower sweep and smoother cost evolution. The α = 0.5 model remains more responsive but also more volatile, which may complicate cost control. These results highlight the advantage of α = 1 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 ( c 1 + α c 2 ) new (or 2 c new ) 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 c 1 + α c 2 (or 2 c ), 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 α = 1 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 ( c 1 + α c 2 ) new for α = 0.5 (or equivalently 2 c n e w for α = 1 ) to the optimal solutions ρ * and Φ ( ρ * ) . The estimated coefficients are reported in Table 7. As before, for each coefficient, we test H 0 : β i = 0 against H 1 : β i 0 ; 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 ( R 2 = 0.976832 for α = 0.5 and R 2 = 0.977476 for α = 1 ) with an MAE of 0.0047567 0.00501346 and RMSE of 0.00598552 0.00630303 (MAPE below 0.6 % ). For Φ ( ρ * ) , the fits are nearly exact ( R 2 > 0.99999 ) with RMSE values of 0.972445 ( α = 0.5 ) and 0.797297 ( α = 1 ) and an MAPE below 0.25 % . 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 α = 0.5 and α = 1 via the paired differences
Δ ρ * = ρ α = 0.5 * ρ α = 1 * , Δ Φ ( ρ * ) = Φ ( ρ * ) α = 0.5 Φ ( ρ * ) α = 1 .
The distributions of Δ ρ * and Δ Φ ( ρ * ) are displayed in Figure 5: panels (a)–(b) correspond to the sweep runs in Table 1 and Table 2 (varying c w new ), while panels (c)–(d) correspond to Table 5 and Table 6 (varying ( c 1 + α c 2 ) new = 2 c new ). 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 n = 19 paired observations in each comparison, all differences are strictly positive in Figure 5a–d. The test yields W = 190 and p = 0.00014 , so for H 0 , the median difference equaling zero, is rejected at the 5% level for both Δ ρ * and Δ Φ ( ρ * ) under both the c w new -variation and the amortization-cost-variation experiments. Therefore, α = 1 systematically achieves smaller optimal traffic intensity and lower optimized expected total cost than α = 0.5 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 M / C o x k ( p 1 , , p k 1 ; μ 1 , , μ k ) / 1 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 α = 1 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 ( α < 1 ) 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 μ i = μ 1 α i 1 , i = 1 , , k . 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.

Author Contributions

Conceptualization, S.M.; Methodology, S.M., A.P.-M. and V.B.; Software, S.M.; Validation S.M., A.P.-M. and V.B.; Formal analysis, S.M., A.P.-M. and V.B.; Investigation, S.M.; Resources, S.M.; Data curation, S.M.; Writing—original draft preparation, S.M.; Writing—review and editing, S.M., A.P.-M. and V.B.; Visualization, S.M.; Supervision, A.P.-M. and V.B. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Informed Consent Statement

Not applicable.

Data Availability Statement

The original contributions presented in this paper are included in the article. Further inquiries can be directed to the corresponding author.

Acknowledgments

This research was partially supported by the Faculty of Computer Science and Engineering at the Ss. Cyril and Methodius University in Skopje, North Macedonia.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. He, Q.M.; Zhang, H. Coxian approximations of matrix-exponential distributions. Calcolo 2007, 44, 235–264. [Google Scholar] [CrossRef]
  2. Esparza, L.J.R. Maximum Likelihood Estimation of Phase-Type Distributions. Ph.D. Thesis, Technical University of Denmark, Lyngby, Denmark, 2011. [Google Scholar]
  3. Sağlam, V.; Sağır, M.; Yücesoy, E.; Zobu, M. On Optimal Ordering of Service Parameters of a Coxian Queueing Model with Three Phases. OJOp 2015, 4, 61–68. [Google Scholar] [CrossRef]
  4. Neuts, M.F. Matrix-Geometric Solutions in Stochastic Models: An Algorithmic Approach; Dover Publications: New York, NY, USA, 1994. [Google Scholar]
  5. Alfa, A.S. Discrete time queues and matrix-analytic methods. TOP 2002, 10, 147–185. [Google Scholar] [CrossRef]
  6. Neuts, M.F. Matrix-Analytic Stochastic Models. In Encyclopedia of Operations Research and Management Science; Gass, S.I., Fu, M.C., Eds.; Springer: Boston, MA, USA, 2013; pp. 499–503. [Google Scholar] [CrossRef]
  7. Chakravarthy, S.R.; Meena, R.K.; Choudhary, A. Queues with Markovian Arrivals, Phase-Type Services, Breakdowns, and Repairs. In Distributed Computer and Communication Networks (DCCN 2020); Lecture Notes in Computer Science; Vishnevskiy, V.M., Samouylov, K.E., Kozyrev, D.V., Eds.; Springer: Cham, Switzerland, 2020; Volume 12563, pp. 259–281. [Google Scholar] [CrossRef]
  8. Hochrainer, S.; Hochreiter, R.; Pflug, G. An algorithm for calculating steady state probabilities of M/Er/c/K queueing systems. arXiv 2014, arXiv:1401.4691. [Google Scholar]
  9. Al Hanbali, A.; Alvarez, E.M.; van der Heijden, M.C. Approximations for the waiting-time distribution in an M/PH/c priority queue. OR Spectr. 2015, 37, 529–552. [Google Scholar] [CrossRef]
  10. Jia, J.T.; Xie, R.; Xu, X.Y.; Ni, S.; Wang, J. A bidiagonalization-based numerical algorithm for computing the inverses of (p, q)-tridiagonal matrices. Numer. Algorithms 2023, 93, 899–917. [Google Scholar] [CrossRef]
  11. Dudin, A.N.; Dudin, S.A.; Dudina, O.S.; Samouylov, K.E. Analysis of queueing model with processor sharing discipline and customers impatience. Oper. Res. Perspect. 2018, 5, 245–255. [Google Scholar] [CrossRef]
  12. Lee, D.H.; Kim, B.K. A note on the sojourn time distribution of an M/G/1 queue with a single working vacation and vacation interruption. Oper. Res. Perspect. 2015, 2, 57–61. [Google Scholar] [CrossRef]
  13. Amjath, M.; Kerbache, L.; Smith, J.M.; Elomri, A. Fleet sizing of trucks for an inter-facility material handling system using closed queueing networks. Oper. Res. Perspect. 2022, 9, 100245. [Google Scholar] [CrossRef]
  14. Jen, H.H.; Hsu, C.Y.; Yen, A.M.F.; Chiu, H.M.; Chen, H.H. Queue hurdle Coxian phase-type model for two-stage process of population-based cancer screening. Stat. Methods Appl. 2022, 31, 661–678. [Google Scholar] [CrossRef]
  15. Thompson, Y.L.E.; Levine, G.M.; Chen, W.; Sahiner, B.; Li, Q.; Petrick, N.; Delfino, J.G.; Lago, M.A.; Cao, Q.; Samuelson, F.W. Applying queueing theory to evaluate wait-time-savings of triage algorithms. Queueing Syst. 2024, 108, 579–610. [Google Scholar] [CrossRef] [PubMed]
  16. Helber, S. Analysis of flow lines with Cox-2-distributed processing times and limited buffer capacity. OR Spectr. 2005, 27, 221–242. [Google Scholar] [CrossRef]
  17. Anggraito, A.; Olliaro, D.; Marin, A.; Ajmone Marsan, M. The Multiserver Job Queuing Model with two job classes and Cox-2 service times. Perform. Eval. 2025, 169, 102486. [Google Scholar] [CrossRef]
  18. Andersen, A.R. A queueing model for time-dependent rental systems with phase-type distributed rentals and substitutions of items. Ann. Oper. Res. 2025, 350, 1143–1167. [Google Scholar] [CrossRef]
  19. Protter, P.; Riveros Valdevenito, A. Markov process jump times and their Cox construction. Ann Oper Res 2024. [Google Scholar] [CrossRef]
  20. Rudec, T.; Manger, R. A fast approximate implementation of the work function algorithm for solving the k-server problem. Cent. Eur. J. Oper. Res. 2015, 23, 699–722. [Google Scholar] [CrossRef]
  21. Wartelle, A.; Mourad-Chehade, F.; Yalaoui, F.; Laplanche, D.; Sanchez, S. Changing the perspective of system crowding evaluation using a new congestion measure: Application to the Emergency Department. Oper. Res. Int. J. 2024, 24, 53. [Google Scholar] [CrossRef]
  22. Sinu Lal, T.S.; Joshua, V.C.; Vishnevsky, V.; Kozyrev, D.; Krishnamoorthy, A. A Multi-Type Queueing Inventory System—A Model for Selection and Allocation of Spectra. Mathematics 2022, 10, 714. [Google Scholar] [CrossRef]
  23. Dudin, A.; Dudina, O.; Dudin, S. Algorithmic Analysis of Queuing System with Varying Number of Servers, Phase-Type Service Time Distribution, and Changeable Arrival Process Depending on Random Environment. Computation 2025, 13, 154. [Google Scholar] [CrossRef]
  24. Ruiz-Castro, J.E.; Acal, C.; Aguilera, A.M.; Roldán, J.B. A Complex Model via Phase-Type Distributions to Study Random Telegraph Noise in Resistive Memories. Mathematics 2021, 9, 390. [Google Scholar] [CrossRef]
  25. García-Mora, B.; Santamaría, C.; Rubio, G. A Phase-Type Distribution for the Sum of Two Concatenated Markov Processes Application to the Analysis Survival in Bladder Cancer. Mathematics 2020, 8, 2099. [Google Scholar] [CrossRef]
  26. Asmussen, S.; Laub, P.J.; Yang, H. Phase-Type Models in Life Insurance: Fitting and Valuation of Equity-Linked Benefits. Risks 2019, 7, 17. [Google Scholar] [CrossRef]
  27. Vishnevsky, V.M.; Klimenok, V.I.; Sokolov, A.M.; Larionov, A.A. Investigation of the Fork—Join System with Markovian Arrival Process Arrivals and Phase-Type Service Time Distribution Using Machine Learning Methods. Mathematics 2024, 12, 659. [Google Scholar] [CrossRef]
  28. Chakravarthy, S.R. Analysis of a Queueing Model with MAP Arrivals and Heterogeneous Phase-Type Group Services. Mathematics 2022, 10, 3575. [Google Scholar] [CrossRef]
  29. Machado, E.P.; Pinto, A.C.; Ramos, R.P.; Prates, R.M.; Sá, J.d.S.; de Lima, J.I.; Costa, F.B.; Fernandes, D.; Pereira, A.C. Modeling, Control and Validation of a Three-Phase Single-Stage Photovoltaic System. Energies 2024, 17, 5953. [Google Scholar] [CrossRef]
  30. Immaculate, S.; Rajendran, P. Analysis of the Economic Cost of Coxian-2 Service with Encouraged Arrival and Balking. IJAA 2024, 22, 41. [Google Scholar] [CrossRef]
  31. Mirchevski, S.; Bakeva, V. Cost function analysis of a single-server queueing system with Poisson input stream and Erlang-k service time. Appl. Math. Comput. 2024, 475, 128729. [Google Scholar] [CrossRef]
  32. Mirchevski, S.; Bakeva, V. An Approach for Analyzing the Cost Function for One Class of Single-Server Queueing Systems with Hypoexponential Service Time. In Proceedings of the 21st International Conference on Informatics and Information Technologies, Strumica, North Macedonia, 19–21 April 2024; pp. 124–129. [Google Scholar]
  33. Mirchevski, S.; Popovska-Mitrovikj, A.; Bakeva, V. Mathematical Framework for Cost Function Constructions in Some Multi-Phase Queueing Systems: Review and Further Ideas. In Proceedings of the 18th International Symposium on Operational Research in Slovenia, Bled, Slovenia, 24–26 September 2025; pp. 125–129. [Google Scholar]
  34. Mirchevski, S.; Popovska-Mitrovikj, A.; Bakeva, V. Construction and optimization of a cost function in a single-server multi-phase queueing system with hypoexponential-k customer service time. J. Appl. Math. 2026, in press. [Google Scholar]
  35. Donnelly, C.; McFetridge, L.M.; Marshall, A.H.; Mitchell, H.J. A two-stage approach to the joint analysis of longitudinal and survival data utilising the Coxian phase-type distribution. Stat. Methods Med. Res. 2017, 27, 3577–3594. [Google Scholar] [CrossRef]
Figure 1. Heatmap of the optimized expected total cost Φ ( ρ * ) as a function of the waiting-cost parameter c w and the phase-speed factor α .
Figure 1. Heatmap of the optimized expected total cost Φ ( ρ * ) as a function of the waiting-cost parameter c w and the phase-speed factor α .
Mca 31 00043 g001
Figure 2. Fitted polynomial relationships between the waiting cost parameter c w new and (a) the optimal traffic intensity ρ * and (b) the optimal expected total cost Φ ( ρ * ) .
Figure 2. Fitted polynomial relationships between the waiting cost parameter c w new and (a) the optimal traffic intensity ρ * and (b) the optimal expected total cost Φ ( ρ * ) .
Mca 31 00043 g002
Figure 3. Heatmap of the optimized expected total cost Φ ( ρ * ) as a function of the amortization-cost parameter c 1 + α c 2 (or 2 c ) and the phase-speed factor α .
Figure 3. Heatmap of the optimized expected total cost Φ ( ρ * ) as a function of the amortization-cost parameter c 1 + α c 2 (or 2 c ) and the phase-speed factor α .
Mca 31 00043 g003
Figure 4. Fitted polynomial relationships between the amortization cost parameter ( c 1 + α c 2 ) new (or 2 c new ) and (a) the optimal traffic intensity ρ * and (b) the optimal expected total cost Φ ( ρ * ) .
Figure 4. Fitted polynomial relationships between the amortization cost parameter ( c 1 + α c 2 ) new (or 2 c new ) and (a) the optimal traffic intensity ρ * and (b) the optimal expected total cost Φ ( ρ * ) .
Mca 31 00043 g004
Figure 5. Bar-chart distributions of differences between: (a) c w new vs. Δ ρ * , (b) c w new vs. Δ Φ ( ρ * ) , (c) ( c 1 + α c 2 ) new (or 2 c new ) vs. Δ ρ * , and (d) ( c 1 + α c 2 ) new (or 2 c new ) vs. Δ Φ ( ρ * ) , for α = 0.5 and α = 1 .
Figure 5. Bar-chart distributions of differences between: (a) c w new vs. Δ ρ * , (b) c w new vs. Δ Φ ( ρ * ) , (c) ( c 1 + α c 2 ) new (or 2 c new ) vs. Δ ρ * , and (d) ( c 1 + α c 2 ) new (or 2 c new ) vs. Δ Φ ( ρ * ) , for α = 0.5 and α = 1 .
Mca 31 00043 g005
Table 1. Optimal traffic intensity, optimal service speeds and optimal expected total cost for different c w new for α = 0.5 .
Table 1. Optimal traffic intensity, optimal service speeds and optimal expected total cost for different c w new for α = 0.5 .
Δ c w c w new ρ * μ 1 * μ 2 * Φ ( ρ * )
90 % 0.60.973351.3725.68843.82
80 % 1.20.962751.9425.97861.97
70 % 1.80.954752.3726.19875.89
60 % 2.40.948152.7426.37887.64
50 % 30.942353.0626.53897.98
40 % 3.60.937153.3526.68907.33
30 % 4.20.932453.6226.81915.93
20 % 4.80.928153.8726.94923.94
10 % 5.40.924154.1127.05931.45
0 % 60.920354.3327.17938.56
+ 10 % 6.60.916754.5427.27945.33
+ 20 % 7.20.913454.7427.37951.79
+ 30 % 7.80.910154.9427.47957.99
+ 40 % 8.40.907155.1227.56963.95
+ 50 % 90.904155.3027.65969.71
+ 60 % 9.60.901355.4827.74975.27
+ 70 % 10.20.898555.6527.82980.67
+ 80 % 10.80.895955.8127.90985.90
+ 90 % 11.40.893455.9727.98990.99
Table 2. Optimal traffic intensity, optimal service speed and optimal expected total cost for different c w new for α = 1 .
Table 2. Optimal traffic intensity, optimal service speed and optimal expected total cost for different c w new for α = 1 .
Δ c w c w new ρ * μ * Φ ( ρ * )
90 % 0.60.971038.62635.84
80 % 1.20.959539.08650.72
70 % 1.80.950939.44662.16
60 % 2.40.943739.74671.81
50 % 30.937540.00680.31
40 % 3.60.931940.24688.01
30 % 4.20.926940.46695.09
20 % 4.80.922240.66701.68
10 % 5.40.917940.86707.88
0 % 60.913841.04713.75
+ 10 % 6.60.910041.21719.33
+ 20 % 7.20.906341.38724.66
+ 30 % 7.80.902941.53729.78
+ 40 % 8.40.899641.69734.71
+ 50 % 90.896441.83739.46
+ 60 % 9.60.893441.98744.06
+ 70 % 10.20.890542.11748.52
+ 80 % 10.80.887642.25752.85
+ 90 % 11.40.884942.38757.07
Table 3. Polynomial regression results for ρ * and Φ ( ρ * ) for various c w new values.
Table 3. Polynomial regression results for ρ * and Φ ( ρ * ) for various c w new values.
TermEstimateStandard Errort-Statisticp-ValueDecision for H 0
c w new vs. ρ * , α = 0.5
10.9811310.0007671751278.89 3.3483 × 10 39 Reject
x 0.0163009 0.0005395 30.2148 7.4830 × 10 15 Reject
x 2 0.00130550.00010307912.665 2.0613 × 10 9 Reject
x 3 0.000048789 5.6560 × 10 6 8.62612 3.3636 × 10 7 Reject
c w new vs. ρ * , α = 1
10.9794440.0008362741171.2 1.2527 × 10 38 Reject
x 0.017625 0.000588093 29.9697 8.4399 × 10 15 Reject
x 2 0.001416990.00011236412.6107 2.1870 × 10 9 Reject
x 3 0.0000530003 6.1654 × 10 6 8.59642 3.5133 × 10 7 Reject
c w new vs. Φ ( ρ * ) , α = 0.5
1830.1631.24044669.25 5.5388 × 10 35 Reject
x28.02230.87231432.1241 3.0244 × 10 15 Reject
x 2 2.10786 0.166668 12.6471 2.1019 × 10 9 Reject
x 3 0.07858480.009145098.59311 3.5304 × 10 7 Reject
c w new vs. Φ ( ρ * ) , α = 1
1624.6161.0103618.249 1.8188 × 10 34 Reject
x22.99950.71047232.3722 2.6989 × 10 15 Reject
x 2 −1.724850.135746−12.7064 1.9705 × 10 9 Reject
x 3 0.06435560.007448388.64021 3.2950 × 10 7 Reject
Table 4. Model evaluation metrics for polynomial fits of c w new vs. ρ * and c w new vs. Φ ( ρ * ) , for α = 0.5 and α = 1 .
Table 4. Model evaluation metrics for polynomial fits of c w new vs. ρ * and c w new vs. Φ ( ρ * ) , for α = 0.5 and α = 1 .
Metric ρ * ( α = 0.5 ) ρ * ( α = 1 ) Φ ( ρ * ) ( α = 0.5 ) Φ ( ρ * ) ( α = 1 )
R 2 0.9993120.9992950.9994750.999487
Adjusted R 2 0.9991740.9991530.999370.999385
MAE0.0004924620.0005320890.7973670.649684
MSE 3.6172 × 10 7 4.2981 × 10 7 0.9456490.627304
RMSE0.0006014290.0006555990.9724450.792025
MAPE (%)0.05276910.05730890.08750730.0940157
Max Error0.001489820.00163242.414991.96821
Table 5. Optimal traffic intensity, optimal service speeds and optimal expected total cost for different ( c 1 + α c 2 ) new for α = 0.5 .
Table 5. Optimal traffic intensity, optimal service speeds and optimal expected total cost for different ( c 1 + α c 2 ) new for α = 0.5 .
Δ ( c 1 + α c 2 ) ( c 1 + α c 2 ) new ρ * μ 1 * μ 2 * Φ ( ρ * )
90 % 1.60.785063.6931.85123.82
80 % 3.20.837859.6829.84221.97
70 % 4.80.863557.9128.95315.89
60 % 6.40.879656.8528.42407.64
50 % 80.890956.1228.06497.98
40 % 9.60.899455.5927.80587.33
30 % 11.20.906255.1827.59675.93
20 % 12.80.911754.8427.42763.94
10 % 14.40.916354.5627.28851.45
0 % 160.920354.3327.17938.56
+ 10 % 17.60.923754.1327.061025.33
+ 20 % 19.20.926753.9526.981111.79
+ 30 % 20.80.929453.8026.901197.99
+ 40 % 22.40.931853.6626.831283.95
+ 50 % 240.934053.5426.771369.71
+ 60 % 25.60.935953.4226.711455.27
+ 70 % 27.20.937753.3226.661540.67
+ 80 % 28.80.939453.2326.611625.90
+ 90 % 30.40.940953.1426.571710.99
Table 6. Optimal traffic intensity, optimal service speed and optimal expected total cost for different 2 c new for α = 1 .
Table 6. Optimal traffic intensity, optimal service speed and optimal expected total cost for different 2 c new for α = 1 .
Δ 2 c 2 c new ρ * μ * Φ ( ρ * )
90 % 1.60.769748.7296.29
80 % 3.20.825645.42171.15
70 % 4.80.853043.96242.54
60 % 6.40.870143.10312.13
50 % 80.882342.50380.59
40 % 9.60.891442.07448.23
30 % 11.20.898741.73515.26
20 % 12.80.904641.46581.80
10 % 14.40.909641.23647.94
0 % 160.913841.04713.75
+ 10 % 17.60.917540.87779.27
+ 20 % 19.20.920740.73844.55
+ 30 % 20.80.923640.60909.61
+ 40 % 22.40.926240.49974.48
+ 50 % 240.928540.391039.18
+ 60 % 25.60.930640.301103.73
+ 70 % 27.20.932540.211168.13
+ 80 % 28.80.934340.141232.41
+ 90 % 30.40.936040.071296.57
Table 7. Polynomial regression results for ρ * and Φ ( ρ * ) for various ( c 1 + α c 2 ) new (or 2 c new ) values.
Table 7. Polynomial regression results for ρ * and Φ ( ρ * ) for various ( c 1 + α c 2 ) new (or 2 c new ) values.
TermEstimateStandard Errort-Statisticp-ValueDecision for H 0
( c 1 + α c 2 ) new vs. ρ * , α = 0.5
10.7671480.007635100.4770 1.2354 × 10 22 Reject
x0.0226590.00201311.2538 1.0342 × 10 8 Reject
x 2 0.001079 0.000144 7.4790 1.9535 × 10 6 Reject
x 3 0.00001737 2.9684 × 10 6 5.8517 3.1848 × 10 5 Reject
( c 1 + α c 2 ) new vs. Φ ( ρ * ) , α = 0.5
10.7505310.00804093.3489 3.7191 × 10 22 Reject
x0.0241040.00212011.3686 9.0162 × 10 9 Reject
x 2 0.001146 0.000152 7.5405 1.7702 × 10 6 Reject
x 3 0.00001842 3.1258 × 10 6 5.8940 2.9482 × 10 5 Reject
2 c new vs. ρ * , α = 1
130.163451.2404424.3168 1.8279 × 10 13 Reject
x60.508370.32712184.9744 1.3162 × 10 26 Reject
x 2 0.29642 0.02344 12.6471 2.1019 × 10 9 Reject
x 3 0.0041440.00048238.5931 3.5304 × 10 7 Reject
2 c new vs. Φ ( ρ * ) , α = 1
125.123601.0170224.7031 1.4509 × 10 13 Reject
x46.098140.26820171.8796 3.9575 × 10 26 Reject
x 2 0.24294 0.01922 12.6425 2.1124 × 10 9 Reject
x 3 0.0033990.00039548.5965 3.5129 × 10 7 Reject
Table 8. Model evaluation metrics for polynomial fits of ( c 1 + α c 2 ) new (or 2 c new ) vs. ρ * and ( c 1 + α c 2 ) new (or 2 c new ) vs. Φ ( ρ * ) , for α = 0.5 and α = 1 .
Table 8. Model evaluation metrics for polynomial fits of ( c 1 + α c 2 ) new (or 2 c new ) vs. ρ * and ( c 1 + α c 2 ) new (or 2 c new ) vs. Φ ( ρ * ) , for α = 0.5 and α = 1 .
Metric ρ * ( α = 0.5 ) ρ * ( α = 1 ) Φ ( ρ * ) ( α = 0.5 ) Φ ( ρ * ) ( α = 1 )
R 2 0.9768320.9774760.9999960.999995
Adj. R 2 0.9721980.9729720.9999950.999994
MAE0.00475670.005013460.7973670.653177
MSE 3.5827 × 10 5 3.9728 × 10 5 0.9456490.635682
RMSE0.005985520.006303030.9724450.797297
MAPE (%)0.5421690.5777490.2185530.232559
Max Error0.01571150.01654092.414991.98262
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Mirchevski, S.; Popovska-Mitrovikj, A.; Bakeva, V. Cost Parameters-Based Comprehensive Analysis of a New Cost Function Construction for Coxian-k Queueing System Characterized by Customer Service Speed Variability. Math. Comput. Appl. 2026, 31, 43. https://doi.org/10.3390/mca31020043

AMA Style

Mirchevski S, Popovska-Mitrovikj A, Bakeva V. Cost Parameters-Based Comprehensive Analysis of a New Cost Function Construction for Coxian-k Queueing System Characterized by Customer Service Speed Variability. Mathematical and Computational Applications. 2026; 31(2):43. https://doi.org/10.3390/mca31020043

Chicago/Turabian Style

Mirchevski, Stefan, Aleksandra Popovska-Mitrovikj, and Verica Bakeva. 2026. "Cost Parameters-Based Comprehensive Analysis of a New Cost Function Construction for Coxian-k Queueing System Characterized by Customer Service Speed Variability" Mathematical and Computational Applications 31, no. 2: 43. https://doi.org/10.3390/mca31020043

APA Style

Mirchevski, S., Popovska-Mitrovikj, A., & Bakeva, V. (2026). Cost Parameters-Based Comprehensive Analysis of a New Cost Function Construction for Coxian-k Queueing System Characterized by Customer Service Speed Variability. Mathematical and Computational Applications, 31(2), 43. https://doi.org/10.3390/mca31020043

Article Metrics

Back to TopTop