<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD with MathML3 v1.1d2 20140930//EN" "JATS-journalpublishing1-mathml3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.1d2" xml:lang="en">
  <front>
    <journal-meta>
      <journal-id journal-id-type="nlm-ta">SECO</journal-id>
      <journal-id journal-id-type="publisher-id">IECE</journal-id>
      <journal-title-group>
        <journal-title>Sustainable Energy Control and Optimization</journal-title>
      </journal-title-group>
      <issn pub-type="ppub" publication-format="print">pending</issn>
      <issn pub-type="epub" publication-format="electronic">pending</issn>
      <publisher>
        <publisher-name>Institute of Emerging and Computer Engineering Inc</publisher-name>
        <publisher-loc>522 W RIVERSIDE AVE STE N, SPOKANE, WA, 99201-0508, UNITED STATES</publisher-loc>
      </publisher>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.62762/SECO.2025.439281</article-id>
      <article-categories>
        <subj-group subj-group-type="heading">
          <subject>Research Article</subject>
        </subj-group>
      </article-categories>
      <title-group>
        <article-title>Linear Quadratic Regulator (LQR) and Linear Quadratic Tracking (LQT) Circuits on DC Motor BN12 Control</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <name>
            <surname>Eviningsih</surname>
            <given-names>Rachma Prilian</given-names>
          </name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <contrib-id contrib-id-type="orcid">https://orcid.org/0000-0002-4482-2829</contrib-id>
          <name>
            <surname>Nugraha</surname>
            <given-names>Anggara Trisna</given-names>
          </name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <contrib-id contrib-id-type="orcid">https://orcid.org/0009-0003-9861-2805</contrib-id>
          <name>
            <surname>Sobhita</surname>
            <given-names>Rama Arya</given-names>
          </name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <aff id="aff1"><label>1</label>Department of Electrical Engineering, Electronic Engineering Polytechnic Institute of Surabaya, Surabaya 60111, Indonesia</aff>
        <aff id="aff2"><label>2</label>Department of Marine Electrical Engineering, Shipbuilding Institute of Polytechnic Surabaya, Surabaya 60111, Indonesia</aff>
      </contrib-group>
      <author-notes>
        <corresp id="cor2">Corresponding Author: Anggara Trisna Nugraha. Email: <email>anggaranugraha@ppns.ac.id</email></corresp>
      </author-notes>
      <pub-date date-type="pub" pub-type="epub" publication-format="online">
        <day>30</day>
        <month>5</month>
        <year>2025</year>
      </pub-date>
      <volume>1</volume>
      <issue>1</issue>
      <fpage>10</fpage>
      <lpage>19</lpage>
      <history>
        <date date-type="received">
          <day>29</day>
          <month>3</month>
          <year>2025</year>
        </date>
        <date date-type="accepted">
          <day>18</day>
          <month>5</month>
          <year>2025</year>
        </date>
      </history>
      <permissions>
        <copyright-statement>© 2025 by the Authors. Published by Institute of Emerging and Computer Engineers. This is an open access article under the CC BY license (https://creativecommons.org/licenses/by/4.0/).</copyright-statement>
        <copyright-year>2025</copyright-year>
        <copyright-holder>Institute of Emerging and Computer Engineering Inc</copyright-holder>
        <license xlink:href="https://creativecommons.org/licenses/by/4.0/">
        <license-p>This work is licensed under a <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</ext-link>, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.</license-p>
        </license>
      </permissions>
      <self-uri xlink:href="https://www.iece.org/article/abs/seco.2025.439281">This article is available from https://www.iece.org/article/abs/seco.2025.439281</self-uri>
      <abstract>
        <p>In the modern era, the development of renewable energy technology has rapidly advanced, and one key approach to improving technology is through system optimization. System optimization involves solving problems to achieve the best possible conditions, resulting in maximum or minimum values for system performance. In the context of DC motors, optimization aims to reduce the initial peak in motor current when the motor is started, ensuring smoother and more efficient operation. Various optimization techniques can be employed, with two commonly used circuits being the Linear Quadratic Regulator (LQR) and the Linear Quadratic Tracking (LQT). Both methods are designed to improve system performance by controlling motor behavior, but they differ in their approach to dynamic feedback and tracking error. This paper explores these circuits, using a BN12 type DC motor as a case study, to illustrate how LQR and LQT can be applied to minimize startup current peaks and enhance motor control. Through simulation and analysis, the study demonstrates how each circuit contributes to achieving optimal performance in DC motor systems. The results highlight the potential of these optimization methods in improving the efficiency and longevity of DC motors, particularly in renewable energy applications where motor performance is crucial. This research aims to provide insights into the practical applications of LQR and LQT for optimizing DC motor systems in various technological fields.</p>
      </abstract>
      <kwd-group kwd-group-type="author" xml:lang="en">
        <kwd>system optimization</kwd>
        <kwd>BN12</kwd>
        <kwd>LQR</kwd>
        <kwd>LQT</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="S1">
      <label>1.</label>
      <title>Introduction</title>
      <p id="S1.p1">In the field of control systems, the Linear-Quadratic Regulator (LQR) and Linear-Quadratic Tracker (LQT) are two widely used methods for controlling linear dynamic systems [<xref rid="ref001" ref-type="bibr">1</xref>]. These techniques focus on determining the optimal actions a control system must take to achieve specific objectives, primarily by minimizing system errors. The primary goal of these methods is to ensure that the system behaves in a desired manner while maintaining performance stability and reducing undesirable deviations.</p>
      <p id="S1.p2">LQR is designed to control a linear dynamic system by providing the appropriate input signals that guide the system towards a predefined goal [<xref rid="ref001" ref-type="bibr">1</xref>]. For instance, in robotics, LQR can be used to ensure that a robot's position remains accurately controlled despite external disturbances. Similarly, in automotive applications, it can regulate a vehicle's speed or maintain stability during maneuvers. By minimizing a quadratic cost function, LQR efficiently balances control effort and state error, making it a preferred choice in many engineering applications [<xref rid="ref002" ref-type="bibr">2</xref>, <xref rid="ref003" ref-type="bibr">3</xref>].</p>
      <p id="S1.p3">On the other hand, LQT extends LQR's capability by focusing on tracking a specific input signal. It is particularly useful for systems that need to follow a given trajectory or path, such as in navigation and control of autonomous vehicles, aircraft, or robotic systems. LQT aims to reduce the deviation between the system's output and the reference signal over time, ensuring precise tracking of the desired path or trajectory.</p>
      <p id="S1.p4">Both methods rely on solving linear differential equations that describe the dynamics of the system and use optimization techniques to determine the correct control actions [<xref rid="ref004" ref-type="bibr">4</xref>, <xref rid="ref005" ref-type="bibr">5</xref>]. LQR and LQT have proven their effectiveness in various industrial and transportation applications, such as vehicle control, aircraft stability, and robotics, and continue to contribute to advancements in automation and intelligent systems. This research aims to explore these techniques in the context of DC motor control, analyzing their potential in optimizing performance and improving efficiency.</p>
    </sec>
    <sec id="S2">
      <label>2.</label>
      <title>Related Work</title>
      <p id="S2.p1">In the following section, previous research will be presented which still has similarities with the topic being discussed now. Here are some summaries of the research.</p>
      <sec id="S2.SS1">
        <label>2.1</label>
        <title>Linear Quadratic Regulator (LQR) in DC Motor Systems</title>
        <p id="S2.SS1.p1">Research conducted by Firdaus (2024) compares two control methods that are often used in DC motor systems, namely Linear Quadratic Regulator (LQR) and Proportional-Integral-Derivative (PID) Controllers [<xref rid="ref001" ref-type="bibr">1</xref>]. The main focus of this study is to improve the stability of the DC motor system, by highlighting the performance differences between the two methods.</p>
        <p id="S2.SS1.p2">LQR in this study: LQR is used to obtain optimal control with the aim of minimizing the cost function that includes position and speed errors and system input control. LQR works by calculating a feedback matrix that regulates the control input based on the state of the system, namely the position and speed of the motor. In the context of DC motors, LQR is able to provide more precise and stable settings, especially in systems that have disturbances or model uncertainty.</p>
        <p id="S2.SS1.p3">This study shows that LQR has advantages in terms of faster and more stable responses compared to PID in DC motor settings, especially when faced with variations or changes in load [<xref rid="ref001" ref-type="bibr">1</xref>]. Compared to PID, LQR offers a more efficient solution in optimizing motor performance, given that PID tends to be more sensitive to parameter changes and tuning errors.</p>
        <p id="S2.SS1.p4">Overall, the results of this study show that the use of LQR in DC motor control provides better stability, with more structured programming to achieve optimal control under more complex conditions than PID.</p>
      </sec>
      <sec id="S2.SS2">
        <label>2.2</label>
        <title>Control Methods for Optimization of DC Motor Control Systems Based on MATLAB Simulink</title>
        <p id="S2.SS2.p1">In the study by Syaifudin (2024), the application of Linear Quadratic Regulator (LQR) and Linear Quadratic Tracking (LQT) control methods is explored for optimizing DC motor control systems [<xref rid="ref002" ref-type="bibr">2</xref>]. The primary objective of this research is to improve energy efficiency for home industry players, leveraging the power of MATLAB Simulink for simulation.</p>
        <p id="S2.SS2.p2">LQR and MATLAB Simulation in the Study: In this research, MATLAB Simulink is utilized as the platform for simulating both LQR and LQT controllers. The simulation is key to assessing the performance and efficiency of the control methods applied to the DC motor system. MATLAB Simulink provides a comprehensive environment where the system model, including the DC motor dynamics, is represented with the relevant parameters for testing the control strategies [<xref rid="ref002" ref-type="bibr">2</xref>].</p>
        <p id="S2.SS2.p3">The study demonstrates how the LQR controller is implemented in MATLAB Simulink, focusing on optimizing the system's energy usage while maintaining stability and performance. The simulation shows the advantages of LQR, particularly in minimizing the cost function related to energy consumption, motor speed, and position regulation. MATLAB's robust simulation environment allows for fine-tuning of the control parameters to achieve optimal performance and efficiency in a home industry setting.</p>
        <p id="S2.SS2.p4">In addition to LQR, the LQT method is also simulated in MATLAB Simulink to compare its effectiveness in achieving the desired control objectives. The results reveal that both LQR and LQT provide substantial improvements in energy efficiency and system performance, with LQR offering better stability and faster response times, especially in scenarios with varying load conditions.</p>
        <p id="S2.SS2.p5">Overall, the research highlights the importance of using MATLAB Simulink for simulating and optimizing DC motor control systems in real-world applications, particularly in enhancing energy efficiency for home industries [<xref rid="ref002" ref-type="bibr">2</xref>, <xref rid="ref003" ref-type="bibr">3</xref>].</p>
      </sec>
      <sec id="S2.SS3">
        <label>2.3</label>
        <title>Design and Simulation of DC Motor Control Based on LQR and LQT</title>
        <p id="S2.SS3.p1">In the study by Satrianata (2024), the design and simulation of DC motor control systems using Linear Quadratic Regulator (LQR) and Linear Quadratic Tracking (LQT) are explored, with a goal of achieving an optimal control system [<xref rid="ref003" ref-type="bibr">3</xref>]. The paper discusses the design principles of both controllers, along with their application in DC motor systems, aiming for improved performance and stability.</p>
        <p id="S2.SS3.p2">The study emphasizes the design process of both LQR and LQT controllers, specifically for DC motor control. The LQR design focuses on determining the optimal feedback gain matrix that minimizes a quadratic cost function, which is based on the error in the system (e.g., position and speed) and control efforts. In this study, the LQR design procedure involves setting up the state-space model of the DC motor, defining the weighting matrices, and then calculating the optimal feedback gain using MATLAB tools.</p>
        <p id="S2.SS3.p3">The LQT design, on the other hand, is extended to include tracking capabilities, where the goal is not only to stabilize the system but also to track a desired reference trajectory. The LQT controller requires a similar design process to LQR but incorporates additional terms in the cost function to account for tracking errors. This allows the system to follow a specific reference while still maintaining optimal control performance [<xref rid="ref003" ref-type="bibr">3</xref>, <xref rid="ref004" ref-type="bibr">4</xref>].</p>
        <p id="S2.SS3.p4">The paper also describes how both controllers are simulated in MATLAB Simulink, where the system's state-space representation and control law are implemented. The simulation results demonstrate the effectiveness of the LQR in stabilizing the DC motor with minimal control effort, while the LQT shows better tracking performance for systems where reference following is critical.</p>
        <p id="S2.SS3.p5">The comparison between LQR and LQT in the simulation highlights the strengths of each method. The LQR controller provides robust stability and fast response times, making it ideal for scenarios where the system needs to be quickly stabilized [<xref rid="ref001" ref-type="bibr">1</xref>, <xref rid="ref003" ref-type="bibr">3</xref>]. Meanwhile, LQT is shown to excel in scenarios where the system must follow a precise reference path, with the additional benefit of improving the tracking performance without sacrificing stability.</p>
        <p id="S2.SS3.p6">Overall, the study underscores the importance of designing LQR and LQT controllers to meet the specific needs of DC motor control systems, ensuring both optimal performance and efficiency in various operational conditions.</p>
      </sec>
    </sec>
    <sec id="S3">
      <label>3.</label>
      <title>Methodology</title>
      <p id="S3.p1">This section will discuss the methods used in this research. will be described in the research stages in the following subsections.</p>
      <sec id="S3.SS1">
        <label>3.1</label>
        <title>Research Stages</title>
        <p id="S3.SS1.p1">This research process follows several systematic stages designed to produce a deep understanding of the application of Linear Quadratic Regulator (LQR) and Linear Quadratic Tracking (LQT) on the control system of the BN12 DC Motor. The main steps in this study are as follows:</p>
        <p>
          <list list-type="bullet" id="S3.I1">
            <list-item id="S3.I1.i1">
              <p id="S3.I1.i1.p1">Literature Studies</p>
              <p id="S3.I1.i1.p2">The first stage in this study involves an extensive literature search to gather relevant references. The literature review serves as the foundation for understanding DC motor control principles, as well as the theoretical frameworks behind the LQR and LQT methods. This step includes analyzing scientific articles, peer-reviewed journals, datasheets, and textbooks that provide a comprehensive background on the operation and optimization of DC motors, control theory, and algorithm applications [<xref rid="ref005" ref-type="bibr">5</xref>, <xref rid="ref006" ref-type="bibr">6</xref>]. A solid understanding of these sources helps in forming the theoretical base necessary for the subsequent stages of the study.</p>
            </list-item>
            <list-item id="S3.I1.i2">
              <p id="S3.I1.i2.p1">Mathematical Model Creation</p>
              <p id="S3.I1.i2.p2">Once the theory underlying DC motor control has been understood, the next step is to create a mathematical model representing the dynamic system of the BN12 DC motor. This model will describe the physical parameters and operational behaviors of the motor, including its response to inputs, such as voltage and current, and how it interacts with external disturbances [<xref rid="ref007" ref-type="bibr">7</xref>, <xref rid="ref008" ref-type="bibr">8</xref>]. The mathematical model serves as a tool for simulating the motor's behavior under different control algorithms. This model will also be used to validate the theoretical concepts obtained during the literature study and to ensure that the system's real-world behavior aligns with the expectations of the control methods.</p>
            </list-item>
            <list-item id="S3.I1.i3">
              <p id="S3.I1.i3.p1">Network Creation</p>
              <p id="S3.I1.i3.p2">In this stage, the DC motor control system is developed using MATLAB Simulink software. The objective here is to design a simulation model that integrates both the DC motor and the control algorithms (LQR and LQT). This step involves creating the motor's control circuit and incorporating the LQR and LQT algorithms to regulate the motor's behavior. To ensure the robustness of the system, various testing scenarios are performed, including simulations with noise disturbances that could affect motor performance [<xref rid="ref009" ref-type="bibr">9</xref>]. The goal is to assess how well the system maintains control and stability under varying conditions.</p>
            </list-item>
            <list-item id="S3.I1.i4">
              <p id="S3.I1.i4.p1">Results and Discussion</p>
              <p id="S3.I1.i4.p2">Once the control system model is established, the simulation results are generated and analyzed to evaluate the performance of the motor under different control methods. The analysis focuses on comparing the performance of LQR and LQT in terms of motor efficiency, response time, and ability to handle external noise. A detailed discussion will highlight how each algorithm performs under different configurations and which method provides better control and stability for the DC motor.</p>
            </list-item>
            <list-item id="S3.I1.i5">
              <p id="S3.I1.i5.p1">Drawing Conclusions</p>
              <p id="S3.I1.i5.p2">The final stage involves synthesizing the results from the simulation and analysis to draw meaningful conclusions about the effectiveness of using LQR and LQT for controlling DC motors. The conclusions will reflect on the relative advantages and limitations of each method in terms of optimization, robustness, and practical application. This step will also provide insights into how these control strategies can be further refined or applied in real-world DC motor systems. Ultimately, the research will contribute to a deeper understanding of how LQR and LQT can be effectively utilized for optimizing the performance of DC motors in various technological fields.</p>
            </list-item>
          </list>
        </p>
      </sec>
      <sec id="S3.SS2">
        <label>3.2</label>
        <title>DC Motor</title>
        <p id="S3.SS2.p1">The motor used in this study is the BN12 DC Motor, which is chosen for its well-documented specifications and suitability for control system experiments. The technical specifications of the BN12 DC Motor are crucial for the mathematical calculations and modeling performed throughout this research, as they define the parameters that govern the motor's dynamic behavior.</p>
        <p id="S3.SS2.p2">These specifications include key parameters such as the motor's voltage rating, current consumption, power output, torque characteristics, speed range, and mechanical dimensions, all of which play an important role in the system's modeling and control strategies [<xref rid="ref010" ref-type="bibr">10</xref>, <xref rid="ref011" ref-type="bibr">11</xref>]. Additionally, the motor's moment of inertia, resistance, and inductance are necessary for accurately describing the motor's physical properties and ensuring that the control algorithms (LQR and LQT) are optimized for its specific characteristics. The BN12 DC motor is illustrated in Figure <xref ref-type="fig" rid="F1">1</xref>.</p>
        <p>
          <fig id="F1">
            <label>Figure 1.</label>
            <caption>
              <p>DC motor DC BN12.</p>
            </caption>
            <graphic xlink:href="fig1.png"/>
          </fig>
        </p>
        <p id="S3.SS2.p3">By integrating these specifications into the mathematical model, the study ensures that the simulation results accurately reflect the real-world behavior of the BN12 DC Motor, facilitating effective control strategy testing. The following image presents the motor's technical specifications, which will guide the model development and control system design [<xref rid="ref012" ref-type="bibr">12</xref>]. Figure <xref ref-type="fig" rid="F2">2</xref> presents the motorbike specifications.</p>
        <p>
          <fig id="F2">
            <label>Figure 2.</label>
            <caption>
              <p>DC motor DC BN12 specification.</p>
            </caption>
            <graphic xlink:href="fig2.png"/>
          </fig>
        </p>
        <p id="S3.SS2.p4">These specifications will guide the setup of the simulation environment in MATLAB Simulink, allowing for accurate testing and evaluation of the motor's performance under various control scenarios. DC motor 1st order function transfer equation:</p>
        <p>
          <disp-formula id="S3.E1">
            <mml:math alttext="G(s)=\frac{0.0056}{2.26s+1}" display="block">
              <mml:mrow>
                <mml:mrow>
                  <mml:mi>G</mml:mi>
                  <mml:mo>⁢</mml:mo>
                  <mml:mrow>
                    <mml:mo stretchy="false">(</mml:mo>
                    <mml:mi>s</mml:mi>
                    <mml:mo stretchy="false">)</mml:mo>
                  </mml:mrow>
                </mml:mrow>
                <mml:mo>=</mml:mo>
                <mml:mfrac>
                  <mml:mn>0.0056</mml:mn>
                  <mml:mrow>
                    <mml:mrow>
                      <mml:mn>2.26</mml:mn>
                      <mml:mo>⁢</mml:mo>
                      <mml:mi>s</mml:mi>
                    </mml:mrow>
                    <mml:mo>+</mml:mo>
                    <mml:mn>1</mml:mn>
                  </mml:mrow>
                </mml:mfrac>
              </mml:mrow>
            </mml:math>
          </disp-formula>
        </p>
      </sec>
      <sec id="S3.SS3">
        <label>3.3</label>
        <title>MatLab</title>
        <p id="S3.SS3.p1">To build a system simulation model, various components are utilized within MATLAB Simulink software [<xref rid="ref013" ref-type="bibr">13</xref>, <xref rid="ref014" ref-type="bibr">14</xref>]. Simulink provides a graphical environment where users can model, simulate, and analyze dynamic systems using pre-built blocks that represent physical components, mathematical operations, and control algorithms. The components used in this study are selected to accurately represent the behavior of the BN12 DC motor and integrate the LQR and LQT control strategies.</p>
        <p id="S3.SS3.p2">Simulink blocks include modules for defining the DC motor's electrical and mechanical characteristics, such as voltage input, current measurement, speed, and torque outputs [<xref rid="ref015" ref-type="bibr">15</xref>, <xref rid="ref016" ref-type="bibr">16</xref>]. Additionally, blocks for the LQR and LQT controllers are incorporated to implement optimal control based on state feedback and tracking. These blocks interact seamlessly to simulate the motor's response to various inputs and disturbances, providing valuable insights into system behavior.</p>
        <p id="S3.SS3.p3">Moreover, essential blocks for signal processing, error tracking, and performance analysis are included to monitor and evaluate the system's behavior during simulations [<xref rid="ref017" ref-type="bibr">17</xref>, <xref rid="ref018" ref-type="bibr">18</xref>]. By connecting these components in Simulink, the system's dynamics can be visualized in real time, enabling easy adjustments and optimizations to the control parameters [<xref rid="ref019" ref-type="bibr">19</xref>].</p>
        <p id="S3.SS3.p4">A summary of the key components used in this study can be seen in Figure <xref ref-type="fig" rid="F3">3</xref>, which provides a list of Simulink blocks and their respective functions within the simulation model. These components are crucial for building a comprehensive system that accurately reflects the behavior of the DC motor under the influence of the control algorithms [<xref rid="ref020" ref-type="bibr">20</xref>].</p>
        <p>
          <fig id="F3">
            <label>Figure 3.</label>
            <caption>
              <p>Simulink tools.</p>
            </caption>
            <graphic xlink:href="fig3.png"/>
          </fig>
        </p>
      </sec>
    </sec>
    <sec id="S4">
      <label>4.</label>
      <title>Experiments</title>
      <sec id="S4.SS1">
        <label>4.1</label>
        <title>Program Script Matlab LQR</title>
        <p id="S4.SS1.p1">In this research, the BN12 DC motor control system is optimized using the Linear Quadratic Regulator (LQR) technique, aiming to achieve the best control performance by factoring in cost criteria that include the squared error and control energy. The DC motor's mathematical model incorporates several parameters, such as moment of inertia (J), damping coefficient (b), motor constant (K), resistance (R), and inductance (L). These parameters are fundamental for developing a state-space system, represented by matrices A, B, and C. To attain optimal performance, the LQR matrix is calculated by carefully selecting appropriate values for the Q and R matrices, which helps in balancing the system's response and the applied control inputs.</p>
        <p id="S4.SS1.p2">During the controller design, explicit constraints such as actuator limits or state bounds were not imposed directly within the control formulation. However, these practical considerations were indirectly addressed through careful selection of design parameters. For the LQR method, the weighting matrices Q and R were tuned to prioritize stability, fast response, and minimal overshoot, ensuring that the system behavior remains within acceptable operational ranges. Similarly, in the pole placement approach, the selected poles were chosen to ensure a well-damped and responsive closed-loop system that avoids aggressive control actions.</p>
        <preformat> % OPTIMIZATION OF LQR SYSTEM ON DC MOTORS  Clear;  CLC;  % DC Motor Models  J = 28.2; b= 0.1; K= 0.144; R= 0.93; L = 0.000254;  % J = Moment of Inertia, b = Attenuation Ratio, K=  Constant, R= Resistance, L= Inductance  A = [-b/J K/J; -K/L -R/L];  B = [0; 1/L];  C = [1 0];  AA = [A zeros(2,1); -C 0];  BB = [B; 0];  % Pole Placement  J = [-3 -4 -5];  K = acker(AA,BB,J);  KI = -K(3);  KK = [K(1) K(2)];  % LQR Matrix  Q = [1 0 0; 0 1 0; 0 0 1000];  R = [1];  K_lqr = lqr(AA,BB,Q,R);  KI2 = -K_lqr(3);  KK2 = [K_lqr(1) K_lqr(2)]; </preformat>
        <p id="S4.SS1.p4">The following is a display of Figures <xref ref-type="fig" rid="F4">4</xref>, <xref ref-type="fig" rid="F5">5</xref>, <xref ref-type="fig" rid="F6">6</xref>, and <xref ref-type="fig" rid="F7">7</xref> which show the simulation circuit used.</p>
        <p>
          <fig id="F4">
            <label>Figure 4.</label>
            <caption>
              <p>BN12 DC motor series.</p>
            </caption>
            <graphic xlink:href="fig4.png"/>
          </fig>
        </p>
        <p>
          <fig id="F5">
            <label>Figure 5.</label>
            <caption>
              <p>LQR motor.</p>
            </caption>
            <graphic xlink:href="fig5.png"/>
          </fig>
        </p>
        <p>
          <fig id="F6">
            <label>Figure 6.</label>
            <caption>
              <p>LQR network.</p>
            </caption>
            <graphic xlink:href="fig6.png"/>
          </fig>
        </p>
        <p>
          <fig id="F7">
            <label>Figure 7.</label>
            <caption>
              <p>LQR network with noise.</p>
            </caption>
            <graphic xlink:href="fig7.png"/>
          </fig>
        </p>
      </sec>
      <sec id="S4.SS2">
        <label>4.2</label>
        <title>Program Script Matlab LQT</title>
        <p id="S4.SS2.p1">Furthermore, the Linear Quadratic Tracking (LQT) method is employed to enhance the performance of the DC motor control system by focusing on more precise trajectory tracking. In the LQT approach, the optimization process includes determining smaller values for the Q and R matrices to ensure optimal performance during the tracking process. The calculation of the S matrix, derived from the Riccati equation, plays a crucial role in determining the desired feedback gain. This feedback gain enables more adaptive control of the motor, improving its response and accuracy in following the desired trajectory.</p>
        <preformat> % LQT SYSTEM OPTIMIZATION ON DC MOTORS  Clear;  CLC;  % DC Motor Models  J = 49.430; b= 0.1; K= 0.022; R= 0.10; L = 0.000012;  % J = Moment of Inertia, b = Attenuation Ratio, K=  Constant, R= Resistance, L= Inductance  A = [-b/J K/J; -K/L -R/L];  B = [0; 1/L];  C = [1 0];  Q=10; R=0.0000000001;  W=C'*Q;  [S,o,m,n] = care(A,B,C'*Q*C,R);  K = inv(R)*B'*S;  ACL = (A-B*K)';  L = inv(R)*B'; </preformat>
      </sec>
      <sec id="S4.SS3">
        <label>4.3</label>
        <title>Result LQR</title>
        <p id="S4.SS3.p1">In this section, it will be divided into 2 types of experimental results. Normal experimental results and experimental results with noise. The parameters of the proposed controller were selected based on system characteristics and desired performance objectives. For the pole placement method, poles were assigned at <inline-formula><mml:math alttext="-3" display="inline"><mml:mrow><mml:mo>−</mml:mo><mml:mn>3</mml:mn></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math alttext="-4" display="inline"><mml:mrow><mml:mo>−</mml:mo><mml:mn>4</mml:mn></mml:mrow></mml:math></inline-formula>, and <inline-formula><mml:math alttext="-5" display="inline"><mml:mrow><mml:mo>−</mml:mo><mml:mn>5</mml:mn></mml:mrow></mml:math></inline-formula> to ensure sufficient damping and a fast transient response. In the LQR design, the Q and R matrices were tuned experimentally to balance between state error minimization and control effort. These choices were guided by simulation<inline-formula><mml:math alttext="-" display="inline"><mml:mo>−</mml:mo></mml:math></inline-formula>based trial<inline-formula><mml:math alttext="-" display="inline"><mml:mo>−</mml:mo></mml:math></inline-formula>and<inline-formula><mml:math alttext="-" display="inline"><mml:mo>−</mml:mo></mml:math></inline-formula>error optimization, The following is the explanation.</p>
        <p>
          <list list-type="bullet" id="S4.I1">
            <list-item id="S4.I1.i1">
              <p id="S4.I1.i1.p1">Simulation LQR without noise</p>
              <p id="S4.I1.i1.p2">The noiseless LQR simulation demonstrates a highly stable step response for the BN12 DC motor, with the output amplitude settling at approximately 1. This indicates that the system has successfully achieved its desired state, maintaining steady performance without significant deviations. The system's rise time was recorded at 1.109 seconds, which is a relatively fast response time, signifying the effectiveness of the LQR control in quickly driving the motor to its target state.</p>
              <p id="S4.I1.i1.p3">Additionally, the simulation results revealed an exceptionally small overshoot and undershoot of only 0.505%, indicating that the motor was able to reach the desired setpoint without significant fluctuations or oscillations. This minimal deviation showcases the controller's ability to maintain a smooth and precise response, ensuring that the motor operates efficiently without excessive energy consumption or instability. The performance metrics obtained from the noiseless LQR simulation underscore the method's potential in providing highly accurate and stable control for the BN12 DC motor, making it an effective solution for real-world applications where precision and stability are critical. Figure <xref ref-type="fig" rid="F8">8</xref> shows the noise-free step response.</p>
              <p>
                <fig id="F8">
                  <label>Figure 8.</label>
                  <caption>
                    <p>Noise-free step response display.</p>
                  </caption>
                  <graphic xlink:href="fig8.png"/>
                </fig>
              </p>
            </list-item>
            <list-item id="S4.I1.i2">
              <p id="S4.I1.i2.p1">Simulation LQR with noise</p>
              <p id="S4.I1.i2.p2">In the LQR simulation with noise, the BN12 DC motor system exhibits noticeable fluctuations, primarily due to the influence of external disturbances or noise within the system. These disturbances result in an increased level of instability, which is reflected in the simulation results shown in Figure <xref ref-type="fig" rid="F9">9</xref>. The amplitude of the system's response is significantly lower, reaching only 0.67, compared to the noiseless case, suggesting that the motor's ability to reach and maintain the target value is impaired by the presence of noise.</p>
              <p id="S4.I1.i2.p3">Furthermore, the rise time was recorded at 52.720 ms, indicating that the system still responds relatively quickly, but not as efficiently as in the noiseless scenario. However, the most striking observation is the extremely large overshoot of 102.942%, which shows that the system drastically exceeds the target value before settling. This is followed by a considerable undershoot of -87.686%, highlighting a significant delay and fluctuation before the motor stabilizes.</p>
              <p id="S4.I1.i2.p4">These results underscore the negative impact of noise on the system's performance. The large overshoot and undershoot demonstrate that noise disrupts the controller's ability to stabilize the system and maintain precise control. This simulation highlights the challenges associated with noise interference in control systems and emphasizes the need for robust control strategies that can minimize the adverse effects of disturbances, ensuring stable and accurate motor performance under real-world conditions.</p>
              <p>
                <fig id="F9">
                  <label>Figure 9.</label>
                  <caption>
                    <p>LQR step response display with noise.</p>
                  </caption>
                  <graphic xlink:href="fig9.png"/>
                </fig>
              </p>
            </list-item>
          </list>
        </p>
      </sec>
      <sec id="S4.SS4">
        <label>4.4</label>
        <title>Result LQT</title>
        <p id="S4.SS4.p1">In this section, it will be divided into 2 types of experimental results. Normal experimental results and experimental results with noise. The following is the explanation.</p>
        <p>
          <list list-type="bullet" id="S4.I2">
            <list-item id="S4.I2.i1">
              <p id="S4.I2.i1.p1">Simulation LQR without noise</p>
              <p id="S4.I2.i1.p2">Systems utilizing LQT (Linear Quadratic Tracking) exhibit distinctly different results compared to LQR (Linear Quadratic Regulator). In the LQT simulation, while the amplitude of the system response reached 9.925, which is a higher value than in the LQR case, the system exhibited a high overshoot of 5.58%. This overshoot suggests that there may be a deficiency or defect in the control system that needs to be addressed. The presence of such a notable overshoot implies that the system initially exceeds the desired target before stabilizing, which can potentially lead to instability in practical applications.</p>
              <p id="S4.I2.i1.p3">Despite the higher overshoot, the LQT-controlled system demonstrates a more responsive behavior compared to LQR. The tracking ability of LQT allows for faster adaptation to changes in input signals, making it more effective in scenarios where the system needs to follow a dynamically changing reference. This responsiveness, however, comes at the cost of reduced accuracy, as seen in the overshoot and slightly unstable settling.</p>
              <p id="S4.I2.i1.p4">The trade-off between response speed and stability is evident here: while LQT excels in tracking speed and adaptability, it introduces a risk of over-correction, leading to higher overshoots. These issues need to be addressed through further tuning of the control parameters or the implementation of additional techniques, such as filtering or more refined feedback loops, to minimize overshoot and improve the system's overall accuracy without sacrificing its responsiveness.</p>
              <p id="S4.I2.i1.p5">Thus, while LQT offers better performance in terms of quick adaptation to changes, it is crucial to find a balance between responsiveness and control stability to ensure that the system remains both efficient and accurate in real-world applications. Figure <xref ref-type="fig" rid="F10">10</xref> shows the step response of the noise-free LQT.</p>
              <p>
                <fig id="F10">
                  <label>Figure 10.</label>
                  <caption>
                    <p>LQT step response display without noise.</p>
                  </caption>
                  <graphic xlink:href="fig10.png"/>
                </fig>
              </p>
            </list-item>
            <list-item id="S4.I2.i2">
              <p id="S4.I2.i2.p1">Simulation LQR with noise</p>
              <p id="S4.I2.i2.p2">Under noisy conditions, the LQT system exhibited considerable fluctuations in the output graph, as shown in Figure <xref ref-type="fig" rid="F11">11</xref>, which are indicative of the system's challenges in handling external disturbances or noise. The undershoot of -9.136% and the overshoot of 13.219% highlight a significant instability in the system's performance. The motor was unable to settle around the desired setpoint, and instead, it exhibited oscillations that resulted in substantial deviations both above and below the target value. These deviations are a clear indication of the system's struggle to maintain accurate tracking in the presence of noise, revealing a critical issue with the system's robustness.</p>
              <p id="S4.I2.i2.p3">Despite the relatively fast rise time of 50.013 ms, which suggests that the system initially responds quickly to changes, the LQT control algorithm was unable to successfully maintain the trajectory or target setpoint due to the interference caused by the noise. This highlights a fundamental weakness in the LQT approach when exposed to disturbances. The system's response time is fast, but the inability to accurately track the desired reference signal results in poor overall performance, as seen in the high overshoot and undershoot.</p>
              <p id="S4.I2.i2.p4">The results underscore the LQT system's vulnerability to noise, particularly in scenarios where high precision is required. Although LQT is effective in situations that demand fast response and adaptability, it is less robust in environments with significant noise or disturbances. This suggests the need for further refinement in the control strategy, such as incorporating noise-filtering techniques or hybrid control methods, to enhance the LQT system's ability to effectively cope with interference while maintaining both responsiveness and stability.</p>
              <p>
                <fig id="F11">
                  <label>Figure 11.</label>
                  <caption>
                    <p>LQT step response display with noise.</p>
                  </caption>
                  <graphic xlink:href="fig11.png"/>
                </fig>
              </p>
            </list-item>
          </list>
        </p>
      </sec>
    </sec>
    <sec id="S5">
      <label>5.</label>
      <title>Conclusion</title>
      <p id="S5.p1">Based on the simulation results, the BN12 DC motor control system using the LQR method outperforms LQT, particularly in stability and quick setpoint achievement. LQR ensures fast response with minimal overshoot (0.505%) and undershoot, maintaining precise control with minimal deviation. In contrast, LQT achieves a higher amplitude but suffers from significant overshoot (5.58%) and fluctuations, especially in noisy conditions, leading to instability and less accurate tracking.</p>
      <p id="S5.p2">Regarding robustness, LQR shows strong performance in noiseless conditions but struggles under noise, with significant overshoot (102.942%) and undershoot (-87.686%), highlighting its vulnerability to disturbances. LQT, while responsive, faces greater instability under noise, with overshoot and undershoot reaching 13.219% and -9.136%, respectively, revealing its lower robustness.</p>
      <p id="S5.p3">Therefore, LQR is more suitable for applications where stability and precision are critical in noiseless environments, while its performance degrades significantly under noisy conditions. Although LQT offers faster adaptation, it is less effective in noisy or disturbed environments and requires further refinement.</p>
      <p id="S5.p4">Despite these promising results, the study's simulations omit real-world factors like sensor noise, actuator delays, and varying load conditions. Future work should address these limitations to validate the control strategies' real-time performance and robustness.</p>
    </sec>
  </body>
  <back>
    <ack>
      <title>Acknowledgments</title>
      <p id="ack.p1">This work was supported without any funding.</p>
    </ack>
    <sec id="sec0100" sec-type="COI-statement">
      <title>Conflict of interest</title>
      <p>The authors declare no conflicts of interest.</p>
    </sec>
    <ref-list>
      <title>References</title>
      <ref id="ref001">
        <label>[1]</label>
        <mixed-citation> Firdaus, A. A. (2024, November). Comparing Linear Quadratic Regulator (LQR) with Proportional-Integral-Derivative (PID) Controllers for Increasing Stability in DC Motor Systems. In <italic>Conference of Electrical, Marine and Its Application</italic> (Vol. 3, No. 1, pp. 1-9). </mixed-citation>
      </ref>
      <ref id="ref002">
        <label>[2]</label>
        <mixed-citation> Syaifudin, M. M. (2024). Application of LQR and LQT Control Methods for Optimization of DC Motor Control Systems Based on MATLAB Simulink in the Energy Efficiency Improvement Program for Home Industry Players. <italic>Maritime in Community Service and Empowerment, 2</italic>(1), 1-11. </mixed-citation>
      </ref>
      <ref id="ref003">
        <label>[3]</label>
        <mixed-citation> Satrianata, L. J. (2024, November). Design and Simulation of DC Motor Control Based on LQR and LQT for Optimal Control System. In <italic>Conference of Electrical, Marine and Its Application</italic> (Vol. 3, No. 1, pp. 1-8). </mixed-citation>
      </ref>
      <ref id="ref004">
        <label>[4]</label>
        <mixed-citation> Wang, D., Ha, M., &amp; Zhao, M. (2022). The intelligent critic framework for advanced optimal control. <italic>Artificial Intelligence Review, 55</italic>(1), 1-22. [<uri>https://doi.org/10.1007/s10462-021-10118-9</uri>] </mixed-citation>
      </ref>
      <ref id="ref005">
        <label>[5]</label>
        <mixed-citation> Rashid, M. H. (2016). <italic>Power Electronics: Circuits, Devices, and Applications (4th ed.)</italic>. Pearson Education. </mixed-citation>
      </ref>
      <ref id="ref006">
        <label>[6]</label>
        <mixed-citation> Yassin, G. M. D. A. P. (2024). Comparison of the Use of Linear Quadratic Regulator and Linear Quadratic Tracker Optimal Control Techniques in DC Motor Systems with Noise Addition for the Development of Sustainable Technology Solutions in Community Empowerment. <italic>Maritime in Community Service and Empowerment, 2</italic>(1), 1-8. </mixed-citation>
      </ref>
      <ref id="ref007">
        <label>[7]</label>
        <mixed-citation> Aremu, M. B., Abdel-Nasser, M., Alyazidi, N. M., &amp; Elferik, S. (2024). Disturbance Observer-based Bio-inspired LQR Optimization for DC Motor Speed Control. <italic>IEEE Access, 12</italic>, 152418-152429. [<uri>https://doi.org/10.1109/ACCESS.2024.3478362</uri>] </mixed-citation>
      </ref>
      <ref id="ref008">
        <label>[8]</label>
        <mixed-citation> Cheema, M. A. M., Fletcher, J. E., Xiao, D., &amp; Rahman, M. F. (2016). A linear quadratic regulator-based optimal direct thrust force control of linear permanent-magnet synchronous motor. <italic>IEEE Transactions on Industrial Electronics, 63</italic>(5), 2722-2733. [<uri>https://doi.org/10.1109/TIE.2016.2519331</uri>] </mixed-citation>
      </ref>
      <ref id="ref009">
        <label>[9]</label>
        <mixed-citation> Wang, Z., Hu, C., Zhu, Y., He, S., Yang, K., &amp; Zhang, M. (2017). Neural network learning adaptive robust control of an industrial linear motor-driven stage with disturbance rejection ability. <italic>IEEE Transactions on Industrial Informatics, 13</italic>(5), 2172-2183. [<uri>https://doi.org/10.1109/TII.2017.2684820</uri>] </mixed-citation>
      </ref>
      <ref id="ref010">
        <label>[10]</label>
        <mixed-citation> De Doncker, R. W., Pulle, D. W., &amp; Veltman, A. (2020). <italic>Advanced electrical drives: analysis, modeling, control</italic>. Springer Nature. </mixed-citation>
      </ref>
      <ref id="ref011">
        <label>[11]</label>
        <mixed-citation> Mohanraj, D., Gopalakrishnan, J., Chokkalingam, B., &amp; Mihet-Popa, L. (2022). Critical aspects of electric motor drive controllers and mitigation of torque ripple. <italic>IEEE Access, 10</italic>, 73635-73674. [<uri>https://doi.org/10.1109/ACCESS.2022.3187515</uri>] </mixed-citation>
      </ref>
      <ref id="ref012">
        <label>[12]</label>
        <mixed-citation> Prasad, B., Kumar, R., &amp; Singh, M. (2024). Analysis of DC motor for process control application using neural network predictive controller. <italic>Engineering Research Express, 6</italic>(2), 025004. [<uri>https://doi.org/10.1088/2631-8695/ad3b66</uri>] </mixed-citation>
      </ref>
      <ref id="ref013">
        <label>[13]</label>
        <mixed-citation> Freeman, R. A., &amp; Kokotovic, P. V. (1996). Inverse optimality in robust stabilization. <italic>SIAM Journal on Control and Optimization, 34</italic>(4), 1365–1391. [<uri>https://doi.org/10.1137/S0363012993258732</uri>] </mixed-citation>
      </ref>
      <ref id="ref014">
        <label>[14]</label>
        <mixed-citation> Kızmaz, H. (2023). Comparative Analysis of Optimal Control Strategies: LQR, PID, and Sliding Mode Control for DC Motor Position Performance. <italic>Gazi University Journal of Science Part A: Engineering and Innovation, 10</italic>(4), 571-592. [<uri>https://doi.org/10.54287/gujsa.1393092</uri>] </mixed-citation>
      </ref>
      <ref id="ref015">
        <label>[15]</label>
        <mixed-citation> Ayasun, S., &amp; Karbeyaz, G. (2007). DC motor speed control methods using MATLAB/Simulink and their integration into undergraduate electric machinery courses. <italic>Computer applications in engineering education, 15</italic>(4), 347-354. [<uri>https://doi.org/10.1002/cae.20151</uri>] </mixed-citation>
      </ref>
      <ref id="ref016">
        <label>[16]</label>
        <mixed-citation> Wang, X., Quan, Z., Li, Y., &amp; Liu, Y. (2022). Event-triggered trajectory-tracking guidance for reusable launch vehicle based on neural adaptive dynamic programming. <italic>Neural Computing and Applications</italic>, 34(21), 18725-18740. [<uri>https://doi.org/10.1007/s00521-022-07468-y</uri>] </mixed-citation>
      </ref>
      <ref id="ref017">
        <label>[17]</label>
        <mixed-citation> As'ad, R. F., Yuniza, S. I., &amp; Nugraha, A. T. (2022). The Effect of 3 Phase Full Wave Uncontrolled Rectifier on 3 Phase AC Motor. <italic>International Journal of Advanced Electrical and Computer Engineering, 3</italic>(2). </mixed-citation>
      </ref>
      <ref id="ref018">
        <label>[18]</label>
        <mixed-citation> Anderson, B. D., &amp; Moore, J. B. (2007). <italic>Optimal control: linear quadratic methods</italic>. Courier Corporation. </mixed-citation>
      </ref>
      <ref id="ref019">
        <label>[19]</label>
        <mixed-citation> Henriksson, D., Cervin, A., &amp; Årzén, K. E. (2003). TrueTime: Real-time control system simulation with MATLAB/Simulink. In <italic>Proceedings of the Nordic MATLAB Conference</italic>. </mixed-citation>
      </ref>
      <ref id="ref020">
        <label>[20]</label>
        <mixed-citation> Astrom, K. J., &amp; Murray, R. M. (2008). <italic>Feedback Systems: An Introduction for Scientists and Engineers</italic>. Princeton University Press. </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>
