Skip to Content
AlgorithmsAlgorithms
  • Article
  • Open Access

30 June 2026

21 Pages

Undiscounted Semi-Markov Decision Processes with Countably Infinite Action Spaces

,
,
,
and
1
Applied Science Department, Amity University Kolkata, Kolkata 700135, India
2
Department of Mathematics, Jadavpur University, Kolkata 700075, India
3
Department of Physics, JNCT Professional University, Bhopal 462038, India
4
School of Computer Science and Technology, Algoma University, Brampton, ON L6V 1A3, Canada

Abstract

In this article, we study semi-Markov decision processes (SMDPs) under the limiting ratio average (undiscounted) pay-off criterion, where the state space is finite and the action space of the decision maker is possibly countably infinite. We impose no restriction on the reward function. We prove that the value of such an SMDP exists and that the decision maker possesses a near-optimal ( ϵ N -optimal) deterministic (pure) semi-stationary strategy, and we give a truncation-based algorithm that computes the value and such a strategy in finite time by solving a finite linear program at each truncation level. We analyze the algorithm’s computational complexity, showing that each truncation level is solved in time polynomial in the number of state–action pairs, while the number of levels required for termination depends on the prescribed accuracy and on the model. We further establish a certified, computable bound on the truncation error under bounded rewards together with standard ergodicity and tail-regularity conditions, yielding a stopping rule that guarantees a prescribed accuracy; we delimit precisely the regime in which such a certificate exists. Numerical experiments, including randomly generated instances, illustrate the algorithm and its computational behavior. Finally, under standard ergodicity conditions, we derive an optimality equation for these SMDP models.

1. Introduction

The study of Semi-Markov Decision Processes (SMDPs) was initiated by Jewell [1] and Howard [2], and was subsequently extended and generalized by several researchers, including Ross [3], Lippman [4], and Federgruen and Tijms [5]. Over time, the framework has evolved significantly, both in terms of theoretical development and practical applicability. For instance, Xiaobo et al. [6] investigated an SMDP model under an alternative payoff criterion, leading to a broader and more flexible class of admissible strategies for the decision maker.
SMDPs provide a natural extension of classical Markov Decision Processes by allowing the sojourn time—the time spent in a state before transitioning—to be a random variable that depends not only on the current state and chosen action, but also on the subsequent state. This added layer of realism makes SMDPs particularly suitable for modelling stochastic control problems where timing plays a critical role.
In recent years, research in this area has increasingly focused on integrating SMDPs with modern computational paradigms and applying them to complex, real-world decision-making problems. In particular, under the limiting ratio average payoff criterion, the intersection of SMDPs with reinforcement learning (RL) has gained considerable attention. For example, Fatemi et al. [7] proposed a framework that incorporates SMDP structures into value-based offline RL methods, with applications in healthcare systems. Similarly, Boucher et al. [8] developed an SMDP-based approach within learning-based model predictive control for dynamical systems. Stephenson et al. [9] demonstrated how semi-Markov decision models can be used to enhance the operational efficiency of agile Earth-observing satellites.
In parallel, reinforcement-learning-based optimal-control methods for nonlinear and multi-agent systems have advanced rapidly, including SMS-based event-triggered fault-tolerant control of nonlinear systems via adaptive dynamic programming [10]; and filter-based predefined-time optimal fault-tolerant consensus control for nonlinear multi-agent systems via reinforcement learning [11]. These developments share with our work the use of average-reward/optimal-value criteria, and motivate the study of SMDP foundations on which such learning methods rest.
Beyond these developments, SMDPs have found wide-ranging applications across several domains. In aerospace engineering, for instance, they have been employed to predict the remaining useful life (RUL) of aircraft components, as studied by Diyin et al. [12]. Additional applications and methodological advancements can be found in [13,14,15,16].
In the context of healthcare systems, SMDPs are particularly effective in modelling patient progression through different stages of treatment, where transitions often follow semi-Markov dynamics. Such models help in designing policies that not only improve patient outcomes but also optimise healthcare costs. Recent contributions in this direction include [17,18,19].
Overall, the growing body of literature highlights the versatility of SMDPs and their increasing relevance in addressing both theoretical and applied problems in stochastic decision-making.
In this paper, we investigate undiscounted semi-Markov decision processes (SMDPs) with countably infinite action spaces where the state space is finite and the action space of the decision maker is (possibly) countably infinite. Such models arise in real-life decision making problems, where the set of feasible actions is not finite or unbounded in nature. Unlike classical SMDP model, where we assume that the state space and admissible action space are typically finite, we allow the action space to be countably infinite, which introduces additional computational complexity to establish the existence of optimal strategies. Here, we assume that the decision maker has access to a countably infinite set of admissible actions in each state. However, if there is any state where the number of actions is finite, then we can repeat a particular cell in that state to make the action space of that state countably infinite. We made no restrictions on the rewards. By undiscounted pay-offs, here, we mean limiting ratio average pay-offs.
From a modelling standpoint, the semi-infinite SMDPs are useful when the decision maker has a countably infinite or an indeterminate set of feasible actions. This can be illustrated by the following cases:
(i)
In inventory control with unbounded replenishment, a manager may place a replenishment order of any non-negative quantity, which makes the admissible action set in each state countably infinite. The sojourn time is state-action dependent, as the lead time before arriving stock is random. Thus, we can interpret the problem as an SMDP model.
(ii)
In the control of queueing systems, the controller may choose a service rate among a countably infinite family of service configurations (e.g., the number of activated servers k = 1 , 2 , 3 , … ), where a higher index gives faster service at greater cost. Here, the service completion time is a non-exponential random variable. Thus, we can also think of this problem in an SMDP framework.
In both cases, the cardinality of the action set is not a priori bounded, which provides the motivation to study the countably semi-infinite SMDP framework.
We prove that in such a model, the value of the decision process exists and the decision maker has near-optimal pure semi-stationary strategies. We have shown this result by exploiting the results of Sinha et al. [20], as the decision process can be regarded as a one-player game. Thus, the results can be applied for an undiscounted SMDP having finite states and countably many actions. We will refer to such SMDP as an infinite SMDP model. From the point of view of modelling real phenomena, the model with countably many actions can be used in a situation where the decision-maker has finitely many actions, but the cardinality of that set is not known appropriately. From a modeling standpoint, infinite SMDPs are particularly useful in situations where the decision maker effectively operates over a finite but indeterminate or evolving set of actions. For example, in adaptive control, inventory systems with flexible policies, or queueing systems with dynamic service configurations, the number of available actions may not be explicitly bounded or may depend on external conditions. Thus, the countable action framework provides both generality and modeling flexibility. In this paper, we consider a maximization problem for the infinite SMDP. The paper is organized as follows. Section 2 contains the preliminaries and notations of an undiscounted infinite SMDP. In Section 3, we define the undiscounted (limiting ratio average) pay-off criterion of an SMDP. In Section 4, we define the ϵ N -(near-)optimal strategy of the decision maker in an infinite SMDP and prove that the value of such an SMDP model exists, together with the existence of near-optimal pure semi-stationary strategies. Section 5 develops the algorithmic and computational contributions: we propose a truncation-based algorithm to compute the value and a near-optimal pure semi-stationary strategy (Section 5.1), analyze its complexity and convergence (Section 5.2), and establish a certified computable error bound on the truncation error together with the corresponding stopping rule (Section 5.5 and Section 5.6); numerical examples, including a worked example and randomly generated instances, are presented within this section. The optimality equation of such an SMDP model, derived under recurrence/ergodicity conditions, is given in Appendix A. Section 6 is reserved for the conclusion.

2. Preliminaries and Notations

  An undiscounted semi-Markov decision process with countably infinite action space, considered in this process, is denoted by Γ ∞ = < S , { A ( s ) : s ∈ S } , { r ( s , a ) : s ∈ S ,   a ∈ A ( s ) } , { q ( s ′ ∣ s , a ) : s ∈ S , a ∈ A ( s ) } , { τ ¯ ( s , a ) : s ∈ S , a ∈ A ( s ) } > which consists of a finite state space S = { 1 , 2 , ⋯ , z } . For each s ∈ S , we associate a countable set of actions A ( s ) = { 1 , 2 , … } . The process is controlled by a decision maker. When the system is in the state s, the controller chooses an action a ∈ A ( s ) and gets an immediate reward r ( s , a ) . Let us denote K = { ( s , a ) : s ∈ S , a ∈ A ( s ) , } to be the set of admissible tuples. For each ( s , a ) ∈ K , we denote q ( . ∣ s , a ) to be the transition law of the game. Given ( s , a ) ∈ K and s ′ ∈ S , let τ s s ′ a be the transition time random variable which denotes the time for a transition to a state s ′ from a state s by the action a ∈ A ( s ) . Let P s s ′ a = P r o b ( τ s s ′ a ≤ t ) for each ( s , a ) ∈ K , s ′ ∈ S be a probability distribution function on [ 0 , ∞ ); it is called the conditional transition time distribution function. The process moves to a state s ′ ∈ S with probability q ( s ′ ∣ s , a ) , where q ( s ′ ∣ s , a ) ≥ 0 and ∑ s ′ ∈ S q ( s ′ ∣ s , a ) = 1 .
