Previous Article in Journal
On Unit-Burr Distorted Copulas
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Modeling and Optimal Control of Liquidity Risk Contagion in the Banking System with Delayed Status and Control Variables

Laboratory of Mathematics, Artificial Intelligence, and Digital Learning, ENSC, University Hassan II of Casablanc, Casablanca 20360, Morocco
*
Author to whom correspondence should be addressed.
AppliedMath 2025, 5(3), 107; https://doi.org/10.3390/appliedmath5030107
Submission received: 5 July 2025 / Revised: 30 July 2025 / Accepted: 12 August 2025 / Published: 15 August 2025

Abstract

The application of contagion risk spread modeling within the banking sector is a relatively recent development, emerging as a response to the persistent threat of liquidity risk that has affected financial institutions globally. Liquidity risk is recognized as one of the most destructive financial threats to banks, capable of causing severe and irreparable damage if overlooked or underestimated. This study aims to identify the most effective control strategy for managing financial contagion using a Susceptible–Infected–Recovered (SIR) epidemic model, incorporating time delays in both state and control variables. The proposed strategy seeks to maximize the number of resilient (vulnerable) banks while minimizing the number of infected institutions at risk of bankruptcy. Our goal is to formulate intervention policies that can curtail the propagation of financial contagion and mitigate associated systemic risks. Our model remains a simplification of reality. It does not account for strategic interactions between banks (e.g., panic reactions, network coordination), nor for adaptive regulatory mechanisms. The integration of these aspects will be the subject of future work. We establish the existence of an optimal control strategy and apply Pontryagin’s Maximum Principle to characterize and analyze the control dynamics. To numerically solve the control system, we employ a discretization approach based on forward and backward finite difference approximations. Despite the model’s simplifications, it captures key dynamics relevant to major European banks. Simulations performed using Python 3.12 yield significant results across three distinct scenarios. Notably, in the most severe case ( α 3 = 1.0 ), the optimal control strategy reduces bankruptcies from 25% to nearly 0% in Spain, and from 12.5% to 0% in France and Germany, demonstrating the effectiveness of timely intervention in containing financial contagion.

1. Introduction

Banks serve as the cornerstone of the financial and economic system, playing a vital role in supporting and facilitating economic activity. Consequently, when banks experience significant difficulties, the stability of the entire financial and economic structure can be jeopardized. This vulnerability has been clearly demonstrated by various historical financial crises. A prominent example is the 2008 global financial crisis, which was largely caused by dysfunctions within the banking sector. Several key factors underline the fragility of modern financial systems. First, the increasing complexity and interdependence of global financial networks remain, to a large extent, insufficiently understood and regulated [1]. Second, crises of liquidity, and at times solvency, have manifested as credit crunches affecting businesses, banks, and governments alike, thereby intensifying systemic risks.
The crisis was triggered by the bursting of the housing price bubble in 2007, along with massive financial losses incurred by banks. As a result, the “Great Recession” began in 2008, with its effects continuing well beyond 2010. This episode revealed a critical gap in risk management: banking and liquidity risks were not considered as seriously as credit or market risks. In response, the international community made efforts to standardize banking regulation, starting with Basel I in 1988 and followed by Basel II in 2004. Nevertheless, these frameworks largely overlooked liquidity risk, often reducing it to the ability to meet obligations after their due dates [2].
The interbank exchange system operates through the transfer of deposits and the provision of credit facilities between financial institutions [3,4,5]. Contagion within the banking sector arises when one or more banks experience liquidity shortages. Simultaneously, concerns about the timely repayment by counterparties prompt other banks to withdraw their funds, initiating a domino effect across the interbank network.
All of these factors influence the stability of the financial system to varying degrees. According to [4], contagion occurs when a crisis in one country increases the likelihood of a similar crisis occurring in another. In emerging economies, this effect is often amplified by the transmission of external shocks. As a result, even minor fluctuations in developed markets can have a pronounced impact on other economies, particularly due to the high sensitivity of capital flows to changes in global interest rates. This mechanism serves as a primary driver of contagious financial crises.
In recent years, many papers have been published on the phenomenon of contagion within the financial system [6,7,8]. In addition the introduction of optimal control approach to deal with liquidity contagion was studied in [9]. In line with this trend, the present study aims to address the challenge of modeling liquidity risk contagion using a rigorous mathematical framework based on differential equations. Establishing effective financial control over all banks is of paramount importance, as such oversight plays a critical role in safeguarding institutions from systemic contagion. Financial regulation not only mitigates the spread of financial shocks but also helps prevent their negative consequences across the banking network. In this context, the European Central Bank (ECB), as a highly qualified supervisory authority, assumes the responsibility of overseeing and regulating banks. The ECB also facilitates vertical coordination among commercial banks, thereby strengthening the resilience of the system and helping to prevent the widespread transmission of financial distress.
New methods and techniques are essential for effectively conceptualizing and modeling the financial system. Mathematical models play a fundamental role in understanding the dynamic behavior of contagion risk within the banking sector, its impacts, and potential future trajectories of its spread [1,10,11,12]. In recent years, mathematical modeling of financial contagion has emerged as a relatively new yet rapidly growing research field, recognized as a critical area of study. These models are extensively applied in banking to improve risk management, forecast financial performance, and develop optimal operational strategies, thereby enabling institutions to make better-informed decisions and enhance both stability and profitability.
To study the contagion phenomenon, many researchers have drawn analogies between economic contagion and biological epidemics. From a mathematical perspective, the diffusion of a financial “virus” through economic networks is analogous to the spread of infectious diseases, and both are effectively described by systems of differential equations. This analogy is particularly relevant because national financial institutions form interconnected networks. Several studies have successfully adapted the Susceptible–Infected–Recovered (SIR) epidemiological model to the financial domain, providing valuable insights into systemic risk and contagion dynamics [2,13].
Our model introduces several significant innovations compared to existing approaches:
It incorporates a simultaneous delay in both the state variables and the control variable, which is rarely present in existing work.
The optimal control applied in our model has a delayed effect, which accurately reflects the implementation delays of monetary policies and regulatory interventions.
The model is then applied to empirical data on European banks, across three different countries, with partial parameter calibration.
Finally, we develop an optimal analysis using Pontryagin’s Maximum Principle with delay, which remains largely unexplored.
Additionally, research focusing on contagion in financial networks has employed the SIR model combined with optimal control theory to analyze systemic risk transmission across national banking systems. The results closely reflect real-world global economic conditions and emphasize the significant role of international financial linkages in maintaining overall financial stability [11].
The dynamics of contagion are influenced not only by its current state but also by its past behavior. To more accurately represent contagion risk, we propose a more realistic model that builds upon the findings of [2,13]. Our analysis considers time delays in both the state and control variables as important factors. Numerical modeling is used as a computational method to approximate solutions and optimize the problem through simulations.
This process involves imposing various constraints on the mathematical representation of the problem under investigation and analyzing the resulting effects to identify modifications that improve outcomes. Numerical modeling is widely applied across multiple disciplines, including medicine [14,15], economics [16], environmental science [17], transportation [18], and finance [19,20].
This work adopts a mathematical approach but could be complemented by multidisciplinary perspectives, incorporating monetary policy, the structure of banking supply chains, and financial network models.
Notably, recent years have seen significant advances in modeling infectious epidemics, which have become prominent examples within their respective fields [11], as well as in studies of urban crime [21]. Additionally, considerable research has focused on option pricing [19], chaotic systems [22], and the analysis of nonlinear evolutionary dynamics [17].
The rest of this paper is organized as follows. In Section 2, we propose a mathematical model which integrates a delay and a control term. In Section 3, the optimization problem is analyzed and discussed. In Section 4, an appropriate numerical method is described, along with the corresponding simulation results. The final section, Section 5, provides a concise summary of the conclusions drawn from the study.

