Vygotsky: Jurnal Pendidikan Matematika dan Matematika 8 . February 2026, pp. 21 - 30 Journal Page is available to https://jurnalpendidikan. id/index. php/VoJ Development of a SEIR Model with Two Optimal Controls Infectious Disease Control: Computational Simulation Using MATLAB Sitti RosnafiAoan Sumardi 1. Muhammad Hisyam 1* 1 Mathematics Study Program. Cenderawasih University. Papua *Email Correspondence: hisyamheisyam@gmail. ARTICLE INFO Article History Received Revised Accepted Available Online 07 Aug 2025 22 Feb 2026 26 Feb 2026 28 Feb 2026 Keywords: SEIR Model Optimal Control Mathematical Modeling MATLAB Simulation Please cite this article APA style as: Sumardi. & Hisyam. Development of a SEIR Model with Two Optimal Controls for Infectious Disease Control: Computational Simulation Using MATLAB. Vygotsky: Jurnal Pendidikan Matematika dan Matematika, 8. , pp. ABSTRACT This study develops a SusceptibleAeExposedAe InfectiousAeRecovered (SEIR) mathematical model with two time-dependent optimal control strategies educational campaigns and medical treatment to analyze Ebola The nonlinear system is examined using PontryaginAos Minimum Principle, and the optimality system is solved numerically through the ForwardAeBackward Sweep Method in MATLAB. Simulation results show that combined controls substantially reduce the peak number of infected individuals, decrease cumulative infection cases, and shorten the epidemic duration compared to the uncontrolled Early implementation of both interventions further improves epidemic suppression and reduces the overall cost functional value. These results demonstrate the effectiveness of integrated control strategies and highlight mathematical modeling as a decision-support tool in public health planning. Vygotsky: Jurnal Pendidikan Matematika dan Matematika with CC BY NC SA license Copyright A 2026. The Author . Introduction Infectious diseases pose one of the greatest threats to global public health, particularly those caused by deadly viruses like Ebola. The Ebola virus first emerged in 1976 and has caused several major outbreaks with high mortality rates, in some cases reaching up to 90% (World Health Organization, 2. (World Health Organization, 2. Transmission of the virus occurs primarily through direct contact with the body fluids of infected individuals, making it particularly risky in areas with high population density and inadequate healthcare systems. Vygotsky: Jurnal Pendidikan Matematika dan Matematika https://doi. org/10. 30736/voj. Page | 21 Sumardi. , et al. /Vygotsky 8 . February 2026, pp. E-ISSN: 2656-5846 P-ISSN: 2656-2286 the context of globalization and high human mobility, the risk of this disease spreading is not limited to Africa but also has the potential to reach other countries, including Indonesia (Sariadji & Kambang, 2. (K. Sariadji, 2. Various scientific approaches have been used to study the spread of infectious diseases, one of which is through mathematical modeling. The SEIR (SusceptibleAe ExposedAeInfectedAeRecovere. model is a basic and widely used model to describe the dynamics of infectious disease spread (Li et al. , 2. (Li et al. , 2. This model divides the population into four compartments based on infection status and maps the transitions between these compartments over time. It is considered highly representative for modeling diseases like Ebola, which features a notable incubation period and high infection rate. In addition, several studies have shown that the SEIR model can capture local dynamics of transmission when applied to real epidemic scenarios, such as in the case of Ebola in Uganda (Chowell et al. (Chowell et al. , 2. To strengthen the modelAos effectiveness and support real-world decision making, many researchers have adopted optimal control theory. The Pontryagin Minimum Principle (PMP) is one of the most widely used mathematical approaches to determine control strategies that can minimize infections and associated costs (Lenhart & Workman, 2. (Lenhart & Workman, 2. epidemiological contexts, optimal control strategies often include public education campaigns aimed at reducing risky behaviors and treatment interventions to accelerate recovery in infected individuals (Funk et al. , 2010. Okosun et al. (Funk et al. , 2. (Okosun et al. , 2. The combination of these two controls has been proven to provide a synergistic effect in suppressing the transmission of infectious diseases (Rachah & Torres, 2. (Rachah & Torres, 2. Solving such complex models analytically is often infeasible due to the nonlinear nature of the equations involved. Hence, numerical methods are necessary to find approximate solutions. One of the widely used algorithms for solving optimal control problems is the Forward-Backward Sweep Method (Polak, 1. (Polak, 1. For implementation. MATLAB is commonly chosen because of its capability to handle complex differential systems and to produce high-quality visual simulations (Higham & Higham, 2. (Higham & Higham, 2. This study builds upon and extends the SEIR optimal control framework previously introduced by Sumardi . (Sumardi, 2. , which formulated an SEIR model incorporating two time-dependent control variables: public education and medical treatment. While the earlier study primarily focused on analytical derivation and theoretical optimality conditions, it did not provide an in-depth computational investigation of the dynamic behavior of the controlled system. In response to this gap, the present study repositions the research by emphasizing a computational and quantitative analysis of the dual-control SEIR Specifically, this work integrates numerical simulations using MATLAB to systematically examine how the simultaneous implementation of public education and medical treatment influences the temporal evolution of each compartment (Susceptible. Exposed. Infected, and Recovere. Through this approach, the study provides a clearer evaluation of the effectiveness, interaction, and relative impact of the two control strategies in suppressing disease transmission. Therefore, the main contribution of this research lies in bridging the theoretical optimal control formulation with practical computational validation, offering deeper insight into policy-relevant disease mitigation strategies. 22 | Page Vygotsky: Jurnal Pendidikan Matematika dan Matematika https://doi. org/10. 30736/voj. Sumardi. , et al. /Vygotsky 8 . February 2026, pp. E-ISSN: 2656-5846 P-ISSN: 2656-2286 Through this model, the dynamics of the Ebola outbreak can be visualized more realistically and measured in response to different intervention strategies. Therefore, this research contributes not only theoretically to mathematical epidemiology, but also practically to public health planning by providing insight into effective and cost-efficient control interventions that are applicable in real epidemic settings. In accordance with academic writing conventions, this introduction clearly states the urgency of the study, the theoretical framework used, and the basis for the research. A preliminary literature gap is identified between analytical and simulation-based studies of SEIR optimal control. Therefore, the novelty of this study lies in its implementation of dual optimal controls within a realistic numerical framework, intended to support data-driven health policy. Method The subject of this study is a mathematical model of Ebola virus spread based on the SEIR (Susceptible. Exposed. Infected. Recovere. This model is a system of nonlinear differential equations that represents the transition of individuals in a population through several health compartments, influenced by two types of optimal interventions or controls: education control for susceptible individuals and treatment control for infected individuals. Data collection techniques were conducted through literature studies of relevant scientific publications, both national and international, that examine SEIR-based infectious disease modeling and optimal control theory. Parameter values such as infection rate, transition rate between compartments, recovery rate, and mortality rate were adopted from previous journals and references from official health organizations such as the WHO. Parameters were calibrated to match the realistic biological dynamics of Ebola in the simulation. The initial step in data analysis is to construct a system of differential equations based on the modified SEIR model. The basic model used is as follows: = u Oe yu1 . Oe yc1 . )ycIya Oe yu2 . Oe yc1 . )ycIya Oe yuNycI yuOycI = yu1 . Oe yc1 . )ycIya yu2 . Oe yc1 . )ycIya Oe . ua yuN)ya yccyc yccya = yuaya Oe . u yu yuN yc2 . )ya yccyc yccycI = yuya Oe . uN yuO)ycI yc2 . ya yccyc Description: ycI, ya, ya, ycI yu1 , yu2 yua yu yu : Number of susceptible, exposed, infected, and recovered : Population entry rate : Transmission rates from ya and ya : Transition rate from ya to ya : Recovery rate : Death rate due to disease Vygotsky: Jurnal Pendidikan Matematika dan Matematika https://doi. org/10. 30736/voj. Page | 23 E-ISSN: 2656-5846 P-ISSN: 2656-2286 Sumardi. , et al. /Vygotsky 8 . February 2026, pp. yuN yuO yc1 . OO . OO . : Natural death rate : Immunity loss rate : Level of education, reduces the effectiveness of contact . : Treatment rate, accelerates recovery from ya to ycI. The equation 1, yc1 . OO . represents the time-dependent intensity of public education efforts aimed at reducing effective contact rates. The control variable is defined within the normalized interval . to reflect proportional implementation, where yc1 . = 0 indicates the absence of educational intervention and yc1 . = 1 represents the maximum feasible level of implementation under practical and resource constraints. From a modeling perspective, restricting yc1 . ensures mathematical consistency and boundedness of the control, preventing unrealistic negative efforts or intervention levels exceeding full capacity. Epidemiologically, this normalization allows the control to be interpreted as the fraction or effectiveness of behavioral change induced by education . , mask usage, hygiene practices, reduced physical contac. , which proportionally decreases the transmission rate. Thus, the interval . provides both theoretical tractability in optimal control analysis and a meaningful practical interpretation in public health policy Next. Pontryagin's Minimum Principle is applied to obtain optimal control yc1 . and yc2 . which minimize the number of exposed and infected individuals while also minimizing the associated intervention costs. The objective functional is defined as: yc yc. enya , yenya ) = O. ya ycya yenya . ya ycya yenya . ya ]yeIyei ya Description: ya : weight associated with infected individuals, yaA1 : weight of public education cost, yaA2 : weight of treatment cost. To enhance clarity, the computational procedure of the proposed optimal control strategy is encapsulated in the subsequent algorithm. Algorithm: ForwardAe Backward Sweep Method for Dual-Control SEIR Model. Step 1: Initialization Set parameter values and initial conditions for the SEIR system. Choose final time ycNand discretize the interval . , ycN]. Initialize control functions yc1 . and yc2 . , constant initial guesses within . , . Set convergence tolerance yuA. Step 2: Forward Sweep (State Syste. Solve the state equations (SEIR model with control. forward in time using . the current controls yc1 . , yc2 . Obtain numerical solutions for ycI. , ya. , ya. , ycI. Step 3: Backward Sweep (Co-state Syste. 24 | Page Vygotsky: Jurnal Pendidikan Matematika dan Matematika https://doi. org/10. 30736/voj. E-ISSN: 2656-5846 P-ISSN: 2656-2286 Sumardi. , et al. /Vygotsky 8 . February 2026, pp. Using the transversality conditions yuIycn . cN) = 0, solve the adjoint . o-stat. equations backward in time. Obtain yuI1 . , yuI2 . , yuI3 . , yuI4 . Step 4: Control Update Update controls using the characterization derived from PontryaginAos Minimum Principle: expression involving states and adjoints ( yco . = minA . , maxA . , 2yaA1 expression involving states and adjoints ( yco . = minA . , maxA . , 2yaA Ensure the updated controls remain within the admissible interval . Step 5: Convergence Check Compute the difference between successive controls: Ou yc. Oe yc. Ou< yuA If convergence is satisfied, stop. Otherwise, set yco = yco 1and repeat Steps 2Ae5. Step 6: Evaluation of Effectiveness Compare uncontrolled and controlled scenarios by analyzing: Peak and total number of infected individuals. Time to epidemic peak. Value of the objective functional ya. c1 , yc2 ). All numerical simulations are implemented in MATLAB . using the ForwardAeBackward Sweep Method. Results and Discussion The simulation results clearly illustrate the effectiveness of implementing dual optimal controlsAipublic education and treatment interventionsAiin minimizing the spread of the Ebola virus within the ycIyayaycI model framework. In this study, we developed a SEIR model integrated with two optimal controls, namely yc1 . dan yc2 . to control the spread of infectious diseases. Control yc1 is designed to reduce new infections by decreasing the transition rate from the Susceptible . cI) to Exposed . compartment, representing preventive efforts such as education or contact restrictions. Meanwhile, control yc2 aims to accelerate recovery by increasing the transition rate from the Infected . to Recovered . cI) compartment, which can be interpreted as the effectiveness of treatment or clinical intervention. The results of computational simulations using MATLAB are presented in Figures 1, 2, and 3 to illustrate the impact of these optimal controls on population dynamics. Figure 1 displays the population dynamics of exposed individuals . as a function of time . n month. between the no-control . ashed lin. and optimalcontrol . olid lin. The vertical scale in this graph is in the order of 10Oe3 , indicating that the proportion of the exposed population is very small relative to the total population. In the no-control scenario, the exposed population . exhibits progressive exponential growth, reaching a value of approximately 5 y 10Oe3 at the end of the simulation period. Vygotsky: Jurnal Pendidikan Matematika dan Matematika https://doi. org/10. 30736/voj. Page | 25 Sumardi. , et al. /Vygotsky 8 . February 2026, pp. E-ISSN: 2656-5846 P-ISSN: 2656-2286 Figure 1. Comparison of Exposed Population . with and without Optimal Control This growth indicates that without intervention, the number of individuals potentially becoming ill will continue to increase. In contrast, in the optimalcontrol scenario, the exposed population . is drastically suppressed to near zero throughout the entire simulation period. This nearly flat curve confirms the high effectiveness of the yc1 control in reducing the transition from ycI to ya, indicating the success of the prevention strategy in suppressing the number of exposed individuals early in the transmission chain. The nearly flat curve approaching zero indicates that outreach control has been significantly successful in reducing the probability of individuals moving from the vulnerable to the exposed group. This means that public education about the dangers of physical contact, as well as increasing awareness of health protocols, plays a key role in reducing the initial rate of disease spread. Figure 1 ilustrates the significant reduction in the exposed population under optimal control emphasizes the role of educational campaigns in limiting new This aligns with findings from Funk et al. (Funk et al. , 2. and Seck et al. (Seck et al. , 2. , who emphasized that public awareness and behavior change reduce contact rates and transmission pathways. The flatness of the exposure curve in our study suggests a near-elimination of early transmission chains, a result also observed in Figure 2. Comparison of Infected Population . with and without Optimal Control Figure 2 shows the population dynamics of infected individuals . as a function of time, comparing the uncontrolled . otted lin. and optimally controlled . olid lin. Similar to the exposed population, the vertical scale is in the order of 10Oe3 . In the uncontrolled scenario, the infected population . also shows exponential growth, reaching a value of approximately 4 y 10Oe3 at 26 | Page Vygotsky: Jurnal Pendidikan Matematika dan Matematika https://doi. org/10. 30736/voj. Sumardi. , et al. /Vygotsky 8 . February 2026, pp. E-ISSN: 2656-5846 P-ISSN: 2656-2286 the end of the simulation. This indicates that without intervention, even on a small scale, the number of individuals actively transmitting the disease will continue to However, with the implementation of optimal control, the infected population . is successfully suppressed significantly to near zero throughout the entire simulation period. This drastic suppression of ya is a direct consequence of the success of the yc1 control in reducing the population ya , as well as the contribution of the yc2 control in accelerating the recovery from ya to ycI. These results demonstrate the comprehensive effectiveness of the control strategy in minimizing the burden of infection in the population. The sharp decline in the infected population in the controlled scenario demonstrates that dual interventions, including education and treatment, can halt the rate of new infections and accelerate the transition to recovery. This demonstrates the synergy between controls, not only breaking the chain of transmission but also reducing the number of individuals experiencing severe Figure 2 shows the infected population drastically declines under optimal This supports the synergy between the two controls: public education reduces exposure, while timely treatment accelerates recovery. Similar outcomes were presented by Allali et al. (Allali et al. , 2. , who concluded that the dual-strategy approach significantly lowers infection peaks and shortens epidemic This outcome highlights the value of rapid and concurrent implementation of both control measures. Figure 3: Comparison of Recovered Population . cI) with and without Optimal Control Figure 3 presents the population dynamics of recovered individuals . cI) as a function of time, comparing the no-control scenario . ashed lin. and the optimal control scenario . olid lin. Similar to the ya and ya, compartments, the vertical scale is also on the order of 10Oe3 . In the no-control scenario, the ycI population shows continued exponential growth, reaching approximately 3. 1 y 10Oe3 at the end of the simulation, indicating natural recovery. In the optimal control scenario, the recovered population remains low because very few individuals become infected due to early interventions that successfully contain the spread in the early stages. Although the yc2 control is designed to accelerate recovery . a Ie ycI), the low ycI population in the optimal control scenario can be explained by the remarkable success of the yc1 control. Since yc1 is highly effective in suppressing the number of exposed . and infected . individuals to near zero . s shown in Figures 1 and . , it follows logically that very few individuals can enter the recovered . cI). Therefore, the low R population does not mean that the yc2 control is ineffective. Vygotsky: Jurnal Pendidikan Matematika dan Matematika https://doi. org/10. 30736/voj. Page | 27 Sumardi. , et al. /Vygotsky 8 . February 2026, pp. E-ISSN: 2656-5846 P-ISSN: 2656-2286 but rather is an indication of the overall success of the control system in preventing most individuals from becoming infected and then recovering, thereby reducing the total burden of disease in the population. Figure 3 shows a lower number of recovered individuals in the controlled Although this might appear counterintuitive, it actually reflects the modelAos success in preventing individuals from becoming infected in the first This paradox has also been noted by Cacace and Oliviero . (Cacace & Oliviero, 2. , who pointed out that effective early intervention can reduce the need for medical recovery entirely. The model implies that less recovery is not indicative of control failure, but rather a direct result of successful transmission The discussion also reveals limitations in the modelAos structure. It assumes homogeneous mixing and static parameters, which are simplifications that may not reflect real-world epidemic dynamics such as social behavior shifts, viral mutations, or healthcare disparities (Zinihi et al. , 2. (Zinihi et al. , 2. Additionally, the model lacks spatial dynamics, which could affect accuracy in simulating real geographic spread (Hethcote, 2000. Wang & Zhao, 2. (Hethcote, 2. (Wang & Zhao, 2. Based on these observations, future research should incorporate real-time data integration, spatial heterogeneity, age structures, and adaptive controls. Simulation platforms should also accommodate real outbreak case data to improve the modelAos predictive accuracy and policy relevance. The implications of this study suggest that dual-control strategies, when initiated early, can be an effective framework for health policy planning, particularly in low-resource settings (Sumardi, 2022. WHO, 2. (Sumardi, 2. (World Health Organization, 2. Conclusions This study confirms that implementing a dual optimal control strategy educational campaigns and medical treatment within the SEIR model framework can significantly reduce the number of exposed and infected individuals during the outbreak of infectious diseases such as Ebola. The simulation demonstrates that combining these controls from the early stage of an epidemic effectively suppresses transmission, preventing the disease from reaching wider segments of the population. From a mathematical and epidemiological perspective, the use of PontryaginAos Minimum Principle and the Forward-Backward Sweep Method provides a reliable approach to identifying cost-effective intervention strategies. The findings support earlier research but further emphasize the importance of timing and synergy in public health responses. Nevertheless, this research is not without limitations. The model assumes homogeneous mixing and constant parameters over time, which may oversimplify real-world complexities such as social behavior dynamics, mutation of the virus, or environmental changes. Additionally, the reliance on hypothetical parameter values without calibration using real outbreak data may limit the accuracy of the projections for policy application. Future studies should consider integrating real epidemiological data, spatial dimensions, age structures, or stochastic effects to enhance model realism. The inclusion of adaptive control strategies that respond dynamically to data updates could also be explored. Furthermore, interdisciplinary collaboration with public 28 | Page Vygotsky: Jurnal Pendidikan Matematika dan Matematika https://doi. org/10. 30736/voj. Sumardi. , et al. /Vygotsky 8 . February 2026, pp. E-ISSN: 2656-5846 P-ISSN: 2656-2286 health experts and policymakers is crucial to transform theoretical insights into practical action. The implication of this research lies in its contribution to epidemic Mathematical models, when paired with optimization techniques, can serve as decision-support tools for designing responsive, cost-efficient health interventions, particularly in regions with limited healthcare resources. Author Contributions The first author contributed to the construction of the model, theoritical analysis, and interpretation of the results. The second author contributed to the numerical analysis and simulation. The first author as corresponding author revised the article based on review from reviewer and journal editor. All authors provided critical feedback and helped shape the research, analysis and manuscript. Declaration of Competing Interest No potential conflict of interest was reported by the author. References