The SMDP model evolves over infinite time horizon as below:
At the initial decision epoch, the process begins at a state s 0 ∈ S . The decision maker observes s 0 and selects an action a 0 ∈ A ( s 0 ) . As an effect of this, the decision maker gets an immediate reward r ( s 0 , a 0 ) . At the next decision epoch, the system transits to a new state s 1 ∈ S with probability q ( s 1 ∣ s 0 , a 0 ) . Let, P r s 0 s 1 a 0 ( . ) denote the transition time distribution function that determines the sojourn time taken from the state s 0 to state s 1 , when the decision maker chooses action a 0 at state s 0 . After the transition to the state s 1 , the same mechanism repeats for subsequent states and actions. The process thus continues infinitely over time. The decision maker in this model has ‘unbounded memory’ in the sense that he/she can recall at any time the states, actions and transition times of the past, which make an SMDP model, a process with perfect recall (Kuhn [21]).
It is evident that when transition times are identical, an SMDP model is reduced to an MDP (Markov Decision Process).
Here, the strategies of the decision maker are restricted to strategies with finite support, i.e., for each π ∈ Π there is k ∈ N , such that with probability 1 the decision maker chooses one of the first k cells in all states, for all histories. Mathematically, the decision maker chooses mixed actions from ∪ k ∈ N A k , where A k = { a ∈ R ∞ : a ≥ 0 , ∑ i = 1 k a i = 1 ; a i = 0 for i > k } .
We now discuss the definitions of strategy spaces of the decision maker in an undiscounted SMDP, where the state and the action space are finite. A strategy is labeled as a behavioral strategy of the decision maker, is denoted by π . By this, we mean a sequence { ( π n ) ( . ∣ h i s t n ) } n = 0 ∞ , where ( π n ) determines the action chosen by the decision maker at n-th day. This is done by mapping it with each history h i s t n of the system upto nth day (The history upto n-th day is denoted by h i s t n = ( s 0 , a 0 , , s 1 , a 1 , ⋯ , s n − 1 , a n − 1 , s n ) for n ≥ 1 , h i s t 0 = ( s 0 ) and ( s k , a k ) ∈ κ a are respectively the state and actions of the decision maker at the k-th decision epoch) to a probability distribution ( π ) n ( . ∣ h i s t n ) on A ( s n ) . Let us denote Π to be the set of behavioral strategies of the decision maker.
Semi-Markov strategy is denoted by m = { m n } n = 0 ∞ and for each n, m n depends on the initial state s 0 , the current state s n and the decision epoch number n.
Stationary strategy is generally denoted by f s = { f n } n = 0 ∞ , which is a map f s : S → P ( A ) , such that (i) f n = f s ∀ n ∈ { 0 , ⋯ , ∞ } , i.e.,  f n ( . ∣ s 0 , s 1 , ⋯ , s n = s ) = f s ( s ) also (ii) f s ( s ) ∈ P ( A ( s ) ) for each s ∈ S . We denote F s as the set of stationary strategies of the decision maker.
A pure stationary strategy is a stationary strategy in which a player selects a particular action while visiting a state s with probability 1 or probability 0. Let F s p denotes the pure stationary strategy set of the decision maker.
A strategy g s p = { g s p n } n = 1 ∞ is called semi-stationary strategy if there exists a map ζ s p : S × S → P ( A ) such that (i) g s p n ( . ∣ s 0 = s , ⋯ , s n = s ′ ) = ζ s p ( s , s ′ ) for all s 0 , s 1 , ⋯ , s n ∈ S , n ∈ { 0 , ⋯ , ∞ } and (ii) ζ s p ( s , s ′ ) has a support in A ( s ′ ) for each pair ( s , s ′ ) ∈ S × S . So, we can think of a semi-stationary strategy as a semi-Markov strategy which is independent of the day number n, i.e., for an beginning state s 0 and current state s 1 , if a semi-Markov strategy g s p ( s 0 , s 1 , n ) has no dependency on n, then we label it as a semi-stationary strategy.
Let ξ s and ξ s p denote the set of semi-stationary and pure semi-stationary strategies respectively for the decision maker.
For each undiscounted SMDP with countably infinite action space, defined as Γ ∞ , we associate a truncated SMDP Γ n , where Γ n is defined as Γ n = < S , { A n ( s ) : s ∈ S } , { r ( s , a ) : s ∈ S , a ∈ A n ( s ) } , { q ( s ′ ∣ s , a ) : s ∈ S , a ∈ A n ( s ) } > where A n ( s ) ⊂ A ( s ) consists of the actions for which a < n . Thus, the truncated game can be found from Γ by deleting all cells in Γ for which a > n where n ∈ N . We show that the value of the infinite SMDP model exists in R + z , where R + z = ( R ∪ { + ∞ } ) z . In an undiscounted infinite SMDP, any strategy with finite support n ∈ N can be identified with the strategies in Γ n . By completion with zeros in the cells of the n-truncated SMDP, the strategies for the decision maker in n-truncated SMDP Γ n , can be identified with finite support strategies of the decision maker in Γ ∞ . Similarly, by deleting zeros from the cells of the infinite SMDP, finite support strategies of the decision maker in Γ ∞ can be identified with strategies of the decision maker in Γ n for sufficiently large n.

3. Undiscounted Pay-Off Criterion in an Infinite SMDP Model

