*Article* **Model-Based Control Design of an EHA Position Control Based on Multicriteria Optimization**

**Matthias Dörr \*, Felix Leitenberger, Kai Wolter, Sven Matthiesen and Thomas Gwosch**

**Abstract:** For the control of dynamic systems such as an Electro-Hydraulic Actuator (EHA), there is a need to optimize the control based on simulations, since a prototype or a physical system is usually not available during system design. In consequence, no system identification can be performed. Therefore, it is unclear how well a simulation model of an EHA can be used for multicriteria optimization of the position control due to the uncertain model quality. To evaluate the suitability for control optimization, the EHA is modeled and parameterized as a grey-box model using existing parameters independent of test bench experiments. A method for multi-objective optimization of a controller is used to optimize the position control of the EHA. Finally, the step responses are compared with the test bench. The evaluation of the step responses for different loads and control parameters shows similar behavior between the simulation model and the physical system on the test bench, although the essential phenomena could not be reproduced. This means that the model quality achieved by modeling is suitable as an indication for the optimization of the control by simulation without a physical system.

**Keywords:** mechatronic system modeling; electro-hydraulic actuator; control system; control optimization; mechanical system; test bench; position control

#### **1. Introduction**

For fast linear movements under high loads, highly integrated Electro-Hydraulic Actuators (EHA) are often used in aerospace and industrial applications as an alternative to conventional hydraulic actuators. An EHA is a self-contained actuator that operates by electrical power. EHAs consist of at least a hydraulic cylinder, a hydraulic line system, a hydraulic pump, a motor, and power electronics.

Implementing a closed-loop position control for an EHA is difficult due to nonlinearities [1] and uncertainties such as friction or the dynamics of the piston pump [2]. Therefore, a primary research focus is the development and validation of different control approaches. For this purpose, classical Proportional–Integral–Derivative (PID) control, control including fuzzy logic [3–5], observer-based controls [6–11], adaptive trajectory controls [12,13], sliding mode control [14–16], or hybrids of the named approaches [17] are used to solve this problem. For application, the parameterization method is also of great importance in addition to the investigation of control schemes.

There are different methods for adjusting controls: metaheuristics, analytical methods, and multi-objective optimization, some of which rely on machine learning. For metaheuristics and other manual experience-based "trial-and-error" approaches, as often performed in industry, a high effort is required, especially if multiple operating points, such as different loads, need to be tested. Therefore, these methods are primarily used when a physical EHA, but not a suitable model of an EHA, is available for testing.

The mathematical modeling in terms of poles and zeros for the use of analytical methods is difficult for the EHA, since nonlinearities, such as friction and uncertainties in the parameterization, can lead to significant deviations in the overall result. A solution

**Citation:** Dörr, M.; Leitenberger, F.; Wolter, K.; Matthiesen, S.; Gwosch, T. Model-Based Control Design of an EHA Position Control Based on Multicriteria Optimization. *Machines* **2022**, *10*, 1190. https://doi.org/ 10.3390/machines10121190

Academic Editor: Christoph M. Hackl

Received: 27 October 2022 Accepted: 6 December 2022 Published: 8 December 2022

**Publisher's Note:** MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

**Copyright:** © 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https:// creativecommons.org/licenses/by/ 4.0/).

Karlsruhe Institute of Technology (KIT), 76131 Karlsruhe, Germany

**<sup>\*</sup>** Correspondence: matthias.doerr@kit.edu; Tel.: +49-721-608-47041

to overcome this problem is the system identification of a physical EHA on a test bench. Izzuddin et al. [18] obtained a linear transfer function in discrete form from multi-sine, as well as continuous step input via Auto-Regressive Exogenous (ARX) system identification, and compared control algorithms on the obtained simulation and tests on the test bench. Similar approaches were used to obtain an ARX model from experimental data and to validate the same controller in simulation and on the test bench, which was used to gather the input for system identification [19–21]. Since a physical system must be available to perform the system identification, this approach is unsuitable for early design optimization in product development, where mature prototypes are unavailable.