2. Mathematics Model

Our strategy focuses on maximizing the count of banks that are susceptible while minimizing the count of infected banks and those at risk of bankruptcy. We incorporate a control variable, denoted as u, which represents the proportion of banks that can potentially be safeguarded from contagion risk within a given time frame.
To ensure a realistic model, it is essential to consider that the transition of susceptible banks from the group of banks in the susceptible category to the group of banks in the bankrupt category experiences a delay. We incorporate this delay into the system as follows: at time t, only a certain percentage of susceptible banks, which have been rescued from risk τ units of time ago, i.e., at time t τ , are transferred from the bankrupt class to the susceptible class.
The delay τ models the time required between the detection of liquidity risk and the effective response by financial authorities (ECB, national central banks, support mechanisms). It therefore reflects the actual implementation delays of monetary policy. Empirically, it can be estimated using interbank transaction data by analyzing the average time lag between liquidity stress and intervention. Consequently, the mathematical formulation including state and control variables with timing aspects can be formulated by the following nonlinear delayed differential system. The formulation of this problem is influenced by the research conducted in [4,13,23]. To accomplish this, we examine the following system of differential equations:
d f 1 ( t ) d t = Λ α 1 f 1 ( t ) f 2 ( t ) + α 2 f 2 ( t ) + f 1 ( t τ ) u ( t τ ) d f 1 ( t ) , d f 2 ( t ) d t = α 2 f 2 ( t ) α 3 f 2 ( t ) + α 1 f 1 ( t ) f 2 ( t ) d f 2 ( t ) , d f 3 ( t ) d t = α 3 f 2 ( t ) f 1 ( t τ ) u ( t τ ) d f 3 ( t ) .
where
f 1 ( t ) + f 2 ( t ) + f 3 ( t ) = N ( t )
where N denotes the total number of banks.
The non-negative constant τ is the time delay. The delay could be estimated using a lagged regression (VAR or Granger causality test) on high-frequency data from EONIA or interbank networks (TARGET2).
The constant positive value Λ signifies the rate at which new banks enter the banking system.
The initial condition of (1) is given as
f 1 ( θ ) = φ 1 ( θ ) , f 2 ( θ ) = φ 2 ( θ ) , f 3 ( θ ) = φ 3 ( θ )
where
φ = ( φ 1 , φ 2 , φ 3 ) T C : 0 φ k ( θ ) , f o r k = 1 , 2 , 3 ( h θ 0 )
where C represents the space of continuous functions on the interval [ h , 0 ] in R 3 , which is a Banach space denoted by C ( [ h , 0 ] , R 3 ) .
We suppose that φ k ( 0 ) > 0 for k = 1 , 2 , 3 .
Let Ω be the control set u integrable in the sense of Lebesgue and bounded
Ω = u ( · ) L 2 0 , T 0 u ( t ) U , t 0 , T .
where
  • f 1 ( t ) refers to the collection of banks at time t with a general ratio greater than 1, representing banks with a sufficient liquidity ratio, and therefore capable of absorbing a shock without falling into a critical situation.
  • f 2 ( t ) refers to the collection of banks at time t with a general ratio less than 1
  • f 3 ( t ) corresponds to all banks at time t that have become bankrupt.
  • α 1 represents the spread rate, which signifies the velocity at which the contagion disseminates. This parameter signifies the contagion intensity of an infected bank, indicating that a susceptible bank in contact with a single infected bank has a probability of α 1 to acquire the infection.
  • α 2 denotes the solution rate, which characterizes the rate of recovery. This parameter quantifies the resilience to contagion. Consequently, an infected bank has a probability α 2 of recovering from the contagion.
  • α 3 signifies the bankruptcy rate, which indicates the speed at which an infected bank is likely to become bankrupt. Consequently, a troubled bank will encounter bankruptcy with a probability of α 3 .
