Abstract
This work considers optimal mechanical–electrical power conversion across rigid linkages equipped with current-controlled actuators. A novel cost function derived from a generalization of the Second Law of Thermodynamics is adopted from our previous work, where cycle-averaged energies are interpreted as generalized temperatures. A cost function based on generalized entropy generation is used to formulate an optimal control problem yielding a decoupled velocity feedback controller. Suboptimal gains are found, which are independent of both the excitation characteristics and the mechanical subsystem dynamics, and yield closed-loop stability. The effectiveness and simplicity of the resulting controller is demonstrated by a Monte Carlo simulation study, where random episodes of unknown, periodic forcing are applied under the proposed controller and compared with a maximum-efficiency controller. Results show that the proposed controller offers a higher statistical expectation for the average harvested power.
Keywords: energy harvesting, entropy-based cost functions, optimal control, mechanical–electrical power conversion
1. Introduction
This paper introduces a novel systematic principle for the design and control of electromechanical power conversion systems. This includes energy harvesters featuring linkages with multiple degrees of freedom (DoFs), resembling rigid robots. Energy harvesting devices, for instance, wave energy converters (WECs), operate by transforming mechanical excitation from wave motion to electrical power, which is subsequently stored. A particular feature of this application is the fact that the external forces from which mechanical power is converted are not known in advance, and further, their spectral characteristics may be poorly understood and shifting with time.
Efficiency is a primary consideration for the design and operation of many engineering systems but may not be an adequate target in all applications. Efficiency is measured by the ratio of a product to the resource invested in obtaining it, which is often monetary. In applications such as energy harvesting from a free, inexhaustible, and renewable resource, efficiency may not be the primary consideration but rather the absolute amount of harvested power is of importance. As this paper shows, a suitable multidomain extension of the Second Law of Thermodynamics yields a cost function that may be conveniently used in the formulation of optimal control problems (OCPs) capturing the above considerations.
Energy harvesting has been extensively investigated, with a wide range of devices employing piezoelectric, triboelectric, and metamaterial technologies [1,2]. There are numerous concepts for harvesting wave energy, which vary widely in their operating principles. Among the many device types, the point-absorber wave energy converter (PAWEC) is considered one of the simplest, most versatile, and most promising approaches, and it has been the subject of extensive investigation worldwide [3].
Pendulum-based mechanisms are widely incorporated into ocean WEC devices. While single-pendulum designs are commonly found, they are designed to be effective over a narrow frequency range, matching an assumed spectrum of wave motion. A double pendulum, on the other hand, offers more opportunities for power harvesting due to the extended configuration space and the use of two generators. These devices have shown better performance under various wave frequencies [4,5]. Our work aims to study optimal electromechanical power conversion involving serial linkages of arbitrary configuration and degrees of freedom (DoFs) with electrical actuation. This objective is achieved by introducing a novel cost function based on the laws of thermodynamics.
The First Law of Thermodynamics (FLT), also referred to as the energy conservation principle, governs energy conversion across all physical domains and is the basis for defining efficiency. The Second Law of Thermodynamics (SLT) introduces further constraints on energy conversion in processes that satisfy the FLT. The methodologies of Entropy Generation Minimization (EGM) pioneered by Bejan [6] involve optimality criteria related to the SLT rather than common efficiency. The origin of the second law traces back to the work of Sadi Carnot, who proposed a thermodynamic cycle consisting of two isothermal and two adiabatic processes. He showed that this reversible cycle represents the maximum possible efficiency of any heat engine. Later, these ideas were formalized by introducing entropy and expressing the second law through Clausius’s inequality:
| (1) |
where Q is the heat transfer and T is the temperature. Entropy became a central concept in thermodynamics, representing system disorder and efficiency loss. Gouy and Stodola later introduced the concepts of entropy generation and lost work, linking irreversibility and ambient temperature to thermodynamic efficiency [7]. This led to the Gouy–Stodola theorem:
| (2) |
where is the ambient temperature and is the entropy generation rate due to irreversibilities. Extensive research has since focused on improving thermodynamic performance by minimizing lost work or entropy generation. For constant environmental temperature, these two objectives are equivalent [8,9].
Entropy production control can be pursued with different objectives. The EGM is typically desirable in systems involving work exchange, such as heat engines or refrigerators. However, EGM is not the only application of the entropy concept. The maximum entropy production principle (MEPP) has also been employed in specific classes of problems [10,11]. In [12], MEPP is incorporated into a reinforcement learning-based adaptive controller to enhance exploration of the learning space and improve the overall performance of an adaptive PID controller. Similarly, Martino [13] used MEPP to transform sparse and coarse biological data into probabilistic models by selecting the least biased distribution. These are examples of applications of the microscopic definition of entropy, whereas the present study adopts the macroscopic view of entropy as defined in classical thermodynamics.
Unlike the FLT, SLT principles and the limits it places on power conversion performance are not immediately or easily applicable outside classical thermodynamics. Readers are referred to the work of Haddad [14] on the formalization of thermodynamics under a dynamical systems perspective. The extension of thermodynamic principles—particularly the SLT—to arbitrary physical domains has attracted significant attention in recent years. Readers are referred to the work of van der Schaft [15] connecting the SLT to the system property of cyclo-dissipativity and evidencing SLT-like restrictions to power conversion in systems outside the thermodynamic domain [16].
Our previous works [17,18,19,20] introduced entropy-based formulations for power conversion optimization in multidomain systems, extending the applicability of SLT principles to interconnected systems that satisfy a version of the Clausius postulate restricted to periodic regimes. OCPs were formulated where entropy generation or lost work serve as a performance metric.
In this paper, we show that OCP based on entropy generation may be meaningfully formulated and solved for a general class of electromechanical systems. For these nonlinear multi-DoF systems, we recover essentially the same solution features as for the linear single-DoF electromechanical model of [17]: (i) the OCP solution requires velocity feedback, (ii) EGM yields a higher statistical expectation for the average harvested power in comparison with a controller that maximizes the FLT efficiency; and (iii) the unforced closed-loop system is semi-stable (velocity converges to zero while position converges to a point in the equilibrium manifold of the linkage, which depends on the initial conditions). Further, with bounded external forces, the closed-loop system exhibits bounded trajectories.
2. Background on the Cost Function
The main points behind the choice and construction of the cost function are summarized next. Readers are referred to [17] for full details, and to [18,19,20] for the application of these concepts to optimization and control of linear electromechanical systems and energy-aware robot trajectory planning.
Consider the interconnection of energy-storing dynamic systems as in Figure 1, where is the energy stored in subsystem i, is the power received by i from j, is the external power exchanged by i (with sources capable of delivering or accepting power), is the power dissipated by i to the exterior, and is the rate of mechanical work exchanged between i and the exterior.
Figure 1.
Interconnection of energy-storing dynamic systems [17].
Each subsystem is assumed to satisfy a power balance equation among these quantities per the FLT at all times: . In the classical thermodynamics setting, represents heat flow and are functions of temperature. The Clausius postulate of the SLT states that heat cannot flow from a colder body towards a hotter body. In Haddad’s formalization of thermodynamics, this is used as an axiom to hold at all t:
| (3) |
This postulate is the basis for the definition of entropy generation or irreversible entropy production in classical thermodynamics, a component of a system’s entropy change along irreversible processes such as frictional losses, heat transfer across finite temperature differences, and processes occurring outside equilibrium conditions [21].
However, the power transfer pattern of Equation (3) is not satisfied outside the thermal domain. Indeed the broad class of Hamiltonian systems, including those involving the mechanical, electrical and magnetic domains admit trajectories where power is directed “backwards”, i.e., from a low-energy subsystem towards a high-energy subsystem at particular instants of time. This presents an obstacle for the definition of entropy and the limitations it imposes in extended domains.
To circumvent this obstacle and the absence of a temperature variable from non-thermal engineering models, we consider cyclic trajectories and averaged forms of energy and power. Our work shows that a version of Equation (3) termed energy cyclo-directionality (ECD) [17,18,19] may hold in extended physical domains. For periodic trajectories, each subsystem in Figure 1 must also satisfy the average power balance:
| (4) |
where is the average cyclic integral of over a cycle and similar definitions apply for the other averaged variables. Note that . The energy cyclo-directionality property is now defined.
Definition 1.
Let denote a set of periodic trajectories of the interconnected system. The interconnected system is said to satisfy energy cyclo-directionality (ECD) in if there are constants such that
(5) for all trajectories in , where
Note that play the role of generalized temperatures. Constants must be calculated for every specific system to guarantee this inequality. For subsystems with linear dynamics, this has been shown to reduce to the generalized eigenvalue problem [19], or, to norm calculations [17].
Entropy Generation and Lost Work
In thermodynamics, the Clausius postulate leads to the definition of entropy generation, a non-negative quantity widely used to describe the deviation of a process from ideality (which involves reversibility and equilibrium). EGM techniques [22] involve the minimization of this quantity towards the efficient design and operation of thermodynamic systems. In our generalization [17], entropy generation takes the same form as its classical counterpart:
| (6) |
This cost function is non-negative whenever ECD holds. It coincides with the notion of irreversible entropy production [23], suitably extended to multidomain systems and restricted to periodic regimes.
Gouy and Stodola [7] linked entropy generation to the efficiency of heat engines through lost work, which quantifies the work lost due to irreversibility as follows:
| (7) |
where is the fixed environment temperature. This formula, known as the Gouy–Stodola theorem, is the foundation of SLT-based optimization of thermodynamic processes [6,22].
In our generalization, an arbitrary subsystem r is chosen to act as the reference, paralleling the role of the reference temperature in classical irreversible thermodynamics:
| (8) |
Note that is constant for each periodic trajectory. The cost function used in the following sections is obtained from by a convenient choice of reference subsystem.
3. Mathematical Model and Power Balances
We consider an n-DoF serial linkage equipped with current-driven actuators as shown in Figure 2 for the case .
Figure 2.
Multi-DoF linkage with current-driven actuators.
With , the dynamic equation of the electric drive is
| (9) |
where , , and are the voltage, electrical resistance, and inductance, respectively, and is the back-EMF/torque constant. It is assumed that the electrical current can be directly controlled. The control of the power take-off (PTO) system in an energy harvesting device is a complex problem and has been extensively studied in the literature [24]. The present work focuses specifically on the mechanical-to-electrical energy conversion stage of the harvesting process. The governing equation of motion for the linkage under external torque and control currents in the vector u is
| (10) |
where q and are the generalized joint coordinates and velocities, and , , and are respectively the mass matrix, the Coriolis/centripetal matrix, the gravity torque and the friction torque. Also, , and is the external torque injecting mechanical power. Defining state variables , and , the state-space model of the mechanical subsystem is
| (11) |
According to the framework of the previous section, the relevant average power and energy variables over a period T are as follows: the average mechanical dissipation is , where diag, and the average electrical power of all sources is
| (12) |
The equation above is simplified using the fact that for periodic motions , so
| (13) |
The average stored magnetic energy is , with diag.
For the mechanical subsystem, the average dissipation is , where f is assumed to satisfy to represent power losses. The average rate of work is and the average stored mechanical energy is , where is the potential energy of the linkage.
Multiplying Equation (10) by and using the skew-symmetry property [25] yields the instantaneous power balance:
| (14) |
where K and P are the kinetic and potential energies, with .
This shows that the instantaneous power exchanged across the electrical and mechanical subsystems is . However, to facilitate subsequent developments, we draw subsystem boundaries by regrouping terms in the power balance more conveniently. Add and subtract in Equation (14) and integrate over a cycle to obtain the average power balance of a subsystem denoted as :
| (15) |
where is defined and was used. Rearranging Equation (12) yields the average power balance of a subsystem we denote as :
| (16) |
The rationale for this is that is cyclo-passive [15,26] with respect to supply rate , that is for all periodic trajectories. This greatly simplifies the enforcement of the ECD condition of Equation (5), which using , reduces to
| (17) |
for some constant .
3.1. ECD Property
To satisfy ECD, should be chosen as where
| (18) |
where the infimum is calculated over all periods and cyclic trajectories. The value of this ratio depends on the physical characteristics of both the actuators and the mechanical components of the system. A numerical approach is generally required for the computation of , although variational methods have also been considered [20]. However, the results of Section 4.2 show that practical, suboptimal velocity feedback gains may be calculated that are independent of , and only the existence of such a constant is assumed.
3.2. Lost Work and Cost Function
Using Equation (8) with and and , the lost work is
| (19) |
Substituting the above average energy and dissipation terms gives
| (20) |
where
| (21) |
is a Rayleigh quotient with bounds:
| (22) |
To relax the OCP, G is replaced by its upper bound, and therefore omitted. This leads to the cost function to be adopted:
| (23) |
Remark 1.
The choice of as reference subsystem is motivated solely by keeping the optimal control problem tractable. With this choice, several terms cancel out in Equation (19), including . The choices or attempting to minimize instead of lost work would require strictly numerical solutions, reducing the interpretability of the results.
4. OCP for Energy Harvesting and Its Solution
To impose constraints pertinent to energy harvesting, we introduce n auxiliary state variables corresponding to the electrical source power of each joint:
and introduce the isoperimetric (integral) constraints , requiring each joint to produce net average harvested power in the cycle.
Using state variables, the OCP is formulated as
| (24) |
subject to
| (25) |
Boundary conditions:
| (26) |
where are given constants.
4.1. Solution
The standard variational approach to optimal control is employed [27]. The Hamiltonian is
| (27) |
where , , and are the costate variables (Lagrange multipliers) associated with the dynamic constraints on , , and , respectively.
Necessary conditions: Enforcing gives
| (28) |
where ∘ denotes the Hadamard (element-wise) product of vectors. We require stationarity of the Hamiltonian with respect to :
| (29) |
Since is nonsingular, the above condition implies , and consequently Note that ; thus, H admits neither a minimum nor a maximum relative to . However, the stationarity condition enables the solution to proceed without knowledge of . This can be seen as a degenerate case of a min-max problem where the controller seeks to minimize the Hamiltonian for the worst-case external force. In our approach, the external torque is treated as neither cooperative nor adversarial.
Substituting into Equation (28) shows that the optimal control must be a decoupled velocity feedback:
| (30) |
For to minimize H, the second derivative of the Hamiltonian with respect to u must be positive definite:
| (31) |
The corresponding costate (adjoint) equations are derived as
| (32) |
| (33) |
| (34) |
Equation (34) shows that is a constant, which from Equation (31) must satisfy the inequality
| (35) |
For the remaining costates, substitute into Equation (33) and solve for , yielding
| (36) |
Differentiating Equation (36) with respect to time and equating the result to the right-hand side of Equation (32) provides an explicit relationship between the time evolution of and the system’s generalized coordinates:
| (37) |
From the Euler–Lagrange equation for a system with kinetic energy and potential energy , we have
| (38) |
Combining Equations (37) and (38) gives
| (39) |
where
The necessary conditions of optimality require that trajectories satisfy the condition defined by differential Equation (39) for some constants . Equation (39) corresponds to the dynamics of an unforced linkage with a modified mass matrix , where the principal moments of inertia are reduced by and gravity is reversed. Premultiplying this equation by and using the skew-symmetry once more, we obtain
| (40) |
Integrating over time gives
| (41) |
The above equation describes the set of integral curves where optimal trajectories must lie. Equation (40) corresponds to unforced motion which must be periodic. This optimality requirement is very restrictive. It may be satisfied for precise combinations of initial conditions, and T. In addition, the solution requires such trajectories to produce harvesting, i.e., in Equation (26).
4.2. Suboptimal Velocity Feedback and Harvested Power
Since decoupled velocity feedback is a necessary condition for optimal control, we designate trajectories resulting from applying the feedback of Equation (30) for arbitrary satisfying (35) and chosen to satisfy ECD as suboptimal. However, suboptimal trajectories need not satisfy Equation (39) under a given external torque.
In this section, we quantify harvesting, examine the asymptotic behavior of the cost function under suboptimal velocity feedback, and establish closed-loop stability properties, providing the main results of the paper formulated as three lemmas.
Lemma 1.
Suppose the velocity feedback of Equation (30) is applied to the system in Equation (11), where satisfies Equation (18) and satisfies Equation (35). Then
- i.
A sufficient condition to produce harvesting () is given by
(42) - ii.
The control gains that maximize average harvested power are obtained at , yielding the control inputs
Proof.
The proof follows by straightforward substitutions and calculus. For [i.], substitute the velocity feedback law into Equation (12) and note that matrices A, F, and R are diagonal. The following expression for is obtained:
(43) where the constant matrix is defined as
(44) Then a negative-definite guarantees harvesting both for the total system () as well as for each joint (as long as the periodic motion is non-trivial: ). Substituting the expression for F into Equation (44) yields
(45) From Equation (45), it follows that will be negative definite if the following inequality is satisfied:
This condition overrides the convexity constraint of Equation (35) and provides a sufficient criterion for the feasibility of energy harvesting.
To establish [ii.], calculus is used to analyze the dependence of on . To maximize harvesting, the components of this matrix must be minimized. Taking the derivative of with respect to and setting it to zero, we obtain , for which
(46) It can be checked that this is indeed a minimum. Substituting this value into Equation (45) gives in the lemma. □
Remark 2.
The above is based on the observation that may be freely chosen, as long as it satisfies the ECD condition (18). Also, the isoperimetric constraint on the harvested energy requires that this value equals the desired targets . In principle, a value for could be calculated by solving Equation (43) for an arbitrary desired value of the harvested energy . Since depends on the choice of , the initial conditions and the external torques, this would require a numerical procedure involving simulation and an assumed external torque history. In contrast, Lemma 1 provides information on the achievable value of without information on the external torque or its spectral characteristics. For , ECD is trivially satisfied, and the cost (lost work) becomes proportional to the average mechanical energy of the linkage.
Equation (30) shows that for , the control input no longer depends on . It depends only on the back-EMF constant and the electrical resistance. This result aligns closely with the findings of [28], where a similar dependence appears in the context of risk-sensitive control of a linear energy harvesting system when a strong emphasis is put on the steadiness of the harvested power within the cost function. It can also be observed that the controller adds damping to the system. These results are also consistent with our findings in [29], where an optimal velocity feedback was obtained to maximize power regenerated by a powered prosthetic leg (a 2-link planar mechanism) during the swing phase.
4.3. Horizontal Linkages
For a horizontal linkage , and we obtain additional insight into the asymptotic behavior of the OCP solutions as summarized in the following lemma.
Lemma 2.
Suppose in Equations (10) and (30) is applied, where satisfies Equation (18) and satisfies Equation (35). Suppose also that satisfies (39). Then:
- i.
The OCP cost function adopts a global minimum whenwhich corresponds to the case .
(47) - ii.
A control satisfying all necessary conditions for optimality and does not exist. However,where achieves maximum harvesting per Equation (46). That is, maximum harvesting is achieved either with or with .
- iii.
For , the cost satisfies
Proof.
If , Equation (41) simplifies to
(48) Substituting K above and from Equation (30), the optimal cost becomes
(49) The minimum cost occurs when , which, when solved, gives the closed-form solution for in [i].
To show [ii.], note that two conditions restrict : the convexity condition in Equation (35) and the harvesting condition of Equation (42):
(50) Clearly the condition corresponding to minimum cost of [i.] is incompatible with the requirement for energy harvesting. The only possible case that allows energy harvesting is . Under this condition, the convexity requirement simplifies to
(51) which indicates that the convexity of the Hamiltonian diminishes as approaches zero. Consequently, an optimal control does not exist (in the sense that the limiting value of the cost is an infimum, not a minimum). The limit in [ii.] is directly evaluated from Equation (45), and [iii.] also follows from previous considerations. □
Remark 3.
Lemma 2 indicates that either or enhance energy harvesting, yielding the same limiting control gains and maintaining the convexity of the Hamiltonian. As , condition (42) implies also. Thus, per [iii.] the objective function is minimized by reducing towards zero. In the limit, the pair leads to , and therefore . Since the kinetic energy is positive definite, this requires .
This implies that achieving minimal lost work (or equivalently minimal entropy generation) requires the system to move “infinitely slowly”, or “quasi-statically”, to use the terminologies of classical thermodynamics. Such “reversible” processes incur no entropy generation. The notion of a quasi-static trajectory has been indeed put in a solid footing by Haddad [14] using the language of dynamical systems. Essentially, such trajectories are those contained in the equilibrium manifold.
4.4. Closed-Loop Stability
Under periodic and bounded external torques, an energy harvester must produce bounded trajectories. Consider first the unforced closed-loop system. Since velocity feedback injects damping, stability follows immediately by considering a Lyapunov function candidate given by the total mechanical energy of the linkage:
whose derivative along the closed-loop dynamics is
| (52) |
A standard argument based on LaSalle’s invariance principle shows that the unforced closed-loop trajectories converge to a point on the equilibrium manifold that depends on the initial conditions. That is, the velocity feedback control produces closed-loop semi-stability [30]. Next, we consider and show that the closed-loop system is input-to-state stable (ISS). This property implies that the states remain bounded for bounded . This is readily established by first noting that the closed-loop system is passive with storage function . Indeed, with external torque Equation (52) becomes
and therefore for any
Intuitively, the left-hand side is the change in mechanical energy and the right-hand side is the energy injected by the external excitation. The inequality says that the mechanical system may not gain more energy than that provided by the input, implying boundedness of states for bounded inputs. A formal statement of the link between passivity and ISS may be found, for instance, in [31]. Note that velocities remain bounded due to passivity, but joint positions remain bounded modulo , due to the configuration space of the robot being itself bounded.
5. Direct Efficiency Maximization
For comparison purposes, we summarize the solution of an OCP based on common efficiency, defined for harvesting () as . With isoperimetric constraints on the average harvested power as above, efficiency maximization is equivalent to total loss minimization, corresponding to the cost function:
| (53) |
An OCP is formulated with the same constraints and boundary conditions as above, assuming linear viscous friction. Following standard variational procedures, a closed-form solution is available as velocity feedback whose gains are calculated by solving quadratic equations. Readers are referred to [32] for the procedural details. The optimal control is shown to always produce closed-loop semi-stability and yield net harvesting. The optimal gains depend on the electrical parameters but are independent of the linkage parameters. Unlike our EMG solution, knowledge of friction coefficients is required.
6. Example and Simulation Studies
We first consider a single-pendulum energy harvester to illustrate the difficulties in achieving the conditions for the exact optimal solutions.
6.1. Case 1: Single-Pendulum Energy Harvester
For a single pendulum, the model of Equation (11) reduces to
| (54) |
where is the moment of inertia about the center of rotation, b is the viscous friction coefficient at the joint, and denotes the location of the center of mass of the link. The costate Equation (39) associated with the optimal control problem becomes
| (55) |
where Q is
substituting from the equation of motion into the costate equation yields the following equation for the optimal trajectories:
| (56) |
This result shows that the optimal trajectories must satisfy the governing equation of a single pendulum with a modified inertia term and an effectively doubled gravitational term. The total harvested energy can be calculated as
| (57) |
where
| (58) |
The value of the constant costate must be determined so that the isoperimetric constraint in Equation (26) is met. However, the velocity trajectory must be known to evaluate the harvested energy. This, in turn, requires prior knowledge of the external torque in the interval , which is inconsistent with the information available in energy harvesting applications. The suboptimal solution, in contrast, does not require this information and leads to an explicit gain that can be implemented in real time.
6.2. Simulation Study: Double-Pendulum Energy Harvester
We demonstrate the benefits of the proposed approach using a two-link planar linkage as in Figure 3, for which the mass, Coriolis and gravity terms are widely available. Friction is assumed to be linearly viscous: , where diag contains non-negative coefficients. The numerical values of the mechanical and electrical parameters employed in the simulations are shown in Table 1 and also available in the code accompanying this paper.
Figure 3.
Schematic of the actuated double pendulum with external random periodic torques applied at the joints.
Table 1.
Parameters used in the double-pendulum harvester model.
| Parameter | Symbol | Value | Units |
|---|---|---|---|
| Link 1 mass | 1 | kg | |
| Link 2 mass | 0.5 | kg | |
| Link 1 CM | 0.5 | m | |
| Link 2 CM | 0.25 | m | |
| Link 1 length | 0.5 | m | |
| Link 2 length | 0.5 | m | |
| Link 1 inertia | 0.15 | kg-m2 | |
| Link 2 inertia | 5 | kg-m2 | |
| Link 1 torque constant | 1 | N-m/A | |
| Link 2 torque constant | 2 | N-m/A | |
| Link 1 resistance | 0.1 | ||
| Link 2 resistance | 0.2 | ||
| Link 1 inductance | 0.01 | H | |
| Link 2 inductance | 0.02 | H | |
| Joint 1 viscous friction | 0.01 | N-m-s | |
| Joint 2 viscous friction | 0.008 | N-m-s |
The study has two aims: (i) to determine how the proposed suboptimal controller approximates the true optimal solution over a large number of trajectories that satisfy Equation (39), and (ii) to compare the harvesting performance of the proposed approach against the maximum efficiency controller under stochastic external torque inputs.
6.3. Optimal vs. Suboptimal Control Gains
A search for initial conditions , periods and constants that resulted in periodic trajectories of Equation (39) (to a tolerance of 0.01 for ) and with W was conducted. Since the periodic trajectories of Equation (39) may be unstable and sensitive to initial conditions, the process is computationally intensive. In total, 1450 such trajectories were computed using , and the corresponding exact gains K recorded. For the parameters of the study, and were narrowly distributed, with means of 5.06 and 5.02, respectively, and standard deviations of 0.185 and 0.004. The suboptimal gains calculated from Lemma 1 are both 5. This means that suboptimal gains are a good approximation to those generating the true optimal solutions.
6.4. Monte Carlo Study
To compare the harvesting performance and the efficiencies obtained with the suboptimal EGM gains or the maximum efficiency gains, a set of 1000 random periodic external torques was generated and tested with either controller, subject to the condition W. All had s. To facilitate the computations, and were parameterized with 5-term Fourier series:
| (59) |
| (60) |
This guarantees periodicity, both for and . For a random guess of Fourier coefficients , and are evaluated from analytical expressions. The external torque is uniquely computed for a given trajectory using Equation (10) once a controller has been selected. All components of the average power balance may be computed and recorded for each episode of meeting the constraints, from which the performance statistics are generated. The generation of random trajectories was performed separately for each controller.
Figure 4 presents histograms (based on raw counts for each bin) that illustrate the statistical properties of each controller. The horizontal axis shows for clarity of presentation. This is because the data for maximal efficiency is narrowly distributed around the mean, resulting in a much higher peak, while the data for EGM is more broadly distributed.
Figure 4.
Distribution of average harvested power with randomly periodic external torques.
Histograms were generated using the histogram function in Matlab 2025a, which uses an automatic algorithm that returns bins of uniform width, chosen to cover the range of the data and reveal the underlying shape of the distribution. The histogram is normalized to approximate the underlying probability density function.
The EGM-based controller has markedly superior harvesting performance across the external torque input episodes. The expectation of the average harvested power is higher than that of the direct efficiency maximization method as clearly shown in the figure. The efficiency achieved with the EGM approach is, as expected, lower in comparison to that achieved using a controller that maximizes efficiency directly. Indeed, with EGM, the average efficiency is 49.9%, while the maximum efficiency controller yields an average of 95.1% for the assumed physical parameters.
The results are qualitatively the same when conducted with different system parameters or T; however, the amount of overlap between the distributions and their spread may change.
6.5. Non-Periodic Trajectories
While the conditions of true optimality depend on the period, this is not the case for the suboptimal gains as it can be observed in the feedback control gain formula. This means that no information about the periodicity of the excitation (further, no spectral information is required). This suggests that the same observations regarding the statistics of harvested power may apply to the non-periodic case. Using an argument similar to the treatment of non-periodic signals in Fourier analysis, we can regard the non-periodic signal as periodic by truncation and periodic extension, and then let the period go to infinity [33].
To demonstrate this argument, we have a collection of 1000 non-periodic joint trajectories of the form
| (61) |
| (62) |
where the coefficients were randomly selected subject to the condition W. As in the periodic case, the model was used to uniquely compute the external torques that produce these trajectories and the same information was collected and analyzed.
It should be noted that the net change in mechanical energy need not be zero for non-periodic trajectories since the mechanism is not required to return to the same configuration and joint velocities. This means that efficiency maximization is no longer equivalent to loss minimization. The comparison below is therefore between the suboptimal EGM controller and a loss minimization controller, which is the same as that used in the periodic case.
As shown in Figure 5 and summarized in Table 2, the results show that for periodic and non-periodic trajectories, the suboptimal EGM solution produces a higher expectation for the average harvested power in comparison with loss minimization, while the efficiency associated with the latter controller is higher as expected due to direct loss minimization.
Figure 5.
Distribution of average harvested power with randomly-generated non-periodic external torques.
Table 2.
Summary of Monte Carlo study statistics between EGM and loss minimization (LM).
| Case | Mean Harvested Power | Std. Dev. | Mean Efficiency |
|---|---|---|---|
| EGM Periodic | 19.98 | 7.66 | 0.499 |
| EGM Non-periodic | 21.93 | 9.12 | 0.499 |
| LM Periodic | 1.91 | 0.56 | 0.951 |
| LM Non-periodic | 2.21 | 0.75 | 0.996 |
Remark 4.
For periodic trajectories the net change of mechanical energy is zero and the efficiency is calculated as the ratio of harvested power to supplied work. For non-periodic trajectories, the mechanism will generally have a net change of stored mechanical energy in . The efficiency may be calculated as before, or the denominator may be adjusted with the net change of mechanical energy, which is not regarded as a loss. The efficiencies reported above for the non-periodic case are an average of both forms.
7. Conclusions and Future Work
The proposed cost function is based on, and recovers, the features of thermodynamic optimization, where true unconstrained optimality corresponds to an idealized process occurring along the equilibrium manifold. Indeed, for the case of horizontal linkages, achieving zero lost work requires system motion to become arbitrarily slow, mirroring the classical thermodynamic notion that reversible processes generate no entropy only when executed infinitely slowly. From a practical standpoint, OCPs defined with this cost function are analytically tractable and lead to suboptimal solutions that do not require information about the mechanical subsystem parameters, notably friction characteristics. No information about the external torque input or its spectrum is required.
The Monte Carlo study confirms that a controller derived from the proposed EGM approach will produce higher average harvested power over repeated episodes with random excitation, a feature which is highly relevant to energy harvesters. While the proposed controller is less efficient than one designed to maximize efficiency, harvesting applications reasonably prioritize larger amounts of harvested power over efficiency since the resource is abundant and essentially free. These outcomes are reminiscent of the Maximum Power Theorem [34], originally formulated for electrical networks. Indeed, the EGM solutions for the periodic and non-periodic cases produce an efficiency of 1/2, which had also been observed for the linear systems considered in our earlier work [17]. The results of this paper thus suggest a deep connection between maximum power transfer and entropy minimization, even in a generalized sense.
An immediate extension of our work is to “color” the excitation by modeling it as the output of a filter reflecting known spectral characteristics. This introduces additional dynamics, requiring a new solution. It is expected that the resulting controllers will offer superior performance over those derived with an unknown spectrum. Also, direct external torque inputs were assumed. For a practical harvesting application, external force must also be considered, which contributes a term , where is the kinematic Jacobian at the point of application of . This requires straightforward modifications.
Finally, the selection of subsystems used in deriving the lost work expression is somewhat arbitrary and was chosen primarily to simplify the analysis. Developing a systematic and general procedure for subsystem decomposition would be a valuable direction for future research.
Author Contributions
Methodology, writing, review, editing, supervision, project administration and funding acquisition: H.R. Conceptualization, formal analysis, methodology and software, writing, review and editing: M.F. All authors have read and agreed to the published version of the manuscript.
Data Availability Statement
The Montecarlo studies can be reproduced by with the code posted in the GitHub repository https://github.com/csurowing/Generalized-Entropy-Generation-Minimization.
Conflicts of Interest
The authors declare no conflicts of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.
Funding Statement
This work was supported by the U.S. National Science Foundation through grant #2221726.
Footnotes
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
References
- 1.Lee G., Lee S.J., Rho J., Kim M. Acoustic and mechanical metamaterials for energy harvesting and self-powered sensing applications. Mater. Today Energy. 2023;37:101387. doi: 10.1016/j.mtener.2023.101387. [DOI] [Google Scholar]
- 2.Liu R., He L., Liu X., Wang S., Zhang L., Cheng G. A review of collecting ocean wave energy based on piezoelectric energy harvester. Sustain. Energy Technol. Assess. 2023;59:103417. doi: 10.1016/j.seta.2023.103417. [DOI] [Google Scholar]
- 3.Guo B., Wang T., Jin S., Duan S., Yang K., Zhao Y. A review of point absorber wave energy converters. J. Mar. Sci. Eng. 2022;10:1534. doi: 10.3390/jmse10101534. [DOI] [Google Scholar]
- 4.Chen J., Bao B., Liu J., Wu Y., Wang Q. Pendulum energy harvesters: A review. Energies. 2022;15:8674. doi: 10.3390/en15228674. [DOI] [Google Scholar]
- 5.Basheer F., Mehaisi E., Elsergany A., ElSheikh A., Ghommem M., Najar F. Energy harvesters for rotating systems: Modeling and performance analysis. tm.-Tech. Mess. 2021;88:164–177. doi: 10.1515/teme-2020-0088. [DOI] [Google Scholar]
- 6.Bejan A., Kestin J. Entropy Generation Through Heat and Fluid Flow. Wiley; New York, NY, USA: 1983. [Google Scholar]
- 7.Gouy Sur l’énergie utilisable. J. Phys. Théorique Appliquée. 1889;8:501–518. doi: 10.1051/jphystap:018890080050101. [DOI] [Google Scholar]
- 8.Sciacovelli A., Verda V., Sciubba E. Entropy generation analysis as a design tool—A review. Renew. Sustain. Energy Rev. 2015;43:1167–1181. doi: 10.1016/j.rser.2014.11.104. [DOI] [Google Scholar]
- 9.Bejan A. Energy and the Environment. Springer; Berlin/Heidelberg, Germany: 1999. The method of entropy generation minimization; pp. 11–22. [Google Scholar]
- 10.Pressé S., Ghosh K., Lee J., Dill K.A. Principles of maximum entropy and maximum caliber in statistical physics. Rev. Mod. Phys. 2013;85:1115–1141. doi: 10.1103/RevModPhys.85.1115. [DOI] [Google Scholar]
- 11.Banavar J.R., Maritan A., Volkov I. Applications of the principle of maximum entropy: From physics to ecology. J. Phys. Condens. Matter. 2010;22:063101. doi: 10.1088/0953-8984/22/6/063101. [DOI] [PubMed] [Google Scholar]
- 12.Chowdhury M.A., Al-Wahaibi S.S., Lu Q. Entropy-maximizing TD3-based reinforcement learning for adaptive PID control of dynamical systems. Comput. Chem. Eng. 2023;178:108393. doi: 10.1016/j.compchemeng.2023.108393. [DOI] [Google Scholar]
- 13.De Martino A., De Martino D. An introduction to the maximum entropy approach and its application to inference problems in biology. Heliyon. 2018;4:e00596. doi: 10.1016/j.heliyon.2018.e00596. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14.Haddad W.M., Chellaboina V., Nersesov S.G. Thermodynamics: A Dynamical Systems Approach. Volume 12 Princeton University Press; Princeton, NJ, USA: 2009. [Google Scholar]
- 15.Van Der Schaft A. Cyclo-dissipativity revisited. IEEE Trans. Autom. Control. 2020;66:2920–2924. doi: 10.1109/TAC.2020.3013941. [DOI] [Google Scholar]
- 16.van der Schaft A., Jeltsema D. Limits to energy conversion. IEEE Trans. Autom. Control. 2021;67:532–538. doi: 10.1109/TAC.2021.3075652. [DOI] [Google Scholar]
- 17.Richter H., Fathizadeh M., Kaptain T. Entropy Generation Optimization in Multidomain Systems: A Generalized Gouy-Stodola Theorem and Optimal Control. Entropy. 2025;27:612. doi: 10.3390/e27060612. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18.Richter H. Thermodynamic H∞ Control of Multidomain Power Networks. IEEE Control Syst. Lett. 2023;7:1939–1944. doi: 10.1109/LCSYS.2023.3283474. [DOI] [Google Scholar]
- 19.Richter H. Energy Cyclo-Directionality, Average Equipartition and Exergy Efficiency of Multidomain Power Networks. IEEE Control Syst. Lett. 2022;6:3337–3342. doi: 10.1109/LCSYS.2022.3184748. [DOI] [Google Scholar]
- 20.Fathizadeh M., Richter H. 2025 American Control Conference (ACC) IEEE; Piscataway, NJ, USA: 2025. Thermodynamics-inspired trajectory optimization of a planar robotic arm; pp. 3726–3731. [Google Scholar]
- 21.Prigogine I. Introduction to Thermodynamics of Irreversible Processes. 3rd ed. Wiley; New York, NY, USA: 1967. [Google Scholar]
- 22.Bejan A. Advances in Heat Transfer. Volume 15. Elsevier; Amsterdam, The Netherlands: 1982. Second-law analysis in heat transfer and thermal design; pp. 1–58. [Google Scholar]
- 23.Van Der Schaft A. Classical thermodynamics revisited: A systems and control perspective. IEEE Control Syst. Mag. 2021;41:32–60. doi: 10.1109/MCS.2021.3092809. [DOI] [Google Scholar]
- 24.Singh D., Paul A.R., Samad A. Power take-off technologies of point absorber wave energy converters: A review. J. Mar. Sci. Technol. 2026:1–22. doi: 10.1007/s00773-026-01122-1. [DOI] [Google Scholar]
- 25.Spong M.W., Hutchinson S., Vidyasagar M. Robot Modeling and Control. Wiley; New York, NY, USA: 2005. [Google Scholar]
- 26.van der Schaft A. Cyclo-Dissipativity and Thermodynamics; Proceedings of the 21st IFAC World Congress (Virtual); Berlin, Germany. 12–17 July 2020. [Google Scholar]
- 27.Kirk D.E. Optimal Control Theory: An Introduction. Courier Corporation; North Chelmsford, MA, USA: 2004. [Google Scholar]
- 28.Ligeikis C., Scruggs J. 2023 62nd IEEE Conference on Decision and Control (CDC) IEEE; Piscataway, NJ, USA: 2023. Risk-Sensitive Control of Vibratory Energy Harvesters; pp. 2541–2548. [Google Scholar]
- 29.Khalaf P. Ph.D. Thesis. Cleveland State University; Cleveland, OH, USA: 2019. Design, Control, and Optimization of Robots with Advanced Energy Regenerative Drive Systems. [Google Scholar]
- 30.Bhat S., Bernstein D. Proceedings of the 1999 American Control Conference (Cat. No. 99CH36251) Volume 3. IEEE; Piscataway, NJ, USA: 1999. Lyapunov analysis of semistability; pp. 1608–1612. [Google Scholar]
- 31.van der Schaft A.J. L2-Gain and Passivity Techniques in Nonlinear Control. 2nd ed. Springer; London, UK: 2000. [Google Scholar]
- 32.Fathizadeh M., Richter H. Optimal Control of Electromechanical Linkages for Energy Harvesting: A Generalized Minimum-Entropy Criterion. IEEE TechRxiv. 2025 doi: 10.36227/techrxiv.176704912.22090816/v1. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 33.Bracewell R.N. The Fourier Transform and Its Applications. 3rd ed. McGraw–Hill; New York, NY, USA: 2000. [Google Scholar]
- 34.Svoboda J., Dorf R. Introduction to Electric Circuits. John Wiley & Sons; Hoboken, NJ, USA: 2014. [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Data Availability Statement
The Montecarlo studies can be reproduced by with the code posted in the GitHub repository https://github.com/csurowing/Generalized-Entropy-Generation-Minimization.