In addition to the previously mentioned approaches, a frequently used approach is a model-based optimization of the control system. For example, Wonohadidjojo et al. [22] developed an analytical model of the electrohydraulic servo system for PID optimization with Particle Swarm Optimization (PSO), modeling friction and internal leakage. Shern et al. [23] used a PID optimization with improved PSO, which chose between optimization of settling time or overshoot for the analytical model. The PSO was improved by combining two fitness functions for overshoot and settling time with linear weight summation [24]. Other optimization algorithms used for PID optimization for an EHA were, for example Genetic Algorithms [25–27], the Nelder–Mead approach [28], a hybrid algorithm of PSO, and gravitational search algorithms [29] or beetle antennae search algorithms [30].

Performance validation is either based on simulations or simulations and bench testing separately, similar to the development of other control methods. Comparison of simulation results with test bench results is not conducted, except in cases where the simulation model is parameterized with test bench results, by system identification, usually with the ARX model. In early product development, there is usually no physical EHA that can be tested on a test bench. Thus, no data are available for system identification. The data available in the early stages of product development are generally limited to individual components, but not to the system behavior of the EHA.

For an early optimization of the controller in the early stages of product development, it is necessary to optimize the control with a simulation model that is independent of the measurement data from a physical EHA which was tested on a test bench beforehand. The problem is that the validity of simulation models of an EHA parameterized only by data of individual components is unclear, and thus control optimization cannot be performed.

Therefore, this paper investigates how to model an EHA with a grey-box model. This grey-box model is used to optimize the controller parameters with a PSO. Finally, the optimized controller parameters are set on an EHA on a test bench, allowing the comparison of the dynamic behavior of the EHA on the test bench with the dynamic behavior of the simulation model. The main contributions of this article are summarized as follows:


#### **2. Materials and Methods**

#### *2.1. Electro-Hydraulic Actuator and Simulation Model*

In this study, an EHA (BAS.50/32.U04.201.200 MI.BA100.G2.P42, AHP Merkle GmbH, Gottenheim, Germany) was investigated. The EHA consists of a double-acting hydraulic cylinder, a supply line system, an internal gear pump, and a permanent magnet-excited synchronous machine. The change in volume flow is continuous and unaffected by valve influences. Therefore, this EHA is a pump-controlled hydraulic system. Compared to valvecontrolled systems, they are more efficient because there is no pressure drop (Manring

and Fales 2019). An external inverter is used as power electronics to control the EHA (MOVIAXIS MXA81A-016-503-00/XFE24A, SEW-Eurodrive GmbH, Bruchsal, Germany).

In general, the method for multi-objective optimization of the PID position control is independent of the modeling software and could have been performed with modeling software for multi-domain systems such as MATLAB Simscape or Simcenter Amesim. The simulation model in this paper was created with MATLAB 2020a using the extension Simulink (version 10.1). The fifth-order Dormand–Prince equation was used as a fixed step solver. At first, subsystems were created based on their function. Those can be described with the process elements of transformer, converter, source, and sink. Figure 1 shows all subsystems of the simulation model on the top level of the description. Power quantities are exchanged between these subsystems. Examples of power quantities are the current and the voltage U for the electrical power or the torque M and the speed n for the mechanical rotary power. The central element is the control unit (CU), which adjusts the motor's rotational velocity based on the desired position.

**Figure 1.** The system structure of the EHA is based on [31]. The central element is the control unit (CU), which is optimized within the scope of this paper.

In the following, the subsystems control unit (CU), power electronics (PE), electric motor (EM), hydraulic pump (HP), hydraulic system (HS), and hydraulic cylinder (HC) are briefly described. It is specified which physical effects are taken into account or are neglected. All relevant parameters are listed in Appendix A. The subsystem load (L) is described in Section 2.3. *Test bench for validation of the simulation model*.

#### 2.1.1. Control Unit (CU)

The control unit contains the parts concerning the position control of the hydraulic cylinder. In this study, the type of control is a PID feedback control. The controller is implemented as a discrete parallel PID controller using the PID blockset of MATLAB Simulink library. The controller uses a sampling frequency of 2 kHz. The position signal is influenced by external effects, which are indicated by noise. This noise can be characterized by a system identification of the used position sensor in the EHA. Three relevant frequencies of white noise with different amplitudes can be identified, which are described in Table 1. These white noises are added to the position signal and filtered with a kHz low-pass filter.