We make the assumption that, for θ τ , 0 , f 1 ( θ ) , f 2 ( θ ) , and f 3 ( θ ) are continuous non-negative functions, and u ( θ ) = 0 . It should be noted that the control variable u is considered as Lebesgue integrable, bounded by 0 u b , where b is a predetermined constant less than 1.
To demonstrate that the control system (1) admits a solution, we start by proving that it is dissipative. This implies that the solutions remain uniformly bounded in an appropriate subset Ω R + 3 .

2.1. Bornitude and Positivity of Solutions

Let ( f 1 ( t ) , f 2 ( t ) , f 3 ( t ) ) R + 3 be any solution with non-negative initial conditions. Adding equations of (1), we get
d N d t Λ d . N
d N d t + d . N Λ
e d ξ d N d t + d . e d ξ N Λ e d ξ
d ( e d ξ N ) d t Λ e d ξ
After integration, we have
e d t N ( t ) N ( 0 ) Λ d ( e d t 1 )
N ( t ) N ( 0 ) e d t + Λ d ( 1 e d t )
Gold:
0 e d t 1 a n d 0 1 e d t 1
Hence,
0 N ( t ) Λ d a s t +
Therefore, all feasible solutions of the system (1) enters the following region:
Ω = ( f 1 ( t ) , f 2 ( t ) , f 3 ( t ) ) R + 3 0 N ( t ) Λ d .

2.2. Detailed Calculation of the Stability of System (1)

2.2.1. Lyapunov Candidate Function

The Lyapunov candidate function is chosen as
V ( f 1 , f 2 , f 3 ) = 1 2 α 1 f 1 2 + α 2 f 2 2 + α 3 f 3 2 ,
where α 1 , α 2 , α 3 > 0 are positive constants. This function is positive definite.

2.2.2. Time Derivative of V

The time derivative of V is given by
d V d t = α 1 f 1 d f 1 d t + α 2 f 2 d f 2 d t + α 3 f 3 d f 3 d t .
Substitute the dynamics of the system (1) as follows:
d f 1 d t = Λ α 1 f 1 f 2 + α 2 f 2 + f 1 ( t τ ) u ( t τ ) ,
d f 2 d t = α 1 f 1 f 2 α 2 f 2 α 3 f 2 ,
d f 3 d t = α 3 f 2 .
Thus, the derivative of V becomes
d V d t = α 1 f 1 Λ α 1 f 1 f 2 + α 2 f 2 + f 1 ( t τ ) u ( t τ ) + α 2 f 2 α 1 f 1 f 2 α 2 f 2 α 3 f 2 + α 3 f 3 α 3 f 2 .

2.2.3. Expansion of Terms

Expand each term:
  • Term 1: α 1 f 1 Λ α 1 f 1 f 2 + α 2 f 2 + f 1 ( t τ ) u ( t τ )
    = α 1 Λ f 1 α 1 2 f 1 2 f 2 + α 1 α 2 f 1 f 2 + α 1 f 1 f 1 ( t τ ) u ( t τ ) .
  • Term 2: α 2 f 2 α 1 f 1 f 2 α 2 f 2 α 3 f 2
    = α 2 α 1 f 1 f 2 2 α 2 2 f 2 2 α 2 α 3 f 2 2 .
  • Term 3: α 3 f 3 α 3 f 2
    = α 3 2 f 2 f 3 .
Combining all terms, we obtain
d V d t = α 1 Λ f 1 α 1 2 f 1 2 f 2 + α 1 α 2 f 1 f 2 + α 1 f 1 f 1 ( t τ ) u ( t τ ) + α 2 α 1 f 1 f 2 2 α 2 2 f 2 2 α 2 α 3 f 2 2 + α 3 2 f 2 f 3 .

2.2.4. Handling Cross Terms

The term α 1 f 1 f 1 ( t τ ) u ( t τ ) must be bounded. Assume | u ( t τ ) | u max , where u max is a positive constant. Then
α 1 f 1 f 1 ( t τ ) u ( t τ ) α 1 u max | f 1 f 1 ( t τ ) | .
Using Young’s inequality ( a b a 2 2 + b 2 2 ), we can write
| f 1 f 1 ( t τ ) | f 1 2 2 + f 1 ( t τ ) 2 2 .
Thus
α 1 f 1 f 1 ( t τ ) u ( t τ ) α 1 u max f 1 2 2 + f 1 ( t τ ) 2 2 .

2.2.5. Simplification of d V d t

Substituting this bound into the expression for d V d t , we obtain
d V d t α 1 Λ f 1 α 1 2 f 1 2 f 2 + α 1 α 2 f 1 f 2 + α 1 u max f 1 2 2 + f 1 ( t τ ) 2 2 + α 2 α 1 f 1 f 2 2 α 2 2 f 2 2 α 2 α 3 f 2 2 + α 3 2 f 2 f 3 .