Suppose Γ = < S , A , q , P , r > is an undiscounted SMDP with finite state space denoted as S and finite action space denoted as A. Further, we denote ( X 1 , A 1 , X 2 , A 2 , ⋯ ) as a sequence of coordinates in S × ( A × S ) ∞ . Given a (behavioral) strategy π ∈ Π and an initial state s ∈ S , there is a probability measure (which is unique) P π ( . ∣ X 1 = s ) (and therefore an expectation E π ( . ∣ X 1 = s ) ) on the product σ -field of S × ( A × S ) ∞ . We have this corollary from Kolmogorov’s extension theorem. The limiting ratio average pay-off for the decision maker for a behavioral strategy π ∈ Π is defined as:
ϕ 1 ( s , π ) = lim inf n → ∞ E π ∑ m = 1 n [ r ( X m , A m ) ∣ X 1 = s ] E π ∑ m = 1 n [ τ ¯ ( X m , A m ) ∣ X 1 = s ] for all s ∈ S .
and
ϕ 2 ( s , π ) = lim sup n → ∞ E π ∑ g = 1 n [ r ( X g , A g ) ∣ X 1 = s ] E π ∑ g = 1 n [ τ ¯ ( X g , A g ) ∣ X 1 = s ] for all s ∈ S .
The expected sojourn time here is defined by:
τ ¯ ( s , a ) = ∑ s ′ ∈ S q ( s ′ ∣ s , a ) ∫ 0 ∞ t d P r s s ′ a ( t ) .
We assume that τ ¯ ( s , a ) is bounded away from zero for each ( s , a ) ∈ K , where K = { ( s , a ) : s ∈ S , a ∈ A ( s ) } .
Definition 1.
A π * ∈ Π under limiting ratio average pay-off is called optimal if:
ϕ 1 ( s , π * ) ≥ ϕ 1 ( s , π ) ( ( ϕ 2 ( s , π * ) ≥ ϕ 2 ( s , π ) ) for all π ∈ Π and all s ∈ S .
Let v 1 ( s ) = sup s ∈ S ( ϕ 1 ( s , π ) ) and v 2 ( s ) = sup s ∈ S ( ϕ 2 ( s , π ) ) . Then, v 1 ( s ) (resp. v 2 ( s ) ) is called the limiting ratio average value of the undiscounted SMDP for the initial state s ∈ S . Let f ∈ F s be a stationary strategy and s ∈ S be any arbitraty state. Then, r ( s , f ) = ∑ a ∈ A ( s ) r ( s , a ) . f ( s , a ) , τ ¯ ( s , f ) = ∑ a ∈ A ( s ) τ ¯ ( s , a ) f ( s , a ) and q ( s ′ ∣ s , f ) = ∑ a ∈ A ( s ) q ( s ′ ∣ s , a ) f ( s , a ) . Consequently, the reward vector, sojourn time vector and transition probability matrix can be defined respectively as: r ( f ) = [ r ( s , f ) ] z × 1 , τ ¯ ( f ) = [ τ ¯ ( s , f ) ] z × 1 and Q ( f ) = [ q ( s ′ ∣ s , f ) ] z × z . Let Q m ( f ) = [ q m ( s ′ ∣ s , f ) ] z × z where q m ( s ′ ∣ s , f ) is the m-step transition probability from state s to s ′ under the stationary strategy f.
The following lemma from Doob [22] illustrates how to get q * ( s ′ ∣ s ) from the m-step transition probability q m ( s ′ ∣ s ) .
Lemma 1.
Let Q = [ q ( s ′ ∣ s ) ] z × z be a matrix of transition probabilities. Then ∃ a matrix Q * = [ q * ( s ′ ∣ s ) ] z × z (whose row sums are 1), which is called the Cesaro-limiting matrix of Q, is defined as:
lim n → ∞ 1 n ∑ m = 1 n q m ( s ′ ∣ s ) = q * ( s ′ ∣ s ) s , s ′ ∈ S
Following the above lemma and Sinha et al. [23], we have the following important result:
Theorem 1.
Let f ∈ F s be a stationary strategy, then:
ϕ ( s , f ) = [ Q * ( f ) r ( f ) ] ( s ) [ Q * ( f ) τ ¯ ( f ) ] ( s ) for all s ∈ S
where Q * ( f ) is the Cesaro-limiting matrix of the transition matrix Q ( f ) and ϕ ( s , f ) is the undiscounted pay-off of the decision maker.
For a stationary strategy f ∈ F s and all s ∈ S , we denote the limiting ratio average pay-off and the value of the n-truncated SMDP associated with an infinite undiscounted SMDP as ϕ n ( s , f ) and v n . Also, for a stationary strategy f ∈ F s (with finite support) and for all s ∈ S , the pay-off function (limiting ratio average pay-off) for the undiscounted SMDP with countable actions is denoted as ϕ ∞ ( s , f ) .

4. ϵ N -Optimal Strategies for the Decision Maker in an Infinite Undiscounted SMDP Model

  In this section, we define the ϵ N -optimal or near-optimal strategies for the decision maker in an infinite undiscounted SMDP model, assuming the infinite SMDP is a maximization problem.
Definition 2.
A strategy π ϵ N * is called an ϵ N -optimal strategy if there exists a v ∞ ∈ R + z such that for all ϵ > 0 and N > 0 ( ∈ N ) and for all s ∈ S , the following inequality holds:
ϕ ∞ ( s , π ϵ N * ) ≥ v ∞ ( s ) − ϵ if v ∞ ( s ) ∈ R N if v ∞ ( s ) = + ∞
Then, v ∞ is called the value vector of the SMDP Γ ∞ .
Now, we prove the following Theorem to establish the fact that there exists an ϵ N -optimal pure semi-stationary strategy of the decision maker in the undiscounted SMDP model.
Theorem 2.
(i) 
lim n → ∞ v n  exists and equals to  v ∞ .
(ii) 
The decision maker has a near-optimal pure semi-stationary strategy in Γ ∞ .
Proof. 
We know from Sinha et al. [23], for an undiscounted (limiting ratio average) SMDP, the value and optimal pure semi-stationary strategy exists. Now the semi-stationary strategy space of Γ n + 1 contains that of Γ n . Thus the value vector v n + 1 , i.e., the maximal value in Γ n + 1 , will lie above v n , that of Γ n . So, { v n } n = 1 ∞ is an increasing sequence and hence it converges to a point w ∈ R + z coordinate-wise (where R + = R ∪ { ∞ } ) . We prove that w is the value of Γ ∞ , i.e.,  w = v ∞ .
Let π be any strategy with finite support for the decision maker in Γ ∞ . Then it can be seen as a strategy for the decision maker in Γ n for some n ∈ N . Now, we fix n 0 ∈ N to be large enough. Now, considering the n 0 -truncated SMDP Γ n 0 , we know by Sinha et al. (2017) [23] that the decision maker has an optimal pure semi-stationary strategy in Γ n 0 . Suppose f n 0 * is the optimal pure semi-stationary strategy of the decision maker in Γ n 0 . Now, by Theorem 1 of [23], we have v n 0 = ϕ n 0 ( f n 0 * ) ≥ ϕ n 0 ( π ) coordinate-wise, for all π ∈ Π . Since { v n } n = 1 ∞ is an increasing sequence converging to w ∈ R + z , we have w ≥ v n 0 ≥ ϕ n 0 ( π ) for all π ∈ Π . Thus we have w ≥ v ∞ . Now, take ϵ > 0 . As  { v n } n = 1 ∞ converges to w, there exists an n 1 ∈ N such that v n 1 ( s ) ≥ w ( s ) − ϵ if w ( s ) is finite and v n 1 ( s ) ≥ N if w ( s ) = + ∞ . Now, considering the truncated SMDP Γ n 1 , we get a pure semi-stationary strategy f n 1 * of the decision maker, having a value vector v n 1 . Thus we have
ϕ ∞ ( s , f n 1 * ) = v n 1 ( s ) ≥ w ( s ) − ϵ if w ( s ) ∈ R N if w ( s ) = + ∞
The combination of the above arguments proves our theorem.    □

5. Algorithm to Compute Value and a Near-Optimal Pure Semi-Stationary Strategy in an Undiscounted SMDP with Countably Infinite Action Spaces

We discuss an algorithm to compute the value and a near-optimal pure semi-stationary strategy of the decision maker in an undiscounted SMDP with countably infinite action space.

5.1. The Truncation Algorithm

Algorithm 1 is the proposed algorithm, where we are considering truncated SMDP models here for the computation, thus the algorithm stops in finite time and is an efficient one for computational process. We follow the algorithm proposed by Mondal [24] to compute the optimal pure semi-stationary strategy of the decision maker and value vector in each truncated SMDP. We first present the algorithm with a practical, assumption-free stopping rule (Section 5.1), analyze its complexity and convergence (Section 5.2), and then give a certified stopping rule with a computable error guarantee (Section 5.3).  
Algorithm 1: Successive truncation algorithm (heuristic stopping rule)
  • Step 1: Fix ϵ > 0 and a large positive integer N ∈ N .
  • Step 2: Given n ∈ N , consider the truncated SMDPs Γ n and Γ n + 1 .
  • Step 3: Fix an initial state s 0 ∈ S .
  • Step 4: Apply the LP algorithm by Mondal ([24]) to compute optimal pure stationary strategies f n s 0 * and f n + 1 s 0 * for the initial state s 0 of the SMDPs Γ n and Γ n + 1 respectively and also the values v n ( s 0 ) and v n + 1 ( s 0 ) , for given n.
  • Step 5: if
  • (i) ∣ v n + 1 ( s 0 ) − v n ( s 0 ) ∣ < ϵ  then  v n + 1 ( s 0 ) = v ∞ ( s 0 ) and f n + 1 s 0 * is a near-optimal pure stationary strategy for the initial state s 0 .
  • do Repeat step 4 and 5 ( i ) for all s 0 ∈ S = { 1 , 2 , … , z } to get f n + 1 * = { f n + 1 1 * , f n + 1 2 * , … , f n + 1 s 0 * , … , f n + 1 z * } as a near-optimal pure semi-stationary strategy.
  • end do
  • or
  • else if
  • (ii) ∣ v n + 1 ( s 0 ) ∣ > N for all s 0 ∈ S , then  v n + 1 ( s 0 ) = + ∞ = v ∞ ( s 0 ) and f n + 1 s 0 * is a near-optimal pure stationary strategy for the initial state s 0 .
  • do Repeat step 4 and 5 ( i i ) for all s 0 ∈ S = { 1 , 2 , … , z } to get f n + 1 * = { f n + 1 1 * , f n + 1 2 * , … , f n + 1 s 0 * , … , f n + 1 z * } as a near-optimal pure semi-stationary strategy.
  • end do
  • or
  • else if
  • (iii) ∣ v n + 1 ( s 0 ) − v n ( s 0 ) ∣ = 0  then  v n + 1 ( s 0 ) = v ∞ ( s 0 ) and f n + 1 s 0 * is a pure stationary strategy for the initial state s 0 .
  • do Repeat step 4 and 5 ( i i i ) for all s 0 ∈ S = { 1 , 2 , … , z } to get f n + 1 * = { f n + 1 1 * , f n + 1 2 * , … , f n + 1 s 0 * , … , f n + 1 z * } as an optimal pure semi-stationary strategy.
  • end do
  • end if
  • Step 6: Replace n by n + 1 and return to step 3.

5.2. Complexity and Convergence

We consider here the truncated SMDP Γ n , where the action set is
{ 1 , … , n } .
If we enlarge n, it will also enlarge the admissible finite support set. Thus, the truncated value v n is monotonically increasing in n, and
v n ↑ v ∞ as n → ∞ .
We have shown in Theorem 2 that v ∞ is the value of the SMDP.
Now, we consider the following two cases.
  • Case I: If v ∞ is finite.
Let us fix an initial state s 0 ∈ S . Then, the sequence
{ v n ( s 0 ) }
is monotone and converges to a finite limit. Hence, by Cauchy’s theorem, there exists n 1 ∈ N such that
| v n + 1 ( s 0 ) − v n ( s 0 ) | < ε , ∀ n ≥ n 1 .
Thus, Step 5(i) stops in finite time and returns
f n + 1 , s 0 *
as an optimal pure stationary strategy for the initial state s 0 .
  • Case II: If v ∞ is not finite.
If
v ∞ ( s 0 ) = + ∞
then
v n ( s 0 ) ↑ ∞ .
Therefore, for an arbitrarily large N ∈ N , we can find n ∈ N such that
v n + 1 ( s 0 ) > N .
Thus, Step 5(ii) stops and declares
v ∞ = ( ∞ , ∞ , … , ∞ )
as the value of the infinite SMDP.
Hence, in both cases, the algorithmic criterion is satisfied for some finite n ∈ N , and the algorithm terminates.
Repeating the argument for all initial states, we obtain the near-optimal pure semi-stationary strategy
f n + 1 * = { f n + 1 1 * , f n + 1 2 * , … f n + 1 z * } .
Now, we analyze the cost of producing a near-optimal pure semi-stationary strategy. The analysis separates the cost of a single linear program, the cost per truncation level, and the number of levels required for termination; it applies to both stopping rules of this section, since the per-level work is identical.
Proposition 1
(Per-iteration cost). Fix a truncation level n. For each initial state s 0 ∈ S , the linear program solved in Step 4, in occupation-measure form, has z · n decision variables and z + 1 equality constraints. A path-following interior-point method solves it in O ( z n L ) iterations, where L is the bit length of the data, each iteration solving a normal-equation system in O ( z 3 n 2 ) operations; the single-solve cost L LP ( z n ) is polynomial in z n . Computing the value vector v n and an optimal pure semi-stationary strategy f n + 1 * requires z such solves, at per-level cost C level ( n ) = z L LP ( z n ) .
Proof. 
The truncated SMDP Γ n has z states and at most n actions per state, and hence at most z · n admissible state–action pairs, which index the occupation-measure variables; the equality constraints are the z balance constraints together with one normalization constraint. By Mondal [24], for a fixed initial state the value and an optimal pure stationary strategy of a finite multichain SMDP are recovered from an optimal solution of this program; repeating over the z initial states assembles f n + 1 * . The interior-point bounds are classical: O ( v L ) iterations [25] for v variables, each dominated by an O ( c v 2 ) normal-equation solve for c constraints, giving the cubic single-solve bound O ( ( z n ) 3 L ) [26]. Multiplying by the z initial states, we get C level ( n ) . □
Remark 1.
Since A n ( s ) ⊂ A n + 1 ( s ) , the optimal basis at level n warm-starts the program at level n + 1 , so each re-optimization typically reduces to a few dual-simplex pivots. This does not change the worst-case bound but accounts for the favorable observed running times.
Let n * be the truncation level at which the stopping rule first fires. By Proposition 1, the total cost is
C total = ∑ n = 1 n * z L LP ( z n ) = O z n * L LP ( z n * ) ,
polynomial in z and n * once n * is fixed. The level n * is finite but is not bounded by the input size in general: it depends on the accuracy parameters ( ϵ , N ) and on the rate of convergence of the monotone sequence v n ↑ v ∞ (Theorem 2). When v ∞ is finite, n * = n * ( ϵ ) is governed by the convergence rate; when v ∞ ( s ) = + ∞ for all s ∈ S , n * = n * ( N ) is the first level exceeding the cutoff N. In both cases monotonicity guarantees termination after finitely many iterations. The algorithm is thus polynomial per iteration with a finite termination level that depends on the accuracy parameters and on the model rather than on the number of states; it is not strongly polynomial, and we make no such claim.

Numerical Example

Consider an undiscounted infinite SMDP Γ ∞ with three states S = { 1 , 2 , 3 } , A ( 1 ) = A ( 2 ) = A ( 3 ) = { 1 , 2 , ⋯ } . Thus, in all states, the decision maker has action sets whose cardinality is not finite. The rewards, probability of transition, and the mean (expected) sojourn times for the decision maker are shown below in each cell of the infinite SMDP:
1
( 1 , 0 , 0 )
1
1
( 1 , 0 , 0 )
2.1
1
( 1 2 , 1 4 , 1 4 )
3.4
2 0.86
( 1 , 0 , 0 )
1
( 1 + 1 4 )
( 1 2 , 0 , 1 2 )
2.1
( 1 + 1 8 )
( 3 4 , 1 8 , 1 8 )
3.4
State-1: 3 0.86
( 1 , 0 , 0 )
1
State-2: ( 1 + 1 4 + 1 9 )
( 1 3 , 0 , 2 3 )
2.1
State-3: ( 1 + 1 8 + 1 27 )
( 5 6 , 1 12 , 1 12 )
3.4
⋮ ⋮ ⋮
n 0.86
( 1 , 0 , 0 )
1
( 1 + 1 4 + … 1 n 2 )
( 1 n , 0 , 1 − 1 n )
2.1
( 1 + 1 8 + … 1 n 3 )
( 1 − 1 2 n , 1 4 n , 1 4 n )
3.4
⋮ ⋮ ⋮
We can write the reward function as:
r ( 1 , n ) = n 0.86 , r ( 2 , n ) = ∑ n = 1 ∞ ( 1 / n 2 ) and r ( 3 , n ) = ∑ n = 1 ∞ ( 1 / n 3 ) for n ∈ N .
The transition probabilities can be written as:
p ( 1 ∣ 1 , n ) = 1 , p ( 2 ∣ 1 , n ) = 0 , p ( 3 ∣ 1 , n ) = 0 .
p ( 1 ∣ 2 , n ) = 1 n , p ( 2 ∣ 2 , n ) = 0 , p ( 3 ∣ 2 , n ) = 1 − 1 n .
p ( 1 ∣ 3 , n ) = 1 − 1 2 n , p ( 2 ∣ 3 , n ) = 1 4 n , p ( 3 ∣ 3 , n ) = 1 4 n .
The mean sojourn times are given as:
τ ¯ ( 1 , n ) = 1 , τ ¯ ( 2 , n ) = 2.1 , τ ¯ ( 3 , n ) = 3.4 .
For each n ∈ N , we write the linear programming problem with respect to the variables x = ( x 1 n , x 2 n , x 3 n ) , y = ( y 1 n , y 2 n , y 3 n ) and t for this model as:
max [ ∑ i = 1 n i 0.86 x 1 i + ∑ i = 1 n 1 i 2 x 2 i + ∑ i = 1 n 1 i 3 x 3 i ]
With respect to the constraints:
(i)
∑ i = 1 n [ − 1 i x 2 i + ( 1 2 i − 1 ) x 3 i ] = 0
(ii)
∑ i = 1 n [ x 2 i − 1 4 i x 3 i ] = 0
(iii)
∑ i = 1 n [ ( 1 i − 1 ) x 2 i + ( 1 − 1 4 i ) x 3 i ] = 0
(iv)
∑ i = 1 n [ x 1 i − 1 i y 2 i + ( 1 2 i − 1 ) y 3 i ] − δ s 0 1 t = 0
(v)
∑ i = 1 n [ x 2 i + y 2 i − 1 4 i y 3 i ] − δ s 0 2 t = 0
(vi)
∑ i = 1 n [ x 3 i + ( 1 i − 1 ) y 2 i + ( 1 − 1 4 i ) y 3 i ] − δ s 0 3 t = 0
(vii)
∑ i = 1 n [ x 1 i + 2.1 x 2 i + 3.4 x 3 i ] = 1
where x 1 n , x 2 n , x 3 n , y 1 n , y 2 n , y 3 n , t ≥ 0 for all n ∈ N . Let us fix N = 100 in this case. The values of v n + 1 and v n for each n ∈ N are given below.
Value of n v n v n + 1
1 ( 1 , 1 , 1 ) ( 1.828427 , 1.828427 , 1.828427 )
2 ( 1.828427 , 1.828427 , 1.828427 ) ( 2.196152 , 2.196152 , 2.196152 )
3 ( 2.196152 , 2.196152 , 2.196152 ) ( 3 , 3 , 3 )
4 ( 3 , 3 , 3 ) ( 4.180340 , 4.180340 , 4.180340 )
5 ( 4.180340 , 4.180340 , 4.180340 ) ( 6.696938 , 6.696938 , 6.696938 )
6 ( 6.696938 , 6.696938 , 6.696938 ) ( 8.520259 , 8.520259 , 8.520259 )
7 ( 8.520259 , 8.520259 , 8.520259 ) ( 12.627417 , 12.627417 , 12.627417 )
8 ( 12.627417 , 12.627417 , 12.627417 ) ( 17 , 17 , 17 )
9 ( 17 , 17 , 17 ) ( 23.622777 , 23.622777 , 23.622777 )
10 ( 23.622777 , 23.622777 , 23.622777 ) ( 30.482873 , 30.482873 , 30.482873 )
11 ( 30.482873 , 30.482873 , 30.482873 ) ( 37.569219 , 37.569219 , 37.569219 )
12 ( 37.569219 , 37.569219 , 37.569219 ) ( 45.872167 , 45.872167 , 45.872167 )
13 ( 45.872167 , 45.872167 , 45.872167 ) ( 53.383203 , 53.383203 , 53.383203 )
14 ( 53.383203 , 53.383203 , 53.383203 ) ( 59.094750 , 59.094750 , 59.094750 )
15 ( 59.094750 , 59.094750 , 59.094750 ) ( 67 , 67 , 67 )
16 ( 67 , 67 , 67 ) ( 77.092796 , 77.092796 , 77.092796 )
17 ( 77.092796 , 77.092796 , 77.092796 ) ( 85.367532 , 85.367532 , 85.367532 )
18 ( 85.367532 , 85.367532 , 85.367532 ) ( 92.819080 , 92.819080 , 92.819080 )
19 ( 92.819080 , 92.819080 , 92.819080 ) ( 99.442719 , 99.442719 , 99.442719 )
20 ( 99.442719 , 99.442719 , 99.442719 ) ( 108.234090 , 108.234090 , 108.234090 )
⋮⋮⋮
1000 ( 1851.73 , 1851.73 , 1851.73 ) ( 1866.5 , 1866.5 , 1866.5 )
Now, applying our algorithm, we conclude v ∞ = ( + ∞ , + ∞ , + ∞ ) . Now, for the initial state 1, the optimal pure stationary strategy is f 1 * = ( 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 ) . Similarly, for the initial state 2 and 3, the optimal pure stationary strategies are f 2 * = ( 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 ) and f 3 * = ( 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 ) . Thus, f * = ( f 1 * , f 2 * , f 3 * ) is the pure near-optimal semi-stationary strategy. Intuitively,
v ∞ = ( + ∞ , + ∞ , + ∞ )
reflects that the reward
r ( i , n ) = n 0.86
is unbounded for n ∈ N .
Here, the sojourn time
τ ¯ ( i , n ) = 1
is fixed for state 1. Thus, the decision maker can make the long-run limiting ratio average reward as large as desired by committing to actions of sufficiently high index.
No single stationary (pure) or pure semi-stationary strategy can attain the supremum. Thus, we fail to obtain an optimal strategy. Therefore, for each N, we set a tolerance ϵ > 0 and obtain an ϵ N -optimal (near-optimal) pure semi-stationary strategy.

5.3. Certified Truncation Error and Corrected Stopping Rule

The stopping test | v n + 1 ( s ) − v n ( s ) | < ϵ compares two successive truncations and does not by itself certify closeness of v n to the infinite-action value v ∞ . We replace it with a rule based on the Bellman residual of the truncated solution, which bounds the remaining error directly, and we delimit precisely the regime in which such a certificate exists. We work in the data-transformed average-reward model of Appendix A (unit sojourn times, reward r ^ , transitions q ^ , optimal gain g * = v ∞ which is state-independent under (C1), optimal relative-value function h * ). In addition to the standing finiteness of S, we assume:

5.4. Assumptions

Assumption 1
(Bounded normalized reward). | r ^ ( s , a ) | = | r ( s , a ) / τ ¯ ( s , a ) | ≤ M for all ( s , a ) , for some M < ∞ .
Assumption 2
(Ergodicity). There exists a distinguished state x 0 ∈ S and a finite T such that E f [ T x 0 ∣ X 0 = y ] ≤ T for every y ∈ S and every finite-support stationary strategy f, where T x 0 = inf { n ≥ 1 : X n = x 0 } .
Assumption 3
(Tail regularity). For each s ∈ S , the normalized reward r ^ ( s , a ) = r ( s , a ) / τ ¯ ( s , a ) is eventually non-increasing in the action index a; equivalently, sup a > n r ^ ( s , a ) is a computable function of n that converges to a finite limit as n → ∞ .
Assumptions 1 and 2 are those already used for the optimality equation of Appendix A. Assumption 3 is the additional structural hypothesis that makes the excluded actions’ best possible contribution computable; it holds, for instance, whenever rewards are bounded and the per-action reward does not grow with the action index. It necessarily fails in the regime of the example of Section Numerical Example (Level 3 in Section 5.2), where r ( 1 , a ) = a 0.86 is increasing and v ∞ = + ∞ (see Remark 2).

5.5. The Certified Error Bound

Let ( v n , h n ) be the gain and relative-value function returned by the truncated problem Γ n , i.e., the solution of the truncated optimality equation
h n ( s ) = max a ∈ A n ( s ) r ^ ( s , a ) − v n + ∑ s ′ q ^ ( s ′ ∣ s , a ) h n ( s ′ ) , s ∈ S .
Define the full-action Bellman residual of the truncated solution by
ρ n ( s ) = max a ∈ A ( s ) r ^ ( s , a ) − v n + ∑ s ′ q ^ ( s ′ ∣ s , a ) h n ( s ′ ) − h n ( s ) , ρ n = max s ∈ S ρ n ( s ) .
Proposition 2
(Certified truncation error). Under Assumptions 1–3, the residual ρ n in (12) satisfies ρ n ≥ 0 , is computable from finite data, and bounds the truncation error:
0 ≤ v ∞ − v n ≤ T ρ n ,
and ρ n → 0 as n → ∞ . Consequently, for any ϵ > 0 , once T ρ n < ϵ , the truncated strategy f n * is a certified ϵ-optimal pure semi-stationary strategy: ϕ ∞ ( s , f n * ) ≥ v ∞ ( s ) − ϵ for all s ∈ S .
Proof. 
Since A n ( s ) ⊆ A ( s ) and the maximum over A n ( s ) equals h n ( s ) by (11), the maximum over the larger set A ( s ) is at least h n ( s ) ; hence ρ n ( s ) ≥ 0 .
Splitting the maximum in (12) into a ≤ n and a > n and using (11) for the former,
ρ n ( s ) = max 0 , sup a > n r ^ ( s , a ) − v n + ∑ s ′ q ^ ( s ′ ∣ s , a ) h n ( s ′ ) − h n ( s ) .
Here, we bound ρ n above by a quantity that involves only the included data and the single next excluded action, thereby avoiding any evaluation of the infinite supremum in (14). Under Assumption 3, the tail a ↦ r ^ ( s , a ) is non-increasing for a > n (for n beyond the index at which monotonicity sets in), so sup a > n r ^ ( s , a ) = r ^ ( s , n + 1 ) . Bounding the transition term in (14) by ∑ s ′ q ^ ( s ′ ∣ s , a ) h n ( s ′ ) ≤ max s ′ h n ( s ′ ) uniformly in a, we obtain the finite, computable upper estimate
ρ ^ n ( s ) = r ^ ( s , n + 1 ) − v n + max s ′ h n ( s ′ ) − min s ′ h n ( s ′ ) , 0 ≤ ρ n ≤ max s ρ ^ n ( s ) = : ρ ^ n .
Thus, ρ ^ n is evaluated from the truncated solution ( v n , h n ) and the reward of action n + 1 alone.
Now, it suffices to show ρ ^ n → 0 . We use that the relative values converge. By Assumption 2, for every truncation level, the relative-value function admits the first-passage representation h n ( s ) = E f n * ∑ k = 0 T x 0 − 1 ( r ^ ( X k , A k ) − v n ) ∣ X 0 = s with h n ( x 0 ) = 0 , so by Assumption 1 the span is uniformly bounded, sp ( h n ) = max s h n ( s ) − min s h n ( s ) ≤ 2 M T for all n. Together with the monotone convergence v n ↑ v ∞ of Theorem 2, this uniform bound yields, along the truncation sequence, v n → v ∞ and (anchoring h n ( x 0 ) = 0 ) h n → h * coordinate-wise, where ( v ∞ , h * ) solves the full optimality equation. Passing to the limit in (15), and using r ^ ( s , n + 1 ) → r ^ ∞ ( s ) : = lim a → ∞ r ^ ( s , a ) from Assumption 3,
lim sup n → ∞ ρ ^ n ≤ max s r ^ ∞ ( s ) − v ∞ + max s ′ h * ( s ′ ) − h * ( s ) .
Since r ^ ( s , a ) is non-increasing in a, r ^ ∞ ( s ) ≤ r ^ ( s , a ) for every finite a, in particular, the limiting tail reward cannot exceed the reward of any action retained at the optimum. Evaluating the full optimality equation at the optimal action shows r ^ ( s , a * ) − v ∞ + ∑ s ′ q ^ ( s ′ ∣ s , a * ) h * ( s ′ ) = h * ( s ) , so the bracket in (16) is non-positive for each s (the excluded tail can do no better than the optimal included action). Combined with ρ n ≥ 0 this gives ρ ^ n → 0 , hence ρ n → 0 .
Error bound. From (12), for every a ∈ A ( s ) ,
r ^ ( s , a ) − v n + ∑ s ′ q ^ ( s ′ ∣ s , a ) h n ( s ′ ) ≤ h n ( s ) + ρ n .
Let a * ( s ) attain the maximum in the full optimality equation h * ( s ) = r ^ ( s , a * ) − v ∞ + ∑ s ′ q ^ ( s ′ ∣ s , a * ) h * ( s ′ ) . Writing d = h * − h n and evaluating (17) at a = a * ( s ) , then subtracting it from the full optimality equation, gives
v ∞ − v n ≤ ρ n + ( P a * d ) ( s ) − d ( s ) ,
where P a * is the transition matrix of the v ∞ -optimal policy. Iterating (18) along the chain P a * until the first passage to x 0 , the telescoping term ( P a * d − d ) accumulates to d ( x 0 ) − d ( s ) plus a remainder of at most one factor ρ n per step; by Assumption A2, the expected number of steps is at most T, while Assumption A1 guarantees d is bounded so the telescoping is legitimate. Taking expectations yields v ∞ − v n ≤ T ρ n . Combining with ρ n ≥ 0 and v n ≤ v ∞ (monotonicity, Theorem 2) gives (13). The ϵ -optimality of f n * when T ρ n < ϵ is immediate. □
The multiplicative constant is exactly the first-passage bound T of Assumption 2; the reward bound M enters only as the precondition that h n and h * have finite span, not in the constant.

5.6. Corrected Algorithm

Steps 1–3 of the algorithm of Section 5 are unchanged. Steps 4 and 5 are replaced as follows; the modification is to compute the residual ρ n and to stop on the certified bound T ρ n rather than on the one-step increment.
Step 4.
For the current truncation level n and each initial state s 0 ∈ S , solve the linear program for Γ n to obtain the value v n ( s 0 ) , the optimal pure stationary action, and the relative-value function h n . Assemble f n * = ( f n 1 * , … , f n z * ) .
Step 5.
Compute the residual estimate ρ ^ n = [ r ^ ( s , n + 1 ) − v n + ∥ h n ∥ ∞ ] − min s ′ h n ( s ′ ) from (15), and the certified error c n = T ρ ^ n . Then:
(i)
if c n < ϵ : stop; f n * is a certified ϵ -optimal pure semi-stationary strategy, with v ∞ − v n ≤ c n < ϵ ;
(ii)
else if v n ( s ) > N for all s (rewards unbounded, Assumption A3 fails): stop and certify v ∞ ( s ) = + ∞ to resolution N; f n * is N-optimal;
(iii)
else if ρ ^ n = 0 : stop; f n * is exactly optimal ( v n = v ∞ );
(iv)
else replace n by n + 1 and return to Step 4.
Relative to the original algorithm, branch (i) stops on a certified bound on the actual error rather than on the one-step change; branch (ii) is the unchanged + ∞ -cutoff; branch (iii) is the exact-optimality certificate. The increment test | v n + 1 − v n | < ϵ is removed.
Remark 2
(Scope). The certificate exists precisely under Assumptions 1–3. When rewards are unbounded and Assumption 3 fails—as in the example of Section Numerical Example (Level 3 in Section 5.2), where r ( 1 , a ) = a 0.86 grows and v ∞ = + ∞ —no finite a priori or computable truncation-error bound can exist, since v n → + ∞ . There, the algorithm certifies divergence via branch (ii) rather than claiming closeness to a finite optimum. This yields a sharp characterization: a certified truncation-error bound is available in the bounded-reward, ergodic, tail-regular sub-class and is provably unavailable outside it. The one-step increment test, by contrast, gives no guarantee in either regime.

Numerical Example

The previous worked example illustrates the algorithm and the case v ∞ = ∞ , but a single hand-constructed instance is not sufficient to assess how the method behaves as the problem grows or across varied problem data. To this end, we evaluate the algorithm on randomly generated SMDPs. An instance with z states and n actions per state is specified by a seed and the following sampling scheme: each expected sojourn time τ ¯ ( s , a ) is drawn uniformly from [ 0.5 , 3.0 ] (i.e., bounded away from zero). Here, each transition distribution q ( · ∣ s , a ) is obtained by drawing independent uniform weights, adding a small positive floor, and normalizing, which keeps the induced chains communicating. Each reward r ( s , a ) is drawn uniformly from [ 0 , 1 ] in the bounded-reward regime, or set to n 0.86 (for some n ∈ N ) times a uniform factor in the unbounded regime that mirrors the worked example. Fixing the seed makes every reported result reproducible.
Table 1 displays one such case with z = 4 states, truncated to its first five actions per state for readability; the transition, reward, and sojourn-time data are shown for each state-action pair. In the experiments that follow, the action sets are truncated at substantially larger levels and reported quantities are averaged over several seeds. We use these instances to study the algorithm’s running time and memory as a function of the number of states and to evaluate the certified truncation-error bound of Proposition 2.
Table 1. A randomly generated undiscounted SMDP instance with z = 4 states, shown truncated to the first 5 actions per state (bounded-reward regime, seed 11). For each state s and action a, the table lists the transition probabilities q ( s ′ ∣ s , a ) over the next states s ′ ∈ { 1 , 2 , 3 , 4 } , the reward r ( s , a ) , and the expected sojourn time τ ¯ ( s , a ) . Each transition row sums to one. In the experiments, the action sets are truncated at much larger levels; five actions are displayed here only for readability.
The resulting transformation parameter, the limiting-ratio-average value, and the dimensions of the linear program for this instance are summarised in Table 2, and the convergence of the truncated value v n with the truncation level n is reported in Table 3.
Table 2. Outcome of the randomly generated instance of Table 1 (bounded-reward regime, seed 11). Because this instance is communicating, the value vector v = ( v ( 1 ) , … , v ( 4 ) ) has identical components; we therefore report the common value v ( s ) as a scalar. In general, the method computes the full value vector in R + z , one component per initial state, as in the worked example of Section Numerical Example (Level 3 in Section 5.2) where v ∞ = ( + ∞ , + ∞ , + ∞ ) .
Table 3. Convergence of the truncated value v n with the truncation level n for the instance of Table 1. As above, v n ( s ) is state-independent for this communicating instance and is reported as a scalar. The sequence is non-decreasing in n (Theorem 2) and stabilises once the admitted actions no longer improve the optimum, at which point v n ( s ) = v ( s ) to the displayed precision.
Formulating in MATLAB, we get the following figures. Figure 1 plots the truncated value v n against the truncation level n for both the bounded and unbounded-reward regimes. Figure 2 reports the total running time and the termination level n * as functions of the number of states z. Figure 3 compares the one-step increment | v n + 1 − v n | with the true truncation gap v ∞ − v n , which shows that the increment is a convergence indicator rather than a certificate of closeness to v ∞ . Finally, Figure 4 shows that the certified bound c n = T ρ n of Proposition 2 dominates the true gap at every level and decreases to zero.
Figure 1. Truncated value v n versus truncation level n, computed in MATLAB. (a) Bounded rewards: v n increases to a finite limit v ∞ . (b) Unbounded rewards ( r ∝ a 0.86 ): v n increases without bound, so v ∞ = + ∞ , mirroring the worked example of Section Numerical Example (Level 3 in Section 5.2).
Figure 2. Cost of the algorithm versus the number of states z (means over several seeds), computed in MATLAB. (a) Total time to meet the stopping rule, on a logarithmic scale. (b) Termination level n * . The growth in both quantities reflects the O ( z · n ) size of each linear program together with the increase of n * with z.
Figure 3. True truncation gap v ∞ − v n and the one-step increment | v n + 1 − v n | versus n (logarithmic scale), computed in MATLAB on a bounded-reward instance. The increment falls to near zero at levels where the true gap is still appreciable, showing that the one-step test alone is a convergence indicator rather than a certificate of closeness to v ∞ .
Figure 4. Certified error bound c n = T ρ n of Proposition 2, the true gap v ∞ − v n , and the old one-step increment, versus n (logarithmic scale), computed in MATLAB. The certified bound dominates the true gap at every level and decreases towards zero, so stopping when c n < ϵ guarantees v ∞ − v n < ϵ .
Remark 3
(The two stopping rules). We retain both stopping rules because they occupy different points on the trade-off between computational economy and rigor, and neither dominates the other across all instances.
The heuristic rule of Section 5.1, based on the one-step change | v n + 1 ( s ) − v n ( s ) | < ϵ , requires no structural assumptions beyond those of the model, no ergodicity constant, and no auxiliary computation; it is therefore applicable to every instance, including those with unbounded rewards and v ∞ = + ∞ . We stress, however, that this test is an indicator of convergence and not a certificate of closeness to v ∞ : as shown in Figure 3, the increment may fall below ϵ at truncation levels where the true gap v ∞ − v n remains appreciable.
The certified rule of Section 5.6, based on the Bellman residual ρ n (Proposition 2), provides the rigorous computable guarantee 0 ≤ v ∞ − v n ≤ T ρ n and hence a certified ϵ-optimal strategy when it stops (Figure 4). This guarantee is obtained at the cost of computing the relative-value function h n and the residual ρ n at each truncation level, and of the additional hypotheses-bounded rewards, ergodicity, and tail regularity (Assumptions 1–3) under which the certificate is valid.
The two rules are thus complementary. The heuristic rule is the natural choice for rapid exploration, for problems in which the certifying assumptions cannot be verified, and for the regime v ∞ = + ∞ , where no finite truncation-error bound can exist and only the heuristic together with the N-cutoff branch is available (Remark 2). The certified rule is used whenever a guaranteed accuracy is required and its assumptions hold; in that case it is the preferred rule, since it stops on a bound on the actual error rather than on the one-step change. Both rules share the same per-level linear-programming work, so the complexity analysis of Section 5.2 applies to each; the certified rule incurs only the additional, polynomially-bounded cost of forming h n and ρ n .

6. Conclusions

We have studied undiscounted (limiting ratio average) semi-Markov decision processes with finite state space and countably infinite action space, imposing no restriction on the reward function. For this class, we proved the existence of the value and of a near-optimal pure semi-stationary strategy for the decision maker, and we proposed a truncation-based algorithm that computes the value and such a strategy in finite time, solving one finite linear program per initial state at each truncation level.
We complemented the existence result with a quantitative analysis of the algorithm. We showed that the per-level cost is polynomial in the number of state–action pairs, while the number of truncation levels needed for termination is finite but governed by the accuracy parameters and the model rather than by the number of states; the algorithm is therefore efficient per iteration but not strongly polynomial. We presented two stopping rules: a practical, assumption-free heuristic based on the one-step change in value, applicable to every instance including those with infinite value; and a certified rule based on the Bellman residual of the truncated solution, which provides a computable error bound guarantee 0 ≤ v ∞ − v n ≤ T ρ n on the truncation error under bounded rewards together with standard ergodicity and tail-regularity conditions. We showed that such a certificate is available precisely in this sub-class and is provably unavailable when the value is infinite. We also derived an optimality equation for these models under ergodicity conditions, and we reported numerical experiments, including randomly generated instances, illustrating the algorithm and its scalability.
Several directions remain open. It would be of interest to weaken the tail-regularity condition under which the certified error bound holds, and to develop approximate or learning-based methods that scale to large state spaces, where the exact linear-programming approach becomes expensive. Another natural direction is the undiscounted zero-sum two-person perfect-information semi-Markov game in which a non-fixed player has countably infinite actions in each state; the existence of near-optimal pure semi-stationary strategies in such games is worth studying.

Author Contributions

Conceptualization, K.G.B. and S.S.; methodology, K.G.B. and S.S.; validation, K.G.B., S.S., R.B., P.B. and S.N.; formal analysis, K.G.B.; investigation, K.G.B., S.S., R.B., P.B. and S.N.; writing—original draft preparation, K.G.B.; writing—review and editing, K.G.B., S.S., R.B., P.B. and S.N.; visualization, K.G.B., S.S. and R.B.; supervision, K.G.B., S.S., R.B., P.B. and S.N.; project administration, R.B., P.B. and S.N. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

No data was used for the research described in the article.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
SMDPsSemi-Markov Decision Processes
SMGsSemi-Markov Games
LPLinear Programming

Appendix A

In this undiscounted SMDP model with countably infinite action space, we have not put any restriction on the reward function. However, if we assume the reward function to be uniformly bounded over all state-action pairs, and further assuming some ergodicity conditions on the SMDP model, we can establish an optimality equation of an undiscounted SMDP model with countable action space. We state the ergodicity condition below:
C1: There exists a state x 0 ∈ S and a number (finite) T such that E f [ T x 0 ∣ X 0 = y ] ≤ T for all y ∈ S and for all stationary strategies f ∈ F s with finite support (where T x 0 = inf [ n ≥ 1 ∣ X n = X 0 ] ).
For establishing the optimality equation, we use a data transformation, which was introduced by Schweitzer (1971) [27]. Let Γ ∞ = < S , A , q , r , τ ¯ > be an SMDP with countably infinite action space considered under limiting ratio average pay-offs. Now, we associate the semi-Markov decision model with a Markov decision process (MDP) with discrete sojourn times, with state space S ^ = S , countable action space A ^ ( s ) = { A ^ ( s ) = A ( s ) : s ∈ S ^ } , one step reward r ^ ( s , a ) , one-step transition time τ ¯ ^ ( s , a ) = 1 and one-step transition probabilities q ^ ( s ′ ∣ s , a ) , where s , s ′ ∈ S , and a ∈ A ( s ) . We define them in the following:
r ^ ( s , a ) = r ( s , a ) τ ¯ ( s , a ) and q ^ ( s ′ ∣ s , a ) = η ( q ( s ′ ∣ s , a ) − δ ( s , s ′ ) ) τ ¯ ( s , a ) + δ ( s , s ′ ) ,
where δ ( s , s ′ ) is Kronecker delta function defined as δ ( s , s ′ ) = 1 if s = s ′ and 0 otherwise. The parameter η is chosen such that:
η = any value in 0 , inf ( s , a ) τ ¯ ( s , a ) 1 − q ( s ∣ s , a ) , if q ( s ∣ s , a ) < 1 for some ( s , a ) ∈ K , 1 , if q ( s ∣ s , a ) = 1 for all ( s , a ) ∈ K .
The associated β -discounted Markov decision process with countable action space is defined by Γ ^ ∞ β = < S ^ , A ^ , q ^ , r ^ > . For any β ∈ ( 0 , 1 ) , we know that the Markov decision process with countable action space has a value v ∞ β ( s ) ∈ R + z (considering maximization problem) for s ∈ S ^ and has a near-optimal pure stationary strategy. Following similar methods, as described in [20], we can also verify that the value of the above said Markov decision process satisfies the optimality equation, i.e.,
v ∞ β ( s ) = max a ∈ A ^ ( s ) [ r ^ ( s , a ) + β ∑ s ′ ∈ S q ^ ( s ′ ∣ s , a ) v ∞ β ( s ′ ) ] for all s ∈ S ^ .
Assumption: To establish the optimality equation in the SMDP model, we assume that the reward function of the Markov decision process as well as the semi-Markov decision process is uniformly bounded, i.e., ∣ r ^ ( s , a ) ∣ ≤ M , for all ( s , a ) ∈ K ^ = { ( s , a ) : s ∈ S ^ , a ∈ A ^ ( s ) } , where K ^ ⊆ S ^ × A ^ and M > 0 is a positive real number.
Now, we prove the following Lemma to establish the optimality equation of our SMDP model.
Lemma A1.
Let s 0 ∈ S ^ be fixed. Define H ∞ β ( s ) = v ∞ β ( s ) − v ∞ β ( s 0 ) . Suppose ∣ H ∞ β ( s ) ∣ < K ′ for all s ∈ S ^ and all β ∈ ( 0 , 1 ) . Then
(i) 
There exist bounded functions h ( s ) and a constant v * satisfying:
h ( s ) = max a ∈ A ^ ( s ) [ r ^ ( s , a ) − v * + ∑ s ′ ∈ S q ^ ( s ′ ∣ s , a ) h ( s ′ ) ]
(ii) 
For some sequence β n ↑ 1 , h ( s ) = lim n → ∞ H ∞ β n ( s ) .
(iii) 
lim n → ∞ ( 1 − β n ) v ∞ β n ( s 0 ) = v * .
Proof. 
Define V ∞ β ( s ) = ( 1 − β ) v ∞ β ( s ) . Then,
V ∞ β ( s 0 ) + H ∞ β ( s ) = ( 1 − β ) v ∞ β ( s 0 ) + v ∞ β ( s ) − v ∞ β ( s 0 )
= v ∞ β ( s ) − β v ∞ β ( s 0 )
= max a ∈ A ^ ( s ) [ r ^ ( s , a ) + β ∑ s ′ ∈ S q ^ ( s ′ ∣ s , a ) H ∞ β ( s ′ ) ] ( from ( A 1 ) )
Now, as the state space S ^ is finite and H ∞ β ( s ) is bounded for all β ∈ ( 0 , 1 ) , there exists a sub-sequence β n ↑ 1 such that H ∞ β n ( s ) converges to some h ( s ) for all s ∈ S . Also for β ∈ ( 0 , 1 ) , V ∞ β ( s 0 ) = ( 1 − β ) v ∞ β ( s 0 ) ≤ ( 1 − β ) M , as ∣ r ^ ( s , a ) ∣ ≤ M for all ( s , a ) ∈ S ^ × A ^ . Thus, with no loss of generality, we assume that V ∞ β n ( s 0 ) converges to v * as β n ↑ 1 . Thus, the Lemma is proved. □
From the above Lemma, we have the following equation
h ( s ) = max a ∈ A ^ ( S ) [ r ^ ( s , a ) − v * + ∑ s ′ ∈ S q ^ ( s ′ ∣ s , a ) h ( s ′ ) ] , s ∈ S ^ .
Which implies
η h ( s ) = max a ∈ A ( s ) [ r ( s , a ) − v * τ ¯ ( s , a ) + ∑ s ′ ∈ S q ( s ′ ∣ s , a ) η h ( s ′ ) ] , s ∈ S .
Thus, putting η h ( s ) = h ′ ( s ) , we have the following optimality equation for an undiscounted SMDP with countable action spaces:
h ′ ( s ) = max a ∈ A ( s ) [ r ( s , a ) − v * τ ¯ ( s , a ) + ∑ s ′ ∈ S q ( s ′ ∣ s , a ) h ′ ( s ′ ) ] .
Remark A1.
The two conditions play distinct and essential roles. The ergodicity condition C1, namely, the existence of a uniformly bounded expected first-passage time to a distinguished state x 0 over all states and all finite-support stationary strategies, guarantees that the underlying Markov chains are uniformly recurrent. Consequently, the Cesàro limits
q * ( s ′ ∣ s )
exist, and the relative-value (bias) differences
H ∞ β ( s ) = v ∞ β ( s ) − v ∞ β ( s 0 )
remain bounded as β ↑ 1 . Without this condition, the vanishing-discount limit need not yield a finite, state-independent gain v * , and the optimality Equation (A7)may fail to hold.
The uniform boundedness condition
| r ^ ( s , a ) | ≤ M
ensures that
V ∞ β ( s 0 ) = ( 1 − β ) v ∞ β ( s 0 )
remains bounded, which in turn allows the limit
v * = lim β ↑ 1 ( 1 − β ) v ∞ β ( s 0 )
to be extracted in Lemma A1.
Regarding scope, these assumptions are sufficient (and are not claimed to be necessary) and are required only for establishing the optimality-equation result of Appendix A. The existence of near-optimal pure semi-stationary strategies (Theorem 2) and the algorithm developed in Section 5 do not rely on these assumptions, since no restriction is imposed there on the reward function.
Therefore, the optimality equation applies to the subclass of undiscounted infinite-action SMDPs that are uniformly ergodic and possess uniformly bounded one-step normalized rewards, including, for example, the unichain or communicating models commonly encountered in inventory-control and queueing applications.

References

  1. Jewell, W.S. Markov-Renewal Programming. II: Infinite Return Models, Example. Oper. Res. 1963, 11, 949–971. [Google Scholar] [CrossRef] [Scilit]
  2. Howard, R.A. Semi-markovian decision-processes. Bull. Int. Stat. Inst. 1963, 40, 625–652. [Google Scholar]
  3. Ross, S.M. Applied Probability Models with Optimization Applications; Holden-Day: San Francisco, CA, USA, 1970. [Google Scholar]
  4. Lippman, S.A. Maximal average-reward policies for semi-Markov decision processes with arbitrary state and action space. Ann. Math. Stat. 1971, 42, 1717–1726. [Google Scholar] [CrossRef] [Scilit]
  5. Federgruen, A.; Hordijk, A.; Tijms, H.C. A note on simultaneous recurrence conditions on a set of denumerable stochastic matrices. J. Appl. Probab. 1978, 15, 842–847. [Google Scholar] [CrossRef] [Scilit]
  6. Liu, J.; Zhao, X. On average reward semi-Markov decision processes with a general multichain structure. Math. Oper. Res. 2004, 29, 339–352. [Google Scholar] [CrossRef] [Scilit]
  7. Fatemi, M.; Wu, M.; Petch, J.; Nelson, W.; Connolly, S.; Benz, A. Semi-markov offline reinforcement learning for healthcare. In Proceedings of the Conference on Health, Inference, and Learning, PMLR, Virtual, 7–8 April 2022. [Google Scholar]
  8. Hosseinkhan-Boucher, R.; Semeraro, O.; Mathelin, L. Increasing information for model predictive control with semi-Markov decision processes. In Proceedings of the 6th Annual Learning for Dynamics and Control Conference, PMLR, Oxford, UK, 15–17 July 2024. [Google Scholar]
  9. Stephenson, M.A.; Mantovani, L.Q.; Schaub, H. Learning Policies for Autonomous Earth-Observing Satellite Scheduling over Semi-Markov Decision Processes. J. Aerosp. Inf. Syst. 2025, 22, 89–799. [Google Scholar] [CrossRef] [Scilit]
  10. Yue, S.; Zhang, L.; Zhao, N.; Xu, N.; Alsaadi, F.E. SMS-Based Event-Triggered Fault Tolerant Control of Nonlinear Systems Using Adaptive Dynamic Programming. Int. J. Robust Nonlinear Control 2026, 36, 3752–3776. [Google Scholar] [CrossRef] [Scilit]
  11. Li, Z.; Ding, S.; Zhang, L.; Song, G. Filter-based predefined-time optimal fault-tolerant consensus control for nonlinear multi-agent systems via reinforcement learning. Neurocomputing 2026, 679, 133224. [Google Scholar] [CrossRef] [Scilit]
  12. Tang, D.; Cao, J.; Yu, J. Remaining useful life prediction for engineering systems under dynamic operational conditions: A semi-Markov decision process-based approach. Chin. J. Aeronaut. 2019, 32, 627–638. [Google Scholar] [CrossRef] [Scilit]
  13. Kotteswari, K.; Rajesh, K.D.; Balamurugan, B.; Nayyar, A.; Sharma, A.K. EELB: An energy-efficient load balancing model for cloud environment using Markov decision process. Computing 2025, 107, 81. [Google Scholar] [CrossRef] [Scilit]
  14. Liu, X.; Liu, Y.; Sun, Z.; Wang, B.; Zhao, Y. Dynamic optimization of maintenance strategy for bridges in regional transportation network through semi-Markov processes. Autom. Constr. 2025, 174, 106175. [Google Scholar] [CrossRef] [Scilit]
  15. Worthington, J.; Feletto, E.; He, E.; Wade, S.; de Graaff, B.; Nguyen, A.L.T.; George, J.; Canfell, K.; Caruana, M. Evaluating semi-Markov processes and other epidemiological time-to-event models by computing disease sojourn density as partial differential equations. Med. Decis. Mak. 2025, 45, 569–586. [Google Scholar] [CrossRef] [Scilit]
  16. Zhang, P.; Hu, J.; Wu, W. Analysis of a Semi-Markov Cold Standby System with Two Heterogeneous Components Considering Multiple Failure Modes. Axioms 2026, 15, 251. [Google Scholar] [CrossRef] [Scilit]
  17. Guo, C.; Liang, Z. Predictive inspection and maintenance optimization for partially observable semi-Markov deteriorating systems. IEEE Trans. Autom. Sci. Eng. 2025, 22, 10893–10904. [Google Scholar] [CrossRef] [Scilit]
  18. Iseh, M.J.; Matthew, M.A. Comparative Cost-analysis on Progression in HIV/AIDS Antiretroviral intake Stages using Semi-Markov Chain and Survival Analysis Models. Afr. J. Math. Stat. Actuar. Sci. 2025, 1, 27–50. [Google Scholar]
  19. Xu, B.; Kang, Y.; Zhao, X.; Yan, H.; Ju, F. Partially observable Markov decision process framework for operating condition optimization using real-time degradation signals. J. Qual. Technol. 2025, 1–26. [Google Scholar] [CrossRef] [Scilit]
  20. Sinha, S.; Thuijsman, F.; Tijs, S.H. Semi-infinite stochastic games. In Stochastic Games and Related Topics: In Honor of Professor LS Shapley; Springer: Dordrecht, The Netherlands, 1991; pp. 71–83. [Google Scholar]
  21. Kuhn, H.W. Extensive games and the problem of information. Contrib. Theory Games 1953, 2, 193–216. [Google Scholar] [CrossRef] [Scilit]
  22. Doob, J.L. Stochastic Processes; John Wiley & Sons: Hoboken, NJ, USA, 1953. [Google Scholar]
  23. Sinha, S.; Mondal, P. Semi-Markov decision processes with limiting ratio average rewards. J. Math. Anal. Appl. 2017, 455, 864–871. [Google Scholar] [CrossRef] [Scilit]
  24. Mondal, P. Computing semi-stationary optimal policies for multichain semi-Markov decision processes. Ann. Oper. Res. 2020, 287, 843–865. [Google Scholar]
  25. Renegar, J. A polynomial-time algorithm, based on Newton’s method, for linear programming. Math. Prog. 1988, 40, 59–93. [Google Scholar] [CrossRef] [Scilit]
  26. Gonzaga, C.C. An algorithm for solving linear programming problems in O(n3L) operations. In Progress in Mathematical Programming; Megiddo, N., Ed.; Springer: New York, NY, USA, 1989; pp. 1–28. [Google Scholar]
  27. Schweitzer, P.J. Iterative solution of the functional equations of undiscounted Markov renewal programming. J. Math. Anal. Appl. 1971, 34, 495–501. [Google Scholar] [CrossRef] [Scilit]
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.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.