**Table 1.** The white noise of the position sensor.

#### 2.1.2. Power Electronics (PE)

The power electronics consist of a torque-based, field-oriented controller for the internal permanent magnet synchronous motor (PMSM) and an outer-loop speed controller. Therefore, the "Interior PM Controller" model from the powertrain blockset of the MATLAB Simulink library was used [32–36]. The overall inverter efficiency is constant. The current controller uses a sampling frequency of 16 kHz. The "Interior PM Controller" model is able to calculate the optimum current regulator gains based on the parameters of the electric motor. The chosen parameters are listed in Table A1 in the Appendix A.

An outer-loop speed controller was implemented, which is a PI feedback control based on the control unit of the inverter of SEW [37]. The acceleration pre-control gain is set to zero. The parameters are taken from the configuration on the test bench.

#### 2.1.3. Electric Motor (EM)

The electric motor is modeled as a three-phase Interior Permanent Magnet Synchronous Motor (PMSM) with sinusoidal back electromotive force. For this purpose, the "Interior PMSM" model from the Powertrain blockset of the MATLAB Simulink library is used [38,39]. Torque is used as the mechanical input. Physical inertia, viscous damping, and static friction are considered in the model.

#### 2.1.4. Hydraulic Pump (HP)

The hydraulic pump is an internal gear pump modeled as a gray box. The assignment between mechanical and hydraulic energy is performed with a black box model via a data sheet provided by the manufacturer. The speed and the pressure difference are used to determine the torque to be applied by the electric motor. The correlations between the parameters are integrated with a lookup table using the Akima spline as an interpolation and extrapolation method.

Due to the experimental determination of the data, this includes leakage and friction, but only for stationary conditions. Thus, the losses considered are independent of acceleration and pressure changes. The influence of rotational inertia is considered in the electric motor subsystem.

The volumetric flow rate is calculated using the volumetric displacement per rotation unit and the rotational speed. Compressibility is neglected so that incoming and outgoing volumetric flows are equal in magnitude. Since we only consider step responses in our study, we have also neglected the thermal aspect of the fluid system, which is otherwise very relevant. An example of the consideration of temperature and power dissipation is shown in [40]. Therefore, all fluid parameters are time-invariant and independent of pressure or temperature.

#### 2.1.5. Hydraulic System (HS)

The hydraulic system describes all hydraulic parts except the hydraulic pump and cylinder. Therefore, the supply pipes between the hydraulic pump, cylinder, and reservoir are modeled. The hydraulic diagram of the hydraulic system is depicted in Figure 2.

**Figure 2.** Hydraulic diagram of the EHA.

The behavior of the supply pipes is characterized by the pressure loss Δ*p* due to local hydraulic resistances in the pipelines and their elbows. The pressure loss Δ*p* is calculated with the Darcy–Weisbach equation (Equation (1)) and is dependent on the pressure loss coefficient *ζ*, which is determined differently for pipe friction and the pipe elbow (Equation (2)). All other parameters such as the density *ρoil*, viscosity *μoil*, etc. are considered to be time-invariant. The compressibility of the fluid is neglected. The pressure losses are therefore dependent on the volume flow . *V*.

$$
\Delta p = \frac{\zeta \ast \rho\_{oil}}{2} \ast \left(\frac{\dot{V}}{A}\right)^2 \tag{1}
$$

$$\mathcal{Z} = \mathcal{Z}\_{pipe} + \mathcal{Z}\_{elbon} \tag{2}$$

In the case of pipe friction, the pressure loss coefficient *ζ pipe* (Equation (3)) is determined via the Darcy friction factor *λ* (Equation (4)), which depends on the Reynolds number *Re* (Equation (5)). For transient flow, the Hagen–Poiseuille equation is used. For turbulent flow in smooth conduits, the Blasius correlation is utilized. A Reynolds number greater than 100,000 is not expected.

$$
\zeta\_{pipe} = \lambda \ast \frac{L}{R} \tag{3}
$$