2.2.6. Choice of Coefficients to Ensure d V d t < 0

To ensure d V d t < 0 , we choose the coefficients α 1 , α 2 , α 3 such that the positive terms are dominated by the negative terms. For example, we can impose
α 2 α 3 f 2 2 > α 1 Λ f 1 + α 1 u max f 1 2 2 + f 1 ( t τ ) 2 2 .
Assuming f 1 + f 2 + f 3 = N (where N is a constant), we can write
α 2 α 3 N 2 > α 1 Λ N + α 1 u max N 2 2 + N 2 2 .
This simplifies to
α 2 α 3 N 2 > α 1 Λ N + α 1 u max N 2 .
Dividing by N (assuming N > 0 ), we obtain
α 2 α 3 N > α 1 Λ + α 1 u max N .

2.2.7. Matrix Representation

The matrix representation of the system remains valid:
d X d t = A X ( t ) + F ( X ( t ) , X τ ( t ) ) = G ( X ( t ) , X τ ( t ) ) ,
with
X = f 1 f 2 f 3 , A = d α 2 0 0 ( α 2 + α 3 + d ) 0 0 α 3 d ,
and
F ( X ( t ) , X τ ( t ) ) = Λ α 1 f 1 ( t ) f 2 ( t ) + f 1 ( t τ ) u ( t τ ) α 1 f 1 ( t ) f 2 ( t ) f 1 ( t τ ) u ( t τ ) .

2.2.8. Lipschitz Continuity

The function G satisfies a uniform Lipschitz continuity condition:
| G ( X 1 , X 1 τ ) G ( X 2 , X 2 τ ) | M | X 1 X 2 | + | X 1 τ X 2 τ | ,
where M = max ( M 1 + A , M 2 ) < . This guarantees the existence and uniqueness of solutions for the system (1).

3. The Problem of Optimal Control

Our objective is to maximize the number of susceptible and recovered banks while minimizing the number of infected banks throughout the contagion period. Mathematically, for a given terminal time T, the problem consists of minimizing the following functional:
J ( u , T ) = 0 T [ K 1 f 1 ( t ) K 2 f 2 ( t ) + K 3 f 3 ( t ) + K 4 2 u 2 ( t ) ] d t ,
K 1 , K 2 , K 3 , K 4 R + . Let us represent the weights which balance the magnitudes of the terms. Essentially, the aim of our study is to determine the control u * that satisfies
J ( u * ) = min J ( u ) : u U
In this context, U denotes the collection of admissible controls, which can be defined in the following manner:
U = { u : L e b e s g u e m e a s u r a b l e , a n d 0 u ( t ) b < 1 f o r a l l t [ 0 , T ] }

3.1. Existence of Minimal Control u *

By referring to a result presented by Fleming and Rishel in [24], we show that there exists an optimal control satisfying the following theorem:
Theorem 1.
There is an optimal control u * U and a corresponding triple of functions ( f 1 * ; f 2 * ; f 3 * ) that constitute a solution to system (1) such as
J ( u * ) = min u U J ( u )
Proof. 
To utilize the existence result mentioned in [24], it is necessary to fulfill the following conditions:
1
The controlled system with initial conditions (1) possesses a non-empty set of solutions.
2
The set U possesses both closed and convex characteristics.
3
The right-hand side of the state system is bounded by a linear function in the state and control variables.
4
The integrand of the objective functional exhibits convexity over the set U.
5
For the integrand L ( f 1 , f 2 , f 3 , u ) of the objective functional, there exist positive constants c 1 and c 2 , as well as ρ greater than 1, such that the condition is satisfied:
L ( f 1 , f 2 , f 3 , u ) c 2 + c 1 ( | u ( t ) | 2 ) ρ 2
To establish the existence of a solution for the system (1) with bounded coefficients, we relied on an existence result from Lukes [24], which satisfies condition 1. The set of control U is inherently defined as both convex and closed. Moreover, considering the boundedness of the solution, the right-hand side of (1) satisfies condition 3 due to the linearity of the state system in u. The integrand in the objective functional (3) exhibits convexity over U. Furthermore, it is apparent that there exists a constant ρ > 1 and positive numbers c 1 and c 2 that meet the following conditions:
L ( f 1 , f 2 , f 3 , u ) c 2 + c 1 ( | u ( t ) | 2 ) ρ 2

3.2. Characterization of the Minimal Control

By applying Pontryagin’s maximum principle with delay, as shown in [24], we have derived the necessary condition for optimal control. This principle transforms (1), (3), and (6) into a minimization problem that involves a Hamiltonian function H, defined as follows:
H = K 1 f 1 ( t ) K 2 f 2 ( t ) + K 3 f 3 ( t ) + K 4 2 u 2 ( t ) d t + i = 1 3 λ i g i ,
In this context,
  • g 1 ( t ) = Λ α 1 f 1 ( t ) f 2 ( t ) + α 2 f 2 ( t ) + f 1 ( t τ ) u ( t τ ) d f 1 ( t ) ,
  • g 2 ( t ) = α 2 f 2 ( t ) α 3 f 2 ( t ) + α 1 f 1 ( t ) f 2 ( t ) d f 2 ( t ) ,
  • g 3 ( t ) = α 3 f 2 ( t ) f 1 ( t τ ) u ( t τ ) d f 3 ( t ) .
