Skip to main content
Entropy logoLink to Entropy
. 2026 Apr 24;28(5):489. doi: 10.3390/e28050489

Minimum-Entropy Optimal Control of Electromechanical Linkages for Energy Harvesting

Meysam Fathizadeh 1, Hanz Richter 1,*
Editor: Geert Verdoolaege1
PMCID: PMC13205167  PMID: 42187904

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:

∮dQT≤0 (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:

Wlost=T0S˙gen (2)

where T0 is the ambient temperature and S˙gen 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 Ei is the energy stored in subsystem i, ϕij=−ϕji is the power received by i from j, si is the external power exchanged by i (with sources capable of delivering or accepting power), σi≥0 is the power dissipated by i to the exterior, and ωi is the rate of mechanical work exchanged between i and the exterior.

Figure 1.

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: E˙i=si+∑j=1Nϕij−σi−wi=0. In the classical thermodynamics setting, ϕij represents heat flow and Ei 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:

(Ei(t)−Ej(t))ϕij(t)≤0, and ϕij=0⟺E1(t)=E2(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:

s¯i+∑j=1,j≠iNϕ¯ij−σ¯i−w¯i=0 (4)

where s¯i=1T∫0Ts(y(t),u(t),t)dt is the average cyclic integral of si over a cycle and similar definitions apply for the other averaged variables. Note that E˙¯i=0. The energy cyclo-directionality property is now defined.

Definition 1.

Let P denote a set of periodic trajectories of the interconnected system. The interconnected system is said to satisfy energy cyclo-directionality (ECD) in P if there are constants βi,j≥0 such that

(d¯i−d¯j)ϕ¯ij≤0 (5)

for all trajectories in P, where d¯i=βiE¯i

Note that d¯i(t) play the role of generalized temperatures. Constants βi 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 H∞ 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:

X¯g=∑i=1N∑j=1,j≠iNϕ¯ij(d¯j−d¯i)d¯id¯j (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:

Wlost=T0ΔSgen (7)

where T0 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:

W¯l,r=drX¯g (8)

Note that dr is constant for each periodic trajectory. The cost function used in the following sections is obtained from W¯l,r 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 n=2.

Figure 2.

Figure 2

Multi-DoF linkage with current-driven actuators.

With uk=Ik, the dynamic equation of the kth electric drive is

Vk−ukrk−lku˙k−αkq˙k=0 (9)

where Vk, rk, and lk are the voltage, electrical resistance, and inductance, respectively, and αk 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 τext and control currents in the vector u is

M(q)q¨+C(q,q˙)q˙+g(q)+f(q˙)=Au+τext(t) (10)

where q and q˙ are the generalized joint coordinates and velocities, and M(q), C(q,q˙), g(q) and f(q˙) are respectively the mass matrix, the Coriolis/centripetal matrix, the gravity torque and the friction torque. Also, A=diag{αi}, and τext(t) is the external torque injecting mechanical power. Defining state variables z1=q, z2=q˙ and z=[z1z2]T, the state-space model of the mechanical subsystem is

z˙1=z2z˙2=M(z1)−1Au−C(z)z2−g(z1)−f(z2)+τext(t) (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 σ¯1=1T∮0Tu⊤Rudt, where R=diag{ri}, and the average electrical power of all sources is

S¯1=1T∮0T∑k=1nαkq˙kuk+uk2rk−lku˙kukdt=1T∮0Tu⊤Ru+q˙⊤Audt (12)

The equation above is simplified using the fact that for periodic motions u(0)=u(T), so

1T∮0T∑k=1nlku˙kukdt=1T∑k=1n∮0Tlku˙kukdt=1T∑k=1nlk∮u(0)u(T)ukduk=0 (13)

The average stored magnetic energy is E¯1=1T∮0Tu⊤Ludt, with L=diag{li}.

For the mechanical subsystem, the average dissipation is σ¯2=1T∮0Tq˙⊤f(q˙)dt, where f is assumed to satisfy q˙⊤f(q˙)≥0 to represent power losses. The average rate of work is W¯=1T∮0Tq˙⊤τextdt and the average stored mechanical energy is E¯2=1T∮0T12q˙⊤M(q)q˙+P(q)dt, where P(q) is the potential energy of the linkage.

Multiplying Equation (10) by q˙⊤ and using the skew-symmetry property z2T(M˙−2C)z2=0 [25] yields the instantaneous power balance:

K˙+P˙+q˙⊤f=q˙⊤Au+q˙⊤τext (14)

where K and P are the kinetic and potential energies, with E2=K+P.

This shows that the instantaneous power exchanged across the electrical and mechanical subsystems is q˙⊤Au. However, to facilitate subsequent developments, we draw subsystem boundaries by regrouping terms in the power balance more conveniently. Add and subtract S1 in Equation (14) and integrate over a cycle to obtain the average power balance of a subsystem denoted as Σ2:

0=S¯1−ϕ¯12−σ¯2−w¯ (15)

where ϕ¯12=S¯1−1T∮0Tq˙⊤Audt is defined and ∮0TK˙+P˙dt=0 was used. Rearranging Equation (12) yields the average power balance of a subsystem we denote as Σ1:

0=ϕ¯12−σ¯1 (16)

The rationale for this is that Σ1 is cyclo-passive [15,26] with respect to supply rate ϕ12, that is ϕ¯12=σ¯1≥0 for all periodic trajectories. This greatly simplifies the enforcement of the ECD condition of Equation (5), which using β1=γ2, β2=1 reduces to

γ2E¯1−E¯2≤0 (17)

for some constant γ2.

3.1. ECD Property

To satisfy ECD, γ2 should be chosen as γ2≤γcrit2 where

γcrit2=infT,qE¯2E¯1=infT,q∮12q˙⊤M(q)q˙+P(q)dt∮u⊤Ludt (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 γcrit2, 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 γ2, and only the existence of such a constant is assumed.

3.2. Lost Work and Cost Function

Using Equation (8) with r=2 and d1=γ2E¯1 and d2=E¯2, the lost work is

W¯l,2=d2d2−d1d1d2ϕ¯12=(E¯2−γ2E¯1)σ¯1E¯1, (19)

Substituting the above average energy and dissipation terms gives

W¯l,2=E¯2−γ2E¯1G (20)

where

G=∮0Tu⊤Rudt∮0Tu⊤Ludt. (21)

is a Rayleigh quotient with bounds:

minirili≤G≤maxirili. (22)

To relax the OCP, G is replaced by its upper bound, and therefore omitted. This leads to the cost function to be adopted:

J=1T∮0T12q˙TM(q)q˙+P(q)−12γ2u⊤Ludt, (23)

Remark 1.

The choice of r=2 as reference subsystem is motivated solely by keeping the optimal control problem tractable. With this choice, several terms cancel out in Equation (19), including ϕ¯12. The choices r=1 or attempting to minimize X¯g 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 ξi corresponding to the electrical source power of each joint:

ξ˙i=1Triui2+αiz2,iui

and introduce the isoperimetric (integral) constraints ξi(T)=s¯id<0, requiring each joint to produce net average harvested power in the cycle.

Using state variables, the OCP is formulated as

minJ=1T∮0T12z2⊤M(q)z2+P(z1)−12γ2u⊤Ludt (24)

subject to

z˙1=z2,z˙2=M(z1)−1Au−C(z)z2−g(z1)−f(z2)+τext(t),ξ˙i=1Triui2+αiz2,iui,i=1,…,n (25)

Boundary conditions:

z(0)=z(T),ξi(0)=0,ξi(T)=s¯id, (26)

where s¯id are given constants.

4.1. Solution

The standard variational approach to optimal control is employed [27]. The Hamiltonian is

H=1T12z2⊤M(z1)z2+P(z1)−γ2u⊤Lu+λ1⊤z2+λ2⊤M−1(z1)Au−C(z)z2−g(z1)−f(z)+τext(t)+1T∑i=1nλ3,iriui2+αiz2,iui (27)

where λ1, λ2, and λ3,i are the costate variables (Lagrange multipliers) associated with the dynamic constraints on z1, z2, and ξi, respectively.

Necessary conditions: Enforcing ∂H/∂u=0 gives

−1Tγ2Lu+A⊤M−⊤(z1)λ2+1Tλ3∘(2Ru+Az2)=0 (28)

where ∘ denotes the Hadamard (element-wise) product of vectors. We require stationarity of the Hamiltonian with respect to τext:

∂H∂τext=−M−⊤(z1)λ2=0. (29)

Since M(z1) is nonsingular, the above condition implies λ2=0, and consequently λ˙2=0. Note that ∂2H∂τext2=0; thus, H admits neither a minimum nor a maximum relative to τext. However, the stationarity condition enables the solution to proceed without knowledge of τext. 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 λ2=0 into Equation (28) shows that the optimal control must be a decoupled velocity feedback:

u*=−Fz2,whereF=diagλ3,iαi2λ3,iri−γ2li (30)

For u* to minimize H, the second derivative of the Hamiltonian with respect to u must be positive definite:

∂2H∂u2>0⟹2λ3,iri−γ2li>0 (31)

The corresponding costate (adjoint) equations are derived as

λ˙1=−∂H∂z1=−1T∂∂z112z2⊤M(z1)z2+P(z1)λ˙2=−∂H∂z2=−1T∂∂z212z2⊤M(z1)z2−λ2Tdz˙2dz2 (32)
−λ1−1Tλ3∘(Au) (33)
λ˙3=−∂H∂ξ=0 (34)

Equation (34) shows that λ3 is a constant, which from Equation (31) must satisfy the inequality

λ3,i>γ2li2rii=1,2,…,n, (35)

For the remaining costates, substitute λ2=λ˙2=0 into Equation (33) and solve for λ1, yielding

λ1=−1T∂∂z212z2⊤M(z1)z2−1Tλ3∘(Au) (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 λ1 and the system’s generalized coordinates:

−∂∂z112z2⊤M(z1)z2+P(z1)=−ddt∂∂z212z2⊤M(z1)z2+λ3∘(AFz˙2) (37)

From the Euler–Lagrange equation for a system with kinetic energy 12z2⊤M(z1)z2 and potential energy P(z1), we have

ddt∂∂z212z2⊤M(z1)z2−∂∂z112z2⊤M(z1)z2+P(z1)=M(z1)z˙2+C(z)z2−g (38)

Combining Equations (37) and (38) gives

M(z1)−Qz˙2+C(z)z2−g=0 (39)

where

Q=diagλ3,i2αi22λ3,iri−γ2li

The necessary conditions of optimality require that trajectories z*(t) satisfy the condition defined by differential Equation (39) for some constants λ3,i. Equation (39) corresponds to the dynamics of an unforced linkage with a modified mass matrix M−Q, where the principal moments of inertia are reduced by Qii and gravity is reversed. Premultiplying this equation by z2⊤ and using the skew-symmetry once more, we obtain

K˙−P˙=12ddtz2⊤Qz2 (40)

Integrating over time gives

K−P=12z2⊤Qz2+constant (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, λ3,i and T. In addition, the solution requires such trajectories to produce harvesting, i.e., s¯id<0 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 λ3 satisfying (35) and γ2 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 γ2 satisfies Equation (18) and λ3 satisfies Equation (35). Then

  • i.
    A sufficient condition to produce harvesting (s¯i<0) is given by
    λ3,i>γ2lirii=1,2,...,n (42)
  • ii.
    The control gains that maximize average harvested power are obtained at γ2=0, yielding the control inputs
    ui*=−αi2riz2i

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 S¯1 is obtained:

S¯1=1T∮0⊤z2⊤Λz2dt (43)

where the constant matrix Λ is defined as

Λ=FRF−AF (44)

Then a negative-definite Λ guarantees harvesting both for the total system (S¯1<0) as well as for each joint (as long as the periodic motion is non-trivial: z2≠0). Substituting the expression for F into Equation (44) yields

Λ=diag−λ3,iαi2λ3,iri−γ2li2λ3,iri−γ2li2 (45)

From Equation (45), it follows that Λ will be negative definite if the following inequality is satisfied:

λ3,i>γ2lirii=1,2,...,n

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 γ2. To maximize harvesting, the components of this matrix must be minimized. Taking the derivative of Λii with respect to γ2 and setting it to zero, we obtain γ2=0, for which

Λmin=diag−αi24ri (46)

It can be checked that this is indeed a minimum. Substituting this value into Equation (45) gives ui* in the lemma.    □

Remark 2.

The above is based on the observation that γ2 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 s¯id<0. In principle, a value for λ3 could be calculated by solving Equation (43) for an arbitrary desired value of the harvested energy S¯1d. Since z2(t) depends on the choice of λ3, 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 s¯i without information on the external torque τext or its spectral characteristics. For γ2=0, ECD is trivially satisfied, and the cost (lost work) becomes proportional to the average mechanical energy of the linkage.

Equation (30) shows that for γ2=0, the control input no longer depends on λ3. 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 P=0, and we obtain additional insight into the asymptotic behavior of the OCP solutions as summarized in the following lemma.

Lemma 2.

Suppose g(q)=0 in Equations (10) and (30) is applied, where γ2 satisfies Equation (18) and λ3 satisfies Equation (35). Suppose also that z(t) satisfies (39). Then:

  • i.
    The OCP cost function adopts a global minimum when
    λ3,i=γ2liri. (47)
    which corresponds to the case S¯1=0.
  • ii.
    A control satisfying all necessary conditions for optimality and S¯1>0 does not exist. However,
    limλ3,i→∞S¯1=1T∮0⊤z2⊤Λminz2dt
    where Λmin achieves maximum harvesting per Equation (46). That is, maximum harvesting is achieved either with γ2=0 or with λ3,i→∞.
  • iii.
    For γ2=0, the cost satisfies
    limλ3,i→0J=0

Proof. 

If P(z1)=0, Equation (41) simplifies to

K=12z2⊤Qz2+constant. (48)

Substituting K above and u* from Equation (30), the optimal cost becomes

J*=12T∮0Tz2⊤Q−γ2FLFz2dt (49)

The minimum cost occurs when Q−γ2FLF=0, which, when solved, gives the closed-form solution for λ3,i in [i].

To show [ii.], note that two conditions restrict λ3,i: the convexity condition in Equation (35) and the harvesting condition of Equation (42):

λ3,i>γ2li2ri,(Hamiltonianconvexity)λ3,i>γ2liri,(Harvestingfeasibility). (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 γ2=0. Under this condition, the convexity requirement simplifies to

2λ3,iri>0, (51)

which indicates that the convexity of the Hamiltonian diminishes as λ3,i 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 γ2=0 or λ3,i→∞ enhance energy harvesting, yielding the same limiting control gains and maintaining the convexity of the Hamiltonian. As λ3,i→0, condition (42) implies γ2→0 also. Thus, per [iii.] the objective function is minimized by reducing λ3,i towards zero. In the limit, the pair (γ2,λ3,i)=(0,0) leads to Q=0, and therefore F=0. Since the kinetic energy is positive definite, this requires z2→0.

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:

V(z)=12z2⊤M(z1)z2+P(z1),

whose derivative along the closed-loop dynamics is

V˙=−z2⊤f(z2)−z2⊤Fz2. (52)

A standard argument based on LaSalle’s invariance principle shows that the unforced closed-loop trajectories converge to a point (z¯1,0) 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 τext≠0 and show that the closed-loop system is input-to-state stable (ISS). This property implies that the states remain bounded for bounded τext. This is readily established by first noting that the closed-loop system is passive with storage function V(z). Indeed, with external torque Equation (52) becomes

V˙=−z2⊤f(z2)−z2⊤Fz2+z2Tτext≤z2⊤τext

and therefore for any [t1,t2]

V(t2)−V(t1)≤∫t1t2z2T(t)τext(t)dt

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 2π, 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 (S¯1<0) as η1=−S¯1/(−S¯1+σ¯).  With isoperimetric constraints on the average harvested power as above, efficiency maximization is equivalent to total loss minimization, corresponding to the cost function:

Jη1=σ¯=12T∫0Tz2Tf(z2)+uTRudt (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

Icq¨+bq˙+mglcsinq=τext+αu, (54)

where Ic is the moment of inertia about the center of rotation, b is the viscous friction coefficient at the joint, and lc denotes the location of the center of mass of the link. The costate Equation (39) associated with the optimal control problem becomes

Ic−Qq¨−mglcsinq=0, (55)

where Q is

Q=λ32α22λ3r−γ2l

substituting Icq¨ from the equation of motion into the costate equation yields the following equation for the optimal trajectories:

Qq¨+bq˙+2mglcsinq=τext (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

S¯=ΛT∮0Tq˙2dt (57)

where

Λ=diag−λ3α2λ3r−Tγ2l2λ3r−Tγ2l2 (58)

The value of the constant costate λ3 must be determined so that the isoperimetric constraint S¯=S¯d in Equation (26) is met. However, the velocity trajectory q˙ must be known to evaluate the harvested energy. This, in turn, requires prior knowledge of the external torque in the interval [0,T], 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: f(z)=Bz2, where B=diag{bi} 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.

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 m1 1 kg
Link 2 mass m2 0.5 kg
Link 1 CM lc1 0.5 m
Link 2 CM lc2 0.25 m
Link 1 length l1 0.5 m
Link 2 length l2 0.5 m
Link 1 inertia I1 0.15 kg-m2
Link 2 inertia I2 5 kg-m2
Link 1 torque constant α1 1 N-m/A
Link 2 torque constant α2 2 N-m/A
Link 1 resistance r1 0.1 Ω
Link 2 resistance r2 0.2 Ω
Link 1 inductance L1 0.01 H
Link 2 inductance L2 0.02 H
Joint 1 viscous friction b1 0.01 N-m-s
Joint 2 viscous friction b2 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 z(0), periods T∈[010] and constants Λ3 that resulted in periodic trajectories of Equation (39) (to a tolerance of 0.01 for ∥z(0)−z(T)∥) and with S¯1≤1 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 γ2=0.5, and the corresponding exact gains K recorded. For the parameters of the study, K(1,1) and K(2,2) 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 S¯1≤−1 W. All τext had T=5 s. To facilitate the computations, q1(t) and q2(t) were parameterized with 5-term Fourier series:

q1(t)=X1+X2cos(wt)+X3sin(wt)+X4cos(2wt)+X5sin(2wt) (59)
q2(t)=X6+X7cos(wt)+X8sin(wt)+X9cos(2wt)+X10sin(2wt) (60)

This guarantees periodicity, both for z(t) and τext(t). For a random guess of Fourier coefficients Xi, z(t) and z˙(t) 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 τext(t) 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 log(−S¯1) 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.

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

q1(t)=X1+X2cos(wt)+X3sin(wt)+X4cos(3.1wt)+X5sin(1.5wt) (61)
q2(t)=X6+X7cos(wt)+X8sin(wt)+X9cos(2.6wt)+X10sin(1.7wt) (62)

where the coefficients were randomly selected subject to the condition S¯1≤−1 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.

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 [0,T]. 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 JT(q)Fext, where J(q) is the kinematic Jacobian at the point of application of Fext. 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.


Articles from Entropy are provided here courtesy of Multidisciplinary Digital Publishing Institute (MDPI)

RESOURCES