$$\lambda = \begin{cases} \frac{64}{Re'} , \text{ } Re < 2320 \, (transient) \\ 0.3164 \, \\ \frac{0.3164}{Re^{0.25}} , \text{ } 100,000 > \text{ } Re \ge 2320 \, (turbulent) \end{cases} \tag{4}$$

$$Re = \frac{2 \ast r \ast \left| \dot{V} \right|}{A \ast \mu\_{oil}} \tag{5}$$

The pressure loss in the elbow *ζelbow* is characterized by the tabulated pressure loss coefficient provided in the Crane Technical Paper [41]. The hydraulic resistances can thus be transferred into characteristic diagrams and calculated separately for both supply pipes. The pipes are considered stiff and the compressibility of the hydraulic fluid is neglected. Therefore, the capacity and inductivity of the pipes are not considered. There is no leakage. The inertia of the hydraulic fluid is considered.

The reservoir must maintain the system pressure. Therefore, it contains a valve that opens when the pressure falls below the expected system pressure. Hydraulic fluid is flowing into the system and is therefore increasing the applied pressure.

#### 2.1.6. Hydraulic Cylinder (HC)

The hydraulic cylinder is a double-rod linear actuator. The modeling is based on the description of Glöckler [42] and uses a force equilibrium. In this subsystem, due to the high pressures and large volumes, the compressibility of the hydraulic fluid is taken into account. The stiffness of the oil column in the cylinder depends on the bulk modulus of the hydraulic oil. The elasticity of the cylinder barrel is neglected.

The volumetric flow of the hydraulic fluid into the actuator is controlled by the output flow of the hydraulic system. The internal leakage is not considered, because it is equal to zero for new systems. The friction force *FFr* is modeled as Coulomb friction *FC* for static states and viscous friction for dynamic states. The Coulomb friction is constant and the viscous friction is linear dependent on the velocity of the hydraulic cylinder, see Equation (6). All fluid parameters are time-invariant. They are therefore assumed as temperature-independent.

$$F\_{Fr} = \text{sgn}(\mathbf{x}) \* (F\_{\mathbb{C}} + f\_{\text{viscous}} \* |\mathbf{x}|) \tag{6}$$

All relevant parameters are listed in Appendix A.

#### *2.2. Method for Multi-Objective Optimization of PID Control*

A method for the optimization of a PID control proposed in [43] is used to optimize the PID parameters of the presented EHA using the simulation model. The method is based on a multi-step incremental optimization of the multi-dimensional problem. First, the method is briefly presented. Second, the parameters selected in this study are presented.

For this method, the following five criteria are used: Integrated Time Weighted Square Error (ITSE) criterion *QITSE*, the *Qtr*, the settling time *Qts*, the overshoot *QhO* and the noise *QNoise*. The mathematical equation of the target functions is shown in Equations (7)–(11). For the EHA, the variables error *e*, actual position *y*, step height of the input variable *Us*, and time of overshoot thO , settled final position *yfinal* and the speed of the motor as the output of the controller *n* are used.

$$Q\_{ITSE} = \int\_0^\infty t \ast e^2(t) \, dt \tag{7}$$

$$Q\_{t\_r} = t\_1(y = 0.9 \ast \mathcal{U}\_\ $) - t\_0(y = 0.1 \ast \mathcal{U}\_\$ ) \tag{8}$$

$$Q\_{t\_s} = \text{t}\* \left( \left| \frac{\mathbf{y}(\mathbf{t}) - \mathcal{U}\_s}{\mathcal{U}\_s} \right| < 0.1 \right) - \mathfrak{t}\_{\mathcal{U}\_0} \tag{9}$$

$$Q\_{h\_O} = \frac{\max\left(\mathbf{y}(\mathbf{t}) - y\_{final}\right)}{y\_{final}}\tag{10}$$

$$Q\_{\text{Nois}\varepsilon} = \sum |\Delta n(t)|\tag{11}$$

The PID values are optimized using the five criteria presented with a cost function. The main criterion *f*<sup>1</sup> shift a percentage of the exponent with a certain weight *g*. The weight *g* is selected by the user. Furthermore, the exponential function of the main criterion forms a valley around the desired absolute value. The partial costs of the secondary criteria *f*2, on the other hand, have continuously decreasing costs towards lower values. This forces the optimization algorithm to search for a solution on the multidimensional Pareto front, which lies around the desired value of the shifted main criterion.

$$f\_1(\mathbf{x}, \mathbf{x}\_{ref}, \mathbf{a}\_\prime \mathbf{g}) = \mathbf{e}^{\mathbf{a} \ast |\frac{\mathbf{x} - \mathbf{g} \ast \mathbf{x}\_{ref}}{\mathbf{x}\_{ref}}|} \tag{12}$$

$$f\_2(x, x\_{ref}, u) = e^{a \ast \frac{x - x\_{ref}}{x\_{ref}}} \tag{13}$$

Furthermore, criterion *f*<sup>3</sup> is introduced that represents stability criteria and nonlinear boundary conditions. This results in the overall cost function, which is represented by the following equation.

$$\begin{aligned} F(\mathbf{x}\_1, \dots, \mathbf{x}\_n) &= \prod\_{i=1}^n f\_1 \left( \mathbf{x}\_{i\cdot} \mathbf{x}\_{i, \text{ref}\_f}, \mathbf{a}\_i \right) \ast f\_2 \left( \mathbf{x}\_{k\cdot} \mathbf{x}\_{k, \text{ref}\_f}, \mathbf{a}\_\ast \mathbf{g} \right) \ast f\_3(\mathbf{s}), \\ &\qquad i \in \mathcal{A}, \ k \in \mathcal{B} \\ \mathbf{A} &= \{1, \dots, n\}, \ \mathbf{B} = \{1, \dots, n\}, \ \mathbf{A} \cap \mathbf{B} \end{aligned} \tag{14}$$

The method uses an iterative and relative approach for optimization. Based on the created model, the first step is to determine the possible search space for the PID parameters. In this study, the method of Ziegler and Nichols is used to determine a first—mostly nonmatching—parameter set of PID values. Subsequently, an initial optimization is performed with the PSO algorithm. The purpose of this step is to obtain a rough estimate which reflects the system-dependent behavior. The optimization uses only the ITSE criterion *QITSE*. With the obtained PID values the first set of criteria can be determined. These initial values are used to calculate the above mentioned normalization. Based on the nature of a Pareto-optimal problem, the secondary criteria will be degraded during this optimization. If the optimization result does not correspond to the desired goal, another cycle can be started. Here, the main criterion and an associated improvement with the weight *g* are defined. The result of the previous optimization is used as a reference.

For this study, the objective of controlling the EHA is defined as follows: Reaching the set point as quickly as possible without considerable overshoot and with a smooth controller output. Therefore, three optimization loops are performed including the first optimization with the ITSE criterion. To achieve the control objective, the second optimization aims to minimize the control output by 20% (*g* = 0.8), and the third aims to reduce the overshoot by 20% (*g* = 0.8). The limits for PSO in the optimization loops refer to the previous parameters of Ziegler and Nichols, and the previous loop, respectively. The limits are 10% and 1000% for the proportional gain as well as 0.1% and 100,000% for the integral part and derivative part. Table 2 shows all setting values for the optimization in this study.

**Table 2.** Selected parameters for the application of the method for multi-objective optimization of PID control in this study.


#### *2.3. Test Bench for Validation of the Simulation Model*

The focus of this study is on the position control of the EHA. To validate the simulation model, a test bench was used to measure and evaluate step responses. A step height of 5 mm is selected for this purpose, as 5% of the maximum stroke is a suitable test case [44].

The test bench is controlled by the measurement and control system Adwin-Pro2 (Jäger Computergesteuerte Meßtechnik GmbH, Lorsch, Germany). The EHA is controlled by an external inverter (MOVIAXIS MXA81A-016-503-00/XFE24A, SEW-Eurodrive GmbH, Bruchsal, Germany), which is coupled to the measurement and control system via an Ether-CAT real-time network with a sampling frequency of 2 kHz. As described in the modeling, the control system of the EHA is a cascaded control system. The outer control loop of the EHA is closed with the help of a magnetostrictive linear position sensor (BTL0LP3, Baluff GmbH, Neuhausen auf den Fildern, Germany) via Adwin-Pro2. The position control is performed with a sampling frequency of 2 kHz. The other internal control loops (speed and

current control) are implemented directly on the inverter. The speed control is performed with a sampling frequency of 4 kHz and the current control runs with a sampling frequency of 16 kHz. The control system, the systems involved, and the measurement equipment used are shown in Figure 3.

**Figure 3.** Representation of the control system, the systems involved, and the sensors used.

Two modules are used as loads. In the first load case, an inertial load realized with weights is applied to the EHA. A mass of 11.83 kg was chosen as the weight. The mass is shown in Figure 4a. In aerospace applications, the load increases due to the wind when the actuator extends the wing flap. Therefore, the actuator is moved against a compression spring for the second load case. A spring stiffness of 241.381 N/mm was selected for validation. The compression spring is shown in Figure 4b.

**Figure 4.** Modules for applying different loads to the EHA: (**a**) Inertia of 11.83 kg Modell and (**b**) Compression spring with stiffness of 241.381 N/mm.

#### **3. Results**

In this section, the optimization results of the PID control based on the simulation model are presented. The simulation model is validated by comparing the various step responses of the simulation model with the step responses obtained on the test bench.

#### *3.1. Results of the Method for Multi-Objective Optimization of PID Control for the Simulation Model*

The results in this section were obtained using the simulation model of the EHA. According to the optimization method, initial parameters were first extracted for Ziegler and Nichols. As shown in Table 2, the search space for the PSO is determined based on these initial parameters. For the inertial load, the results of Ziegler and Nichols, the system characterization based on the ITSE criteria, and the optimization loops based on overshoot and rise time are shown in Table 3. The corresponding step responses are shown in Figure 5.

**Table 3.** PID parameters for Ziegler and Nichols, the system characterization, and the two optimization loops for the inertia of 11.8 kg.


**Figure 5.** Step responses for the EHA simulation model for the PID parameters presented in Table 3 for the inertia of 11.8 kg.

For the spring load, the results of Ziegler and Nichols and the three optimization loops are shown in Table 4. The corresponding step responses are shown in Figure 6.

**Table 4.** PID parameters for Ziegler and Nichols, and the three optimization loops for the spring load of a spring stiffness of 241.381 N/mm.


**Figure 6.** Step responses for the EHA simulation model for the PID parameters presented in Table 4 and the spring load of a spring stiffness of 241.381 N/mm.

#### *3.2. Validation of the Simulation Model for the Electro-Hydraulic Actuator*

To validate the simulation model, a comparison is made between the simulated step responses and those measured on the test bench. The step responses for the inertial load using the PID parameter set of Table 3 are shown in Figure 7. The step responses for the spring load for the PID parameters of Table 4 are shown in Figure 8.

The validation results from Figure 7 are described in the following. For Ziegler and Nichols, the step response shows approximately similar behavior with a significant deviation in overshoot and a deviation in rise time. For the system characterization, there are also deviations: While the slope is similar at the start, a sudden change of the gradient can be observed on the test bench at the amplitude of 4 mm. Furthermore, the overshoot is significantly lower for the test bench. For the first optimization loop, a similar behavior except for a smaller overshoot is obtained. For the second optimization loop, a similar behavior with only a tiny change of the gradient at 4 mm is observed.

The validation results from Figure 8 are described in the following. The validation results for the spring load also show significant differences for all four parameter sets. Partially, the results are similar to those for the inertial load in Figure 7. Therefore, the differences in the inertial load are also described.

For Ziegler and Nichols, the step response shows approximately similar behavior to the inertial load. For system characterization, the step response shows approximately similar behavior to the inertial load, except that the settling time of the test bench results is much slower. For the first optimization loop, the results differ significantly: the overshoot is much more significant in the simulation. For the first optimization loop, as shown in Section 3.1, the simulation results show a permanent deviation due to the small integral part. The permanent deviation is not observed on the results of the test bench. For the second optimization loop, in contrast to the inertial load, different behavior is shown. Although the overshoot is the same, it occurs later, and the settling time is significantly slower for the test bench results.

**Figure 7.** Comparison of the simulated and on the test bench measured step response of the EHA with the following PID parameters obtained with the method for multi-objective optimization of PID control for the inertial load: (**a**) Ziegler Nichols characterization [*KP* = 13,800; *KI* = 345; *KI* = 0.0007246], (**b**) system characterization [*KP* = 7827.556886; *KI* = 806.115288; *KI* = 0.724638], (**c**) first optimization loop [*KP* = 9441.263070; *KI* = 0.806115; *KI* = 25.386430], and (**d**) second optimization loop [*KP* = 6167.990306; *KI* = 495.702891; *KI* = 0.025386].

**Figure 8.** Comparison of the simulated and on the test bench measured step response of the EHA with the following PID parameters obtained with the method for multi-objective optimization of PID control for the spring load: (**a**) Ziegler Nichols characterization [*KP* = 13,800; *KI* = 345; *KD* = 0.0007246], (**b**) system characterization [*KP* = 7663.036665; *KI* = 19,810.42218; *KD* = 0.677059], (**c**) first optimization loop [*KP* = 8844.394595; *KI* = 19.810422; *KD* = 24.370225], and (**d**) second optimization loop [*KP* = 6441.340341; *KI* = 16,809.27533; *KD* = 0.015312].

#### **4. Discussion**

In this section, the results of the method for multi-objective optimization of PID control on the simulation model are discussed. Then, the validation of the simulation model using a test bench is discussed as the main result. Finally, limitations and further research directions are elaborated.

#### *4.1. Discussion of the Results of the Method for Multi-Objective Optimization of PID Control*

The results show the expected results for the inertial load in Figure 7 for the four parameter sets. While there is a strong overshoot in Ziegler and Nichols, as expected, the three optimizations show a local Pareto-optimum concerning the primary optimization criterion. From the PID values in Table 3, it can be seen that the proportional gain differs significantly. For the optimization of rise time, a high derivative part and a low integral part are found. For the optimization of ITSE and overshoot, a high integral part and a low derivative part are found.

The results for spring loading in Figure 8 also show the expected results in all cases. The results are similar to those for the inertia. For Ziegler and Nichols, almost similar behavior was obtained with the same PID values, but a permanent deviation occurs due to the constant force of the compressed spring. The PID values of Tables 3 and 4 differ mainly in the significantly higher integral part. As expected, the derivative part is most significant for the rise time with the smallest integral part.

The results show that the optimization method, which was designed and validated on rotating systems, also works for translational systems such as the EHA. For the validation of the simulation, the method must reach different local optima so that the validation can be performed with different PID values. Thus, the method has served its purpose and the local optima are suitable for validating the simulation. The use of both loads has proven to be suitable since, in this way, different integral parts and also different operating points can be validated.

The selection of the best PID values depends on the requirements of the overall system, for example, how fast the system should respond and how significant the overshoot should be. The method is thus a suitable way to optimize the PID control based on simple predefined objectives. However, a valid simulation model is a prerequisite. Therefore, the simulation model was validated in Section 3.2 by comparing these step responses with the step responses obtained on the test bench.

#### *4.2. Validation of the Simulation Model with the Test Bench*

The validation results for the four parameter sets of the inertial load show partially significant differences between the step responses obtained with the simulation model and on the test bench.

The deviation of the rise time is due to different behavior between the results of the simulation and test bench. While the increase in the position of the paths is similar at the beginning, a sudden change in the slope is observed on the test rig at an amplitude of 4 mm in most cases. Examples are the system characterization, first and second optimization loop for inertial load, where the change of the gradient is present in different magnitudes. For the second optimization loop, a similar behavior with only a tiny change of the gradient at 4 mm is observed. This can be explained by an oscillation between the outer loop of the position controller and the inner loop of the speed controller, which is shown in Figure 3. This oscillation is not adequately represented in the simulation model for the shown operating points shown. A second explanation is the influence of a limitation in the inverter, which was not represented in the simulation.

The deviation in overshoot is due to the damping of the system, which is difficult to simulate in absolute values. It seems that the hardware system has a higher damping coefficient than in the simulation. A second cause is probably the previously discussed change in the gradient.

Another phenomenon is the different response to a high integral part of the controller in the spring load. While the simulation quickly reaches the setpoint at a high integral part, a low integral part results in a permanent offset of the amplitude. The results of the test bench reach the setpoint very slowly at a high integral part of the controller. With a low integral part, the settling time is very slow. This could be explained by the control implemented in the inverter. It must be noted that modeling the control implemented in the inverter is a highly complex task, since not all information, such as the stored motor model, are available. Furthermore, it is unclear how the internal filters of the inverter are designed in detail.

Overall, by comparing the step responses of the simulation model with the test bench results for the inertia or spring load, the key phenomenon is the change in slope at an amplitude of 4 mm, which can be explained by the interaction of the cascaded control on the test rig, across almost all results.

The deviation between the results obtained with the simulation model and with the test bench shows that the simulation model of an EHA parameterized only on data of individual components is not completely valid for control optimization. Nevertheless, it indicates the behavior of the control system that can already be used in product development if no physical EHA is available. Thus, the modeling approach and the modeling itself provide added value to the application. If a physical EHA is available, performing a system identification, e.g., via Regressive Exogenous (ARX), as conducted by [19–21], can be performed to obtain a better fit between the results of the simulation model and the test bench.

#### *4.3. Limitations and Further Research Directions*

The results show a strong dependence of the internal control loop on the speed of the inverter. Therefore, modeling and validation of the internal control loop should be a basic prerequisite for the successful execution of a grey-box or white-box simulation. However, if the internal control of the simulation model is not matched to the test bench at a high level of detail, the probability of success is low. In this case, interactions in the cascaded control, as in our study, can influence the overall result. One possibility would be to use the method for optimizing the PID control to parameterize the speed control loop in the simulation model.

The quality of the grey-box simulations depends mainly on the amount and quality of the available data and information. In our case, we had many parameters available, as can be seen from Appendix A. The problem was mainly the lack of information about the cascaded control. Thus, the success of a similar approach depends on the available information.

In the grey-box simulation, many phenomena, such as sensor noise, were implemented. However, there are other phenomena, such as the capacity and inductivity of the pipes, that could have been improved with the appropriate information. To fully evaluate the system reliability of the EHA with the optimized position control used here, the thermal domain would also need to be considered, as temperature also has an impact on the dynamics of the system.

In our study, we investigated an EHA with two loads at a defined step response. Only some of the operating points that the EHA can perform were investigated. More operating points, and also other EHA, should be considered for transferring the results. This does not affect the core statement of this work, which is that the grey-box simulation is only suitable as an indication for control optimization. This can be assumed because the difficulties are present in all EHAs, especially due to the cascaded control. Instead, the amount and quality of information, as mentioned above, take an overriding role.

Given the already achieved convergence of results when using a grey-box model, there is still great potential and further research directions. Future work should investigate if it is possible to obtain better results with more information. To draw insights from the comparison, the representation of the parameters and the mapped phenomena or physical effects, as in this study, are necessary.

Another research direction is to use the simulation model of the EHA as a digital twin by connecting it directly to the EHA on the test bench. By continuously comparing the digital and physical EHA, the deviations can be identified and used to improve the simulation by parameterizing physical parameters, such as friction, that are difficult by generic white-box models. A high model quality can be achieved without relying on a black-box model, which can only be transferred to similar EHAs to a limited extent.

To fully evaluate the system reliability of the EHA with the position control optimized here, the thermal domain should also be considered as well, as temperature also has an impact on the dynamics of the system. For this purpose, thermal coupling systems must be used so that all relevant domains are also taken into account in the sense of the digital twin, to obtain a high degree of reliability concerning the findings obtained.

**Author Contributions:** Conceptualization, M.D.; methodology, F.L., K.W. and M.D.; software, F.L., K.W. and M.D.; validation, M.D.; formal analysis, F.L. and K.W.; investigation, M.D. and F.L.; data curation, M.D.; writing—original draft preparation, M.D., F.L. and K.W.; writing—review and editing, M.D., F.L., K.W., T.G. and S.M.; visualization, M.D. and F.L.; supervision, T.G. and S.M.; project administration, M.D.; funding acquisition, S.M. and T.G. All authors have read and agreed to the published version of the manuscript.

**Funding:** This research was funded by the Federal Ministry for Economic Affairs and Climate Action under the funding number 20Y1910E. The authors of this publication are responsible for its contents. The authors gratefully acknowledge the support.

**Data Availability Statement:** The data that support the findings of this study are available from the corresponding author upon reasonable request.

**Conflicts of Interest:** The authors declare no conflict of interest.

#### **Abbreviations**

The following abbreviations are used in this manuscript:



#### **Appendix A**

**Table A1.** Relevant parameters of the simulation model.




#### **References**