Theorem 2.
Let ( f 1 * ; f 2 * ; f 3 * ) be a solution of system (1) and u * the associated control solution of (12), then there exist adjoint functions λ 1 , λ 2 , and λ 3 satisfying
λ ˙ 1 ( t ) = K 1 + λ 1 d + ( λ 1 λ 2 ) α 1 f 2 * + χ [ 0 , T τ ] ( λ 1 + λ 3 + ) u * , λ ˙ 2 ( t ) = K 2 + ( λ 1 λ 2 ) α 1 f 1 * + ( d + α 3 ) λ 2 α 3 λ 3 , λ ˙ 1 ( t ) = K 3 + λ 3 d ,
where λ i represents the marginal costs or the cost–benefit value associated with the state of banks in each class, from the perspective of the social objective with the transversality conditions
λ 1 ( T ) = 0 , λ 2 ( T ) = 0 a n d λ 3 ( T ) = 0
Moreover, the optimal control u * can be represented by the following expression:
u * ( t ) = min ( b , max ( 0 , ( λ 1 + λ 3 + ) K 4 χ [ 0 , T τ ] ( t ) f 1 * )
where
λ 1 + ( t ) = λ 1 ( t + τ ) , λ 2 + ( t ) = λ 2 ( t + τ ) , a n d λ 3 + ( t ) = λ 3 ( t + τ )
The K 4 parameter weighs the economic cost of intervention (e.g., liquidity injections, financial aid). A trade-off must be found between the cost of intervention and the stability of the system.
Proof. 
Through the utilization of Pontryagin’s maximum principle, we are able to obtain the expressions for the adjoint equations and transversality conditions, considering the delay in the state and control variables [25]. This leads to the following equations:
λ ˙ 1 = H ( t ) f 1 ( t ) χ [ 0 , T τ ] ( t ) H ( t + τ ) f 1 ( t τ ) , λ 1 ( T ) = 0 , λ ˙ 2 = H ( t ) f 2 ( t ) , λ 2 ( T ) = 0 , λ ˙ 3 = H ( t ) f 3 ( t ) , λ 3 ( T ) = 0
By solving the optimality condition, we can determine the optimal control u * :
H u + χ [ 0 , T τ ] ( t ) H ( t + τ ) u τ = 0 ,
that is,
K 4 u + χ [ 0 , T τ ] ( t ) ( λ 3 + λ 1 + ) f 1 = 0 .
By considering the limits imposed on the control variable U, it becomes straightforward to express u * in the form specified in Equation (12). □

4. Numerical Simulation

The year 2012 corresponds to a critical post-crisis year with available data on European bank spreads and interbank linkages. The 169 banks in our dataset represent large and medium-sized institutions sampled from ECB reports and analyzed in [25]. In each simulation, the contagion is modeled using actual initial conditions, and the parameter α 3 is varied to capture different degrees of market pessimism and shock absorption capacity. Some numerical results were used in order to make a comparison between the proposed approach and the classical one, which uses constant weight coefficients in the cost function, and to demonstrate the behavior of the proposed approach as well.
For the purpose of conducting a numerical simulation in a real-world scenario, we obtained the spread rate α 1 and the recovery rate α 2 from the research conducted by Philipps, Koutelidakis, and Leontitsis [25]. The rates mentioned were obtained by extracting data from a sample of 169 prominent European banks, specifically collected for the year 2012, as computed in [25]. In our numerical simulation, we consider a total of N = 169 banks, out of which 10 banks initially encounter liquidity risk at time t = 0 .
u ( t ) 1 is a threshold that represents the maximum capacity of public authorities to intervene, set at 100% in this paper to standardize the analysis. It can be adjusted to model more constrained scenarios.
In this section, we examine the modeling of liquidity risk and the utilization of optimal control techniques to mitigate the spread of liquidity risk in the banking system. We consider three initial scenarios of liquidity crisis: the first originating from Spain, the second from France, and the third from Germany. The data for each case and scenario are summarized in the following respective tables: Table 1 for the Spanish crisis, Table 2 for the French crisis, and Table 3 for the German crisis.
The evolution of the spread of liquidity risk, as modeled by the differential system (1), is illustrated in Figure 1, Figure 2, Figure 3, Figure 4, Figure 5, Figure 6, Figure 7, Figure 8 and Figure 9, which represent the system’s behavior in Spain, France, and Germany under varying values of the default parameter α 3 over the same time horizon.
These countries represent three different profiles: Spain (severe crisis in 2012, fragile banks), France (large universal banks), and Germany (highly interconnected regional banking system).
In the initial scenario characterized by the highest default probability ( α 3 = 1.0 ), illustrated in Figure 1 (Spain), Figure 2 (France), and Figure 3 (Germany), it can be observed that in all three countries, the contagion rate decreases rapidly over time. This is primarily attributed to the sharp default rate in the uncontrolled case, where approximately 1 4 of all Spanish banks collapse in a short span, and nearly 1 8 of banks in France and Germany go bankrupt. However, with the application of the optimal control strategy, the proportion of defaulted banks significantly declines, eventually approaching zero. This demonstrates the effectiveness of central bank intervention in restoring the stability of the banking system.
In the second scenario, with a more moderate default probability ( α 3 = 0.1 ), illustrated in Figure 4 (Spain), Figure 5 (France), and Figure 6 (Germany), the liquidity crisis evolves more gradually. Due to the lower initial risk of default, the financial shock takes more time to spread across the system. This extended contagion window results in more banks facing liquidity distress before collapsing. Nevertheless, the implementation of control significantly reduces the spread of the crisis and enables the banking system to return to a stable configuration.
Finally, in the third scenario with a very low default probability ( α 3 = 0.0001 ), as shown in Figure 7 (Spain), Figure 8 (France), and Figure 9 (Germany), the uncontrolled dynamics lead to a persistent and widespread financial contagion. Because default is almost absent, banks continue to operate despite being illiquid, which in turn amplifies the contagion and eventually destabilizes the entire system. The introduction of control in this scenario prevents this extensive spread and ensures that banks recover before the system collapses.
The impact of time delay τ on the dynamics of the banking system is illustrated in Figure 10. As the value of τ increases, we observe significant changes in the evolution of the system compartments f 1 , f 2 , and f 3 . Specifically, larger delays result in slower reactions to contagion events, leading to more pronounced oscillations and delayed peaks in the trajectories. This indicates that the introduction of a delay in the system weakens the immediate response capacity of banks to liquidity shocks, potentially amplifying systemic instability. The results emphasize the importance of accounting for time delays in modeling the spread of financial risks in banking networks.
The choice of Spain, France, and Germany is motivated by their contrasting positions within the Eurozone: Spain experienced significant liquidity stress post-2010, France maintained a moderate-risk banking profile, while Germany exhibited strong resilience and systemic influence.

5. Conclusions

This paper focuses on modeling the spread of liquidity risk contagion within the banking system by drawing analogies with the dynamics and control of infectious diseases. The introduction of the optimal control variable u plays a pivotal role in managing liquidity risk. It represents the proportion of banks that can be shielded from contagion within a given time frame. By adjusting the value of u, the system’s dynamics can be influenced, enabling the implementation of strategies to curb the spread of contagion and mitigate the associated financial risks. The optimal control variable u enables the implementation of preventive measures such as liquidity injections or support mechanisms to limit the spread of contagion within the banking system. By maximizing the number of susceptible banks and minimizing the number of infected or bankrupt institutions, u contributes to preserving overall financial stability. To achieve this goal, Pontryagin’s Maximum Principle is applied to determine the optimal control strategy that most effectively fulfills these objectives.
The delay τ in the system plays an important role by considering the temporal dynamics of banks in the model. It represents the time delay required for the susceptible banks that have been saved from risk at time t τ to be transferred from the bankrupt category to the susceptible category at time t. Thus, in the equations of the system, the influence of the delay τ is observed in the terms f 1 ( t τ ) and u ( t τ ) . These terms represent, respectively, the susceptible banks that are transferred from the bankrupt category to the susceptible category and the optimal control applied at time t τ to protect banks from the contagion risk.
The inclusion of a delay parameter τ allows the model to capture the time lag and propagation effects between different categories of banks. This is essential for understanding the system’s dynamic behavior and assessing the effectiveness of control measures. The delay also facilitates the analysis of how past decisions influence the system’s evolution over time. To solve the optimization problem, we employed a discretization approach based on forward and backward difference approximations. Simulations conducted in Python revealed a strong alignment between the model’s outcomes and the observed behavior of major European banks across three examined scenarios. These results provide compelling evidence of the model’s capability to accurately reflect real-world financial dynamics.
Our results confirm that the spread of liquidity contagion is sensitive to the default parameter α 3 . A lower α 3 , contrary to intuition, may prolong contagion because distressed banks continue to interact with others, delaying systemic resolution.
The optimal control variable u ( t ) , representing interventions such as liquidity injections or capital support, proves highly effective: it limits contagion at early stages, preserves solvent institutions, and accelerates systemic recovery.
Importantly, we show that the inclusion of delay τ —reflecting real-world lags in regulatory response or market adaptation—plays a destabilizing role when not accounted for. Larger delays increase oscillations and delay the return to equilibrium.
Our findings suggest that real-time monitoring, faster deployment of liquidity tools, and network-aware regulation are crucial to reducing systemic vulnerability.
Policy recommendations derived from our model include
  • Strengthening central bank liquidity lines and pre-committed buffers;
  • Integrating dynamic contagion models into supervisory stress tests;
  • Improving coordination across national regulatory authorities.

Author Contributions

Methodology, H.M.; Formal analysis, H.M.; Resources, S.F.; Data curation, S.F.; Writing—review & editing, M.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Conflicts of Interest

The author declares no conflicts of interest.

References

  1. Glasserman, P.; Young, H.P. Contagion in financial networks. J. Econ. Lit. 2016, 5, 779–831. [Google Scholar] [CrossRef]
  2. Guo, J.; Wu, X.; Yang, Y. Study on mechanism of enterprise group’crisis management based on the epidemic contagion dynamic model. In Proceedings of the 2009 Third International Conference on Genetic and Evolutionary Computing, Guilin, China, 14–17 October 2009; IEEE: Guilin, China, 2009; pp. 717–720. [Google Scholar]
  3. Chan-Lau, J.A.; Espinosa, M.; Giesecke, K. Assessing the systemic implications of financial linkages. In IMF Global Financial Stability Report; 2009; Volume 2, Available online: https://ssrn.com/abstract=1417920 (accessed on 11 August 2025).
  4. Allen, F.; Gale, D. Financial contagion. J. Political Econ. 2000, 108, 1–33. [Google Scholar] [CrossRef]
  5. Huser, A.C. Too interconnected to fail: A survey of the interbank networks literature. J. Netw. Theory Financ. 2015, 1, 1–50. [Google Scholar] [CrossRef]
  6. Brandi, G.; Clemente, R.D.; Cimini, G. Epidemics of liquidity shortages in interbank markets. Phys. A Stat. Mech. Its Appl. 2018, 507, 255–267. [Google Scholar] [CrossRef]
  7. Mourad, H.; Fahim, S.; Burlea-Schiopoiu, A.; Lahby, M.; Attioui, A. Modeling and Mathematical Analysis of Liquidity Risk Contagion in the Banking System. J. Appl. Math. 2022, 2022, 5382153. [Google Scholar] [CrossRef]
  8. Fahim, S.; Mourad, H.; Amghad, F.; Lahby, M. Modeling and stability analysis of liquidity risk contagion in the banking system with time delay. Commun. Math. Biol. Neurosci. 2025, 2025, 24. [Google Scholar]
  9. Fahim, S.; Mourad, H.; Lahby, M. Modeling and Mathematical Analysis of Liquidity Risk Contagion in the Banking System Using an Optimal Control Approach. AppliedMath 2025, 5, 20. [Google Scholar] [CrossRef]
  10. Shah, Z.; Bonyah, E.; Alzahrani, E.; Jan, R.; Alreshidi, N.A. Chaotic Phenomen and Oscillation in dynamical Behaviour of Financial System via Fractional Calculus. Complexity 2022, 2022, 8113760. [Google Scholar] [CrossRef]
  11. Kostylenko, O.; Rodrigues, H.S.; Torres, D.F. The risk of contagion spreading and its optimal control in the economy. arXiv 2018, arXiv:1812.06975. [Google Scholar] [CrossRef]
  12. Nawaz, R.; Khattak, A.; Akbar, M.; Ahsan, S.; Shah, Z.; Khan, A. Solution of fractional-order integro-differential equations using optimal homotopy asymptotic method. J. Therm. Anal. Calorim. 2021, 146, 1421–1433. [Google Scholar] [CrossRef]
  13. Tiwari, P.K.; Singh, R.K.; Khajanchi, S.; Kang, Y.; Misra, A.K. A mathematical model to restore water quality in urban lakes using Phoslock. Discret. Contin. Dyn. Syst.-B 2021, 26, 3143. [Google Scholar] [CrossRef]
  14. Hou, Z.; Xu, T.; Feng, G.; Feng, B.; Yuan, Y.; Jiang, Z. Numerical modeling of reactive transport and self-sealing processes in the fault-controlled geothermal system of the Guide basin, China. Geofluids 2019, 2019, 1853068. [Google Scholar] [CrossRef]
  15. Daşbaşı, B. Stability analysis of an incommensurate fractional-order SIR model. Math. Numer. Simul. Appl. 2021, 1, 44–55. [Google Scholar] [CrossRef]
  16. Akgül, E.K.; Akgül, A.; Yavuz, M. New illustrative applications of integral transforms to financial models with different fractional derivatives. Chaos Solitons Fractals 2021, 146, 110877. [Google Scholar] [CrossRef]
  17. Yokuş, A.; Durur, H.; Abro, K. Symbolic computation of Caudrey-Dodd-Gibbon equation subject to periodic trigonometric and hyperbolic symmetries. Eur. Phys. J. Plus 2021, 136, 358. [Google Scholar] [CrossRef]
  18. Khajanchi, S.; Nieto, J.J. Spatiotemporal dynamics of a glioma immune interaction model. Sci. Rep. 2021, 11, 22385. [Google Scholar] [CrossRef]
  19. Yavuz, M. European option pricing models described by fractional operators with classical and generalized Mittag–Leffler kernels. Numer. Methods Partial. Differ. Equ. 2022, 38, 434–456. [Google Scholar]
  20. Lukes, D.L. Volume 162: Differential Equations: Classical to Controlled; Mathematics in Science and Engineering; Academic Press: New York, NY, USA, 1982. [Google Scholar]
  21. Martinez-Farias, F.J.; Alvarado-Sánchez, A.; Rangel-Cortes, E.; Hernández-Hernández, A. Bi-dimensional crime model based on anomalous diffusion with law enforcement effect. Math. Numer. Simul. Appl. 2022, 2, 26–40. [Google Scholar]
  22. Sene, N. Introduction to the fractional-order chaotic system under fractional operator in Caputo sense. Alex. Eng. J. 2021, 60, 3997–4014. [Google Scholar] [CrossRef]
  23. Birkhoff, G.; Rota, G.C. Ordinary Differential Equations, 4th ed.; John Wiley and Sons: New York, NY, USA, 1989. [Google Scholar]
  24. Fleming, W.H.; Rishel, R.W. Deterministic and Stochastic Optimal Control; Springer Science and Business Media: Berlin/Heidelberg, Germany, 2012. [Google Scholar]
  25. Philippas, D.; Koutelidakis, Y.; Leontitsis, A. Insights into European interbank network contagion. Manag. Financ. 2015, 41, 754–772. [Google Scholar] [CrossRef]
Figure 1. Liquidity risk with and without control in Spain over time with α 3 = 1.0 and t = 100 .
Figure 1. Liquidity risk with and without control in Spain over time with α 3 = 1.0 and t = 100 .
Appliedmath 05 00107 g001
Figure 2. Liquidity risk with and without control in France over time with α 3 = 1.0 and t = 100 .
Figure 2. Liquidity risk with and without control in France over time with α 3 = 1.0 and t = 100 .
Appliedmath 05 00107 g002
Figure 3. Liquidity risk with and without control in Germany over time with α 3 = 1.0 and t = 100 .
Figure 3. Liquidity risk with and without control in Germany over time with α 3 = 1.0 and t = 100 .
Appliedmath 05 00107 g003
Figure 4. Liquidity risk with and without control in Spain over time with α 3 = 0.1 and t = 100 .
Figure 4. Liquidity risk with and without control in Spain over time with α 3 = 0.1 and t = 100 .
Appliedmath 05 00107 g004
Figure 5. Liquidity risk with and without control in France over time with α 3 = 0.1 and t = 100 .
Figure 5. Liquidity risk with and without control in France over time with α 3 = 0.1 and t = 100 .
Appliedmath 05 00107 g005
Figure 6. Liquidity risk with and without control in Germany over time with α 3 = 0.1 and t = 100 .
Figure 6. Liquidity risk with and without control in Germany over time with α 3 = 0.1 and t = 100 .
Appliedmath 05 00107 g006
Figure 7. Liquidity risk with and without control in Spain over time with α 3 = 0.0001 and t = 100 .
Figure 7. Liquidity risk with and without control in Spain over time with α 3 = 0.0001 and t = 100 .
Appliedmath 05 00107 g007
Figure 8. Liquidity risk with and without control in France over time with α 3 = 0.0001 and t = 100 .
Figure 8. Liquidity risk with and without control in France over time with α 3 = 0.0001 and t = 100 .
Appliedmath 05 00107 g008
Figure 9. Liquidity risk with and without control in Germany over time with α 3 = 0.0001 and t = 100 .
Figure 9. Liquidity risk with and without control in Germany over time with α 3 = 0.0001 and t = 100 .
Appliedmath 05 00107 g009
Figure 10. Evolution of the banking system compartments f 1 , f 2 , and f 3 over time under different delay values τ . The plots illustrate how increasing the delay influences the dynamics of liquidity contagion, showing slower responses and higher oscillations in system behavior.
Figure 10. Evolution of the banking system compartments f 1 , f 2 , and f 3 over time under different delay values τ . The plots illustrate how increasing the delay influences the dynamics of liquidity contagion, showing slower responses and higher oscillations in system behavior.
Appliedmath 05 00107 g010
Table 1. The data used in the numerical simulation of the system (1) in relation to Spain.
Table 1. The data used in the numerical simulation of the system (1) in relation to Spain.
ParametersFigure 1aFigure 2aFigure 3aSource
α 1 0.0050.0050.005[25]
α 2 0.0130.0130.013[25]
α 3 1.000.100.0001Assumed
f 1 ( 0 ) 158.00158.00158.00[25]
f 2 ( 0 ) 10.0010.0010.00[25]
f 3 ( 0 ) 0.000.000.00[25]
u1.001.001.00Assumed
d1.001.001.00Assumed
Λ 10.0010.0010.00Assumed
K 1 10.0010.0010.00Assumed
K 2 10.0010.0010.00Assumed
K 3 10.0010.0010.00Assumed
K 4 10.0010.0010.00Assumed
Table 2. The data used in the numerical simulation of the system (1) in relation to France.
Table 2. The data used in the numerical simulation of the system (1) in relation to France.
ParametersFigure 1bFigure 2bFigure 3bSource
α 1 0.0020.0020.002[25]
α 2 0.020.020.02[25]
α 3 1.000.100.0001Assumed
f 1 ( 0 ) 158.00158.00158.00[25]
f 2 ( 0 ) 10.0010.0010.00[25]
f 3 ( 0 ) 0.000.000.00[25]
u1.001.001.00Assumed
d1.001.001.00Assumed
Λ 10.0010.0010.00Assumed
K 1 10.0010.0010.00Assumed
K 2 10.0010.0010.00Assumed
K 3 10.0010.0010.00Assumed
K 4 10.0010.0010.00Assumed
Table 3. The data used in the numerical simulation of the system (1) in relation to Germany.
Table 3. The data used in the numerical simulation of the system (1) in relation to Germany.
ParametersFigure 1cFigure 2cFigure 3cSource
α 1 0.00120.00120.0012[25]
α 2 0.0080.0080.008[25]
α 3 1.000.100.0001Assumed
f 1 ( 0 ) 158.00158.00158.00[25]
f 2 ( 0 ) 10.0010.0010.00[25]
f 3 ( 0 ) 0.000.000.00[25]
u1.001.001.00Assumed
d1.001.001.00Assumed
Λ 10.0010.0010.00Assumed
K 1 10.0010.0010.00Assumed
K 2 10.0010.0010.00Assumed
K 3 10.0010.0010.00Assumed
K 4 10.0010.0010.00Assumed
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

Mourad, H.; Fahim, S.; Lahby, M. Modeling and Optimal Control of Liquidity Risk Contagion in the Banking System with Delayed Status and Control Variables. AppliedMath 2025, 5, 107. https://doi.org/10.3390/appliedmath5030107

AMA Style

Mourad H, Fahim S, Lahby M. Modeling and Optimal Control of Liquidity Risk Contagion in the Banking System with Delayed Status and Control Variables. AppliedMath. 2025; 5(3):107. https://doi.org/10.3390/appliedmath5030107

Chicago/Turabian Style

Mourad, Hamza, Said Fahim, and Mohamed Lahby. 2025. "Modeling and Optimal Control of Liquidity Risk Contagion in the Banking System with Delayed Status and Control Variables" AppliedMath 5, no. 3: 107. https://doi.org/10.3390/appliedmath5030107

APA Style

Mourad, H., Fahim, S., & Lahby, M. (2025). Modeling and Optimal Control of Liquidity Risk Contagion in the Banking System with Delayed Status and Control Variables. AppliedMath, 5(3), 107. https://doi.org/10.3390/appliedmath5030107

Article Metrics

Back to TopTop