본문 펼치기
## OPEN
# On dispersion curve coloring for mechanical metafilters
Andrea Bacigalupo <sup>1</sup> , Maria Laura De Bellis <sup>2</sup> , Giorgio Gnecco <sup>3</sup> <sup>*</sup> & Federico Nutarelli <sup>4</sup>
This paper formalizes smooth curve coloring (i.e., curve identification) in the presence of curve
intersections as an optimization problem, and investigates theoretically properties of its optimal
solution. Moreover, it presents a novel automatic technique for solving such a problem. Formally, the
proposed algorithm aims at minimizing the summation of the total variations over a given interval of
the first derivatives of all the labeled curves, written as functions of a scalar parameter. The algorithm
is based on a first-order finite difference approximation of the curves and a sequence of prediction/
correction steps. At each step, the predicted points are attributed to the subsequently observed
points of the curves by solving an Euclidean bipartite matching subproblem. A comparison with a more
computationally expensive dynamic programming technique is presented. The proposed algorithm
is applied with success to elastic periodic metamaterials for the realization of high-performance
mechanical metafilters. Its output is shown to be in excellent agreement with desirable smoothness
and periodicity properties of the metafilter dispersion curves. Possible developments, including those
based on machine-learning techniques, are pointed out.
Mechanical metamaterials are artificial materials having properties beyond (“meta”) those of commonly encountered materials <sup>1–4</sup> . They are obtained by assembling multiple elements in repeating patterns, at scales that are
smaller than the wavelengths of the physical phenomena of interest. Applications arise, among others, in the
design of innovative mechanical filters (called metafilters), which are useful, e.g., in aerospace engineering,
bioengineering, and robotics <sup>5–9</sup> .
Current research is often focused on the determination and optimization of dispersion properties of elastic
waves in periodic metamaterials, as among others in so-called architected materials which can either function
as high-performance advanced phononic crystals <sup>10–15</sup> or also can host locally resonant devices (periodically or
non periodically distributed) <sup>16–21</sup> . Among others, the anti-tetrachiral topology reported in Fig. 1 is an interesting type of metamaterials with high spectral density and markedly auxetic behaviour <sup>22–28</sup> . These metamaterials
are obtained by the periodic repetition of an elementary cell, like the one reported in Fig. 1b. In order to reduce
the number of variables involved in the mechanical model, it can be convenient resorting to simplified in-plane
beam-lattice models where ligaments are modeled as elastic beams and rings as rigid bodies, as shown in Fig. 2a
with reference to the periodic cell A (also known as Wigner–Seitz cell in solid-state physics) <sup>14,25,26</sup> . In order to
investigate the dispersion properties in the framework of the Floquet–Bloch theory <sup>29,30</sup>, a periodic reciprocal
lattice in the dual space of dimensionless wave vectors k <sup>¯</sup> ∈ R <sup>2</sup> is required. The corresponding dual periodic
cell B, i.e., the Wigner–Seitz cell of the reciprocal lattice, is also known as dimensionless first Brillouin zone <sup>31</sup>,
schematically reported in Fig. 2b. By exploiting the lattice material symmetries the dimensionless first irreducible Brillouin zone B <sup>⋆</sup> is identified, highlighted in green in Fig. 2b. The frequency spectrum ω(¯ k <sup>¯</sup> ), describing
the dispersion properties, is obtained by solving a suitable generalized eigen-problem. In this way, one gets the
dimensionless angular eigenfrequency ω¯ parametrized by the wave vector k <sup>¯</sup> varying along ∂B <sup>⋆</sup> (i.e., the reduced
wave vector). In general from an operational point of view, it is necessary to discretize the reduced wave vector
and solve repeatedly the eigen-problem. In this way the frequency spectrum, composed of acoustic and optical
dispersion curves, is known only on a discrete set of points. To the authors’ knowledge an important open issue
consists in attributing each eigenfrequency ω¯ to the corresponding correct (i.e., as smooth as possible) dispersion
curve, a problem which may be called _curve_ _coloring_ . This is addressed in the present paper.
The following are the main contributions of this paper. First, curve coloring is formulated as an optimization
problem, and properties of its optimal solution are studied. Second, such an optimization problem is solved by
a greedy algorithm, showing its advantages with respect to a more computationally demanding dynamic programming algorithm. Third, smoothness properties of dispersion curves arising in elastic periodic metafilters
are proved, as such smoothness is among the assumptions of the curve coloring optimization problem proposed
1DICCA – University of Genoa, Genoa, Italy. 2INGEO – University of Chieti-Pescara, Chieti, Italy. 3AXES – IMT School
for Advanced Studies, Lucca, Italy. <sup>4</sup> ICRIOS – Bocconi University, Milan, Italy. <sup>*</sup> email: giorgio.gnecco@imtlucca.it
Figure 1. ( a ) A generic portion of an anti-tetrachiral metamaterial. ( b ) Its elementary cell.
Figure 2. ( a ) Periodic cell A of the anti-tetrachiral beam-lattice model; ( b ) dimensionless first Brillouin zone
B, first irriducible Brillouin zone B <sup>⋆</sup> and bi-triangular path ∂B <sup>⋆</sup> ; ( c ) perturbed bi-triangular path, with rounded
corners ∂B <sup>⋆</sup> ζ <sup>corresponding to the domain B⋆</sup> ζ <sup>, parametrized by the perturbation parameter ζ</sup> <sup>> 0.</sup>
<sup>⋆</sup> ζ <sup>corresponding to the domain B⋆</sup> ζ
<sup>⋆</sup> ζ <sup>, parametrized by the perturbation parameter ζ</sup> <sup>> 0.</sup>
in this paper. Fourth, the proposed greedy algorithm is applied with success to coloring dispersion curves of
elastic periodic metafilters, finding automatically their smooth and periodic labeling, which is justified by the
ground truth available in this context.
The article is organized as follows: (i) the construction of dispersion curves for periodic metafilters is detailed;
(ii) curve coloring is modeled as an optimization problem; (iii) a greedy algorithm is presented for solving it;
(iv) smoothness properties of dispersion curves are described, and related to the behavior of that algorithm;
(v) results obtained by the curve coloring algorithm are reported, referring to its application to the dispersion
curves generated by an existing physical model. The article concludes with a discussion of some possible extensions of this research.
Dispersion properties for elastic periodic metafilters
In the following, details are given about the determination of the frequency spectrum for an elastic periodic
metafilter (e.g., one with anti-tetrachiral topology <sup>25–27</sup> ), which can be described via either continuous or discrete
Lagrangian models. Let µ¯ ∈ R <sup>p</sup> denote a dimensionless vector of real design parameters (e.g., geometrical and
mechanical parameters) characterizing the metamaterial. By exploiting the Floquet–Bloch theory, the free-wave
propagation is investigated by solving the k <sup>¯</sup> -parametrized generalized eigen-problem
�µ¯, k <sup>¯</sup>
= 0,
�µ¯, k <sup>¯</sup>
−¯ωh <sup>2</sup>
- M ¯ ( ¯µ)
�ψ¯ h
- K ¯ �µ¯, k <sup>¯</sup> - −¯ωh <sup>2</sup> �µ¯, k <sup>¯</sup> - M ¯ ( ¯µ)�ψ¯ h�µ¯, k <sup>¯</sup> - = 0, (1)
h
�µ¯, k <sup>¯</sup>
where K <sup>¯</sup> �µ¯, k <sup>¯</sup> - ∈ C <sup>H×H</sup> is the positive semi-definite Hermitian pseudo-stiffness matrix and M <sup>¯</sup> ( ¯µ) ∈ R <sup>H×H</sup> the
positive definite pseudo-mass matrix. In this way, it is possible to determine the generalized eigenvalues
�h = <sup>.</sup> ω¯ h <sup>2</sup> <sup>∈</sup> <sup>R≥0 and the associated generalized eigenvectors ψ¯</sup> <sup>h</sup> <sup>∈</sup> <sup>CH (for h = 1, . . ., H ). More specifically, for</sup>
each choice of µ¯ and k <sup>¯</sup>, both the dimensionless eigenfrequencies ω¯ h and the corresponding dimensionless polarization vectors ψ <sup>¯</sup> h are obtained. By considering the reduced wave vector, i.e., k <sup>¯</sup> varying on the bi-triangular path
∂B <sup>⋆</sup>, for each choice of µ¯, it is possible to determine 2 _H_ dispersion curves ω¯ h( k <sup>¯</sup> (Ξ)), with Ξ the curvilinear
where K <sup>¯</sup>
�µ¯, k <sup>¯</sup>
coordinate varying on ∂B <sup>⋆</sup> . This is illustrated in Fig. 3a, where due to the symmetry of the curves with respect
to the axis ω¯ = 0, only the _H_ curves with ω¯ ≥ 0 are considered for the anti-tetrachiral metamaterial referred as
C0 in Ref. <sup>26</sup> . Furthermore, in Fig. 3b the dispersion surfaces related to the dimensionless first irreducible Brillouin
zone B <sup>⋆</sup> are reported.
Figure 3. Anti-tetrachiral metamaterial C0 : ( a ) frequency spectrum; ( b ) dispersion surfaces.
As a minor remark it can be observed that the frequency band structure can also be determined by solving an
ω¯ -parametrized generalized eigen-problem, in terms of auxiliary variables (γj) <sup>±1</sup> = exp (±ιk <sup>¯</sup> j), with j = 1, 2 and
ι <sup>2</sup> = −1, playing the role of Floquet multipliers and k <sup>¯</sup> j being the complex dimensionless wave number. More specifically, for each dimensionless angular frequency ω¯ ∈ R and for a given complex multiplier γα, with α = 1 ∨ 2,
the eigenvalue γβ,h ∈ C, with β = 2 ∨ 1 and α = β, as well as the eigenvector φ <sup>¯</sup> β,h ∈ C <sup>M</sup> (for h = 1, . . ., M, where
_M_ is the eigen-problem dimension) are determined. Then, the frequency spectrum k <sup>¯</sup> α( ¯ω) is finally determined
exploiting the mapping k <sup>¯</sup> β,h = −ι ln(γβ,h) <sup>32–39</sup> . Based on the obtained frequency spectra, the _relative_ _band_ _gap_
between the _h_ -th and _q_ -th (consecutive) dispersion functions ω(¯ k <sup>¯</sup> ) with k <sup>¯</sup> ∈ B <sup>⋆</sup> can be evaluated by solving the
ω-parametrized generalized eigen-problem in (1) as
k ¯min∈B⋆ <sup>ω¯</sup> <sup>q( ¯µ, ¯</sup> <sup>k</sup> <sup>) −</sup> k <sup>max</sup> ¯ ∈B⋆
k <sup>max</sup> ¯ ∈B⋆ <sup>ω¯</sup> <sup>h( ¯µ, ¯</sup> <sup>k</sup> <sup>)</sup>
�ω¯ h,q,B⋆,rel( ¯µ) = <u>�</u> <u>�</u> . (2)
k ¯min∈B⋆ <sup>ω¯</sup> <sup>q( ¯µ, ¯</sup> <sup>k</sup> <sup>) + max</sup> k ¯ ∈B⋆
<sup>max</sup> k ¯ ∈B⋆ <sup>ω¯</sup> <sup>h( ¯µ, ¯</sup> <sup>k</sup> <sup>)</sup>
<u>�</u> .
<u>1</u>
2
<u>�</u>
It is worth noting that in the case k <sup>¯</sup> ∈ B <sup>⋆</sup>, Eq. (2) describes full band gaps, while if k <sup>¯</sup> varies along a given subportion of ∂B <sup>⋆</sup>, including the origin, partial band gaps can be found. These relative band gaps can be chosen as
objective functions of suitable metamaterial optimization problems, as done, e.g., in Refs. <sup>40,41</sup> .
Curve coloring as an optimization problem
For each choice of µ¯, the considered objective function—e.g., a partial relative band gap amplitude—requires
the preliminary determination of the dispersion curves ω¯ h( k <sup>¯</sup> (Ξ)) (from now on, the dependence on µ¯ is often
omitted in the notation). This can be computationally expensive if a fine discretization grid is used for k <sup>¯</sup> on the
path of interest, because the generalized eigen-problem in Eq. (1) has to be solved for each occurrence of the
curvilinear coordinate Ξ . As highlighted in Fig. 3, such curves exhibit several crossing and veering phenomena,
which calls for their automatic coloring through the development and application of a suitable automatic method,
Figure 4. Curve coloring in the case of smooth generic curves. ( a ) Original sampled curves. ( b ) Possible
desired output.
which labels or identifies them appropriately (e.g., maximizing smoothness of the colored curves). This method
would take as input several multisets of samples of the curves (without knowing initially to which curve each
sample belongs), where each multiset corresponds to a specific value of the independent variable Ξ . Its output
would be the assignment of each sample to one curve. Figure 4a provides an illustrative example of samples
taken from generic smooth curves y = fh(x), h = 1, . . ., H with H = 10, generated as low-degree polynomials
with random coefficients without a specific reference to dispersion curves. Moreover, Fig. 4b shows a possible
desired (smooth) output of such an automatic method (in this case, based on the ground truth provided by the
data-generating process). By the way of example, the figure has been obtained by taking a large spatial sampling
frequency and by including a final linear interpolation step after curve coloring. Finding a correct labeling of the
curves can help in distinguishing crossings from veerings, being only the latter possibly associated with positive
band gaps. Based on the considerations made in this section, curve coloring is presented in the following as an
optimization problem, for simplicity referring first to the case of an infinite spatial sampling frequency, then
extending the formulation to a finite spatial sampling frequency.
It is recalled here that, for an interval [a, b] ⊂ R and a function f : [a, b] → R, the total variation Va <sup>b(f ) of</sup> <sup>_f_</sup>
over [ _a_, _b_ ] is defined as
a <sup>b(f )</sup> <sup>=.</sup> <sup>sup</sup>
Va <sup>b(f )</sup> <sup>=.</sup> <sup>sup</sup> - |f (xi+1) − f (xi)|, (3)
|f (xi+1) − f (xi)|,
P∈P
nP −1
i=0
in accordance with Ref. <sup>42</sup>, where the supremum in Eq. (3) is taken over the set of collections of points
�P = {x0, . . ., xnP } | P is a partition of [a, b] satisfying xi < xi+1 for 0 ≤ i ≤ nP - 1
�.
P =. �P = {x0, . . ., xnP } | P is a partition of [a, b] satisfying xi < xi+1 for 0 ≤ i ≤ nP - 1�. (4)
If Va <sup>b(f ) < +∞, then one says that</sup> <sup>_f_</sup> <sup>has bounded variation. In the following, for a positive integer</sup> <sup>_k_</sup> <sup>,</sup>
P C <sup>k</sup> ([a, b]) stands for the class of piecewise _k_ -times continuously differentiable functions on [ _a_, _b_ ], i.e., whose
derivatives up to the order k − 1 are continuous, whereas the derivative of order _k_ is only piecewise continuous (if
the latter derivative is also continuous, then one gets the class C <sup>k</sup> ([a, b]) ). It is well-known that, if f ∈ PC <sup>1</sup> ([a, b]),
then Va <sup>b(f ) =</sup> �ab <sup>|f ′(x)|dx . A particularly relevant case in the context of the present paper is when a function</sup>
If Va <sup>b</sup>
then Va <sup>b(f ) =</sup> �ab <sup>|f ′(x)|dx . A particularly relevant case in the context of the present paper is when a function</sup>
n=1 <sup>ln</sup> �ax <sup>δ(y −</sup> <sup>xn)dy (being δ</sup>
the Dirac distribution and all the can have jump discontinuities. If fxn=∈ g(+a, b l where ) ), theng ∈ PC <sup>1</sup> ([a, b]) and l(x) = <sup>�N</sup>
a <sup>b(f ) =</sup>
n=1 <sup>ln</sup> �ax <sup>δ(y −</sup> <sup>xn)dy (being δ</sup>
the Dirac distribution and all the can have jump discontinuities. If fxn=∈ g(+a, b l where ) ), theng ∈ PC <sup>1</sup> ([a, b]) and l(x) = <sup>�N</sup>
n=1 <sup>ln</sup>
N
n=1
|ln|.
Va <sup>b(f ) =</sup> - b |g <sup>′</sup> (x)|dx + - |ln|. (5)
a <sup>b(f ) =</sup>
- b
a
|g <sup>′</sup> (x)|dx +
The next assumption clarifies the nature of the information available on the unknown curves to be reconstructed. Further details about the assumed smoothness of such curves are given later, with reference to the
specific application to periodic metafilters.
Figure 5. Two curves intersecting at one point, with different slopes: ( a ) curve labeling preserving
differentiability at the intersection; ( b ) curve labeling not preserving differentiability at the intersection,
and associated with a higher objective value in Eq. (6) than the labeling in part ( a ) of the figure. Two curves
intersecting at one point, with the same slope: ( c ) curve labeling preserving differentiability at the intersection;
( d ) nonequivalent curve labeling preserving differentiability at the intersection, and having the same objective
value in Eq. (6) as the curve labeling in part ( c ) of the figure.
Assumption 1 For x ∈[a, b] and _H_ (unknown) functions fh ∈ PC <sup>2</sup> ([a, b]), let the multiset
F¯x = { <sup>.</sup> fh(x) | h ∈{1, 2, . . ., H}} be given, which provides all the curve observations available for that choice of _x_ .
The following assumption clarifies the nature of the admissible set of _H_ reconstructed curves.
Assumption 2 For h = 1, 2, . . ., H, let f <sup>ˆ</sup> h : [a, b] → R belong to the class PC <sup>1</sup> ([a, b]), and suppose that their first derivatives f <sup>ˆ</sup> h <sup>′ have the functional form</sup> <sup>fˆ</sup> h <sup>′</sup> <sup>= gh + lh where</sup> <sup>gh</sup> <sup>∈</sup> <sup>PC</sup> <sup>1([a, b]) and</sup>
pose that their first derivatives f <sup>ˆ</sup> h <sup>′ have the functional form</sup> <sup>fˆ</sup> h <sup>′</sup> <sup>= gh + lh where</sup> <sup>gh</sup> <sup>∈</sup> <sup>PC</sup> <sup>1([a, b]) and</sup>
elh ∈(x)F <sup>¯</sup> =x, there exists a unique index <sup>�</sup> n <sup>N</sup> =1 <sup>lh,n</sup> �ax <sup>δ(y −</sup> <sup>xh,n)dy</sup> h <sup>(being all the ¯</sup> ∈{1, 2, . . ., H <sup>xh</sup> } <sup>,</sup> for which <sup>n</sup> <sup>∈</sup> <sup>(a, b) ). Finally, assume that, for each</sup> f <sup>ˆ</sup> h¯ (x) = e (possibly repeated elements <sup>x</sup> <sup>∈[a, b]</sup> _e_ <sup>and each</sup> —which
h <sup>′ have the functional form</sup> <sup>fˆ</sup> h <sup>′</sup>
elh ∈(x)F <sup>¯</sup> =x, there exists a unique index <sup>�</sup> n <sup>N</sup> =1 <sup>lh,n</sup> �ax <sup>δ(y −</sup> <sup>xh,n)dy</sup> h <sup>(being all the ¯</sup> ∈{1, 2, . . ., H <sup>xh</sup> } <sup>,</sup> for which <sup>n</sup> <sup>∈</sup> <sup>(a, b) ). Finally, assume that, for each</sup> f <sup>ˆ</sup> h¯ (x) = e (possibly repeated elements <sup>x</sup> <sup>∈[a, b]</sup> _e_ <sup>and each</sup> —which
are obtained in correspondence of curve intersections—are denoted as different elements of F <sup>¯</sup> x).
n=1 <sup>lh,n</sup>
Based on Assumptions 1 and 2, curve coloring can be formulated as the following optimization problem.
Assumption 2 guarantees a minimal amount of smoothness for the admissible reconstructed curves (which is
expressed by the class PC <sup>1</sup> ([a, b]) ), whereas Assumption 1 guarantees that it is possible to label the curves in an
even smoother way (which is expressed by the class PC <sup>2</sup> ([a, b])).
Problem 1 Under Assumptions 1 and 2, optimal reconstructed functions f <sup>ˆ</sup> h <sup>◦ ( h = 1, . . ., H ) are obtained by</sup>
minimizing the summation of the total variations over [ _a_, _b_ ] of their first derivatives, i.e., by finding
H
h=1
a <sup>b(fˆ</sup> h <sup>′</sup>
Va <sup>b</sup>
h <sup>′).</sup>
min{ˆfh|h∈{1,2,...,H}} - Va <sup>b(fˆ</sup> h <sup>′).</sup> (6)
The following proposition motivates the formulation of the optimization problem above. The last part of
the proposition refers to the case of periodic curves, which is of interest for the application of curve coloring to
dispersion curves arising in the case of periodic metafilters.
Proposition 1 _The following holds_ :
(i) _The optimal solution to Problem_ 1 _has no jump discontinuities in the derivatives of the functions_ f <sup>ˆ</sup> h <sup>◦</sup>
(i) _The optimal solution to Problem_ 1 _has no jump discontinuities in the derivatives of the functions_ f <sup>ˆ</sup> h <sup>◦.</sup>
(ii) _If additionally the functions_ fh _intersect with different derivatives_, _then the optimal solution is unique_ ( _apart_
_from a permutation of the labels_ ) _and satisfies_ f <sup>ˆ</sup> σ( <sup>◦</sup> h) <sup>= fh</sup> <sup>_for each h_</sup> <sup>,</sup> <sup>_where_</sup> <sup>σ</sup> <sup>_is a permutation of the set_</sup>
{1, . . ., H}.
(iii) _Under the assumptions of item_ ( _ii_ ), _if the functions_ fh _are periodic with period_ b − a, _then the optimal_
_from a permutation of the labels_ ) _and satisfies_ f <sup>ˆ</sup> σ( <sup>◦</sup>
_functions_ f <sup>ˆ</sup> h <sup>◦</sup>
h <sup>◦</sup> <sup>_are also periodic with the same period_</sup> <sup>.</sup>
Proof Being the functions f <sup>ˆ</sup> h continuous, they coincide (apart from a possible relabeling) with the functions
fh on any interval I = [˜a, b <sup>˜</sup> ] ⊆[a, b] on which they do not intersect. The case of an interval I in which there is
a single intersection at a point x0 ∈ int(I) between two functions f1, f2 ∈ PC <sup>2</sup> (I), and the two functions intersect
with different derivatives at the intersection point, is illustrated in Fig. 5a,b. It is evident that there are only four
possible ways of labeling the two curves in that interval (two ways are reported in parts (a) and (b) of the figure,
the other two ways are obtained by exchanging the respective colors). In two cases (corresponding to Fig. 5a) there
are no jump discontinuities in the first derivatives of the functions f <sup>ˆ</sup> 1 and f <sup>ˆ</sup> 2, and one gets
V <sup>(1)</sup> = <sup>.</sup> <sup><u>�</u></sup> h <sup>H</sup> =1 <sup>V ˜</sup> a˜ <sup>b</sup> <u>�fˆh</u> <sup>′</sup> <u>�</u> = <u>�a˜b˜</u> <u>�|f1</u> <sup>′(x)| + |f ′</sup> 2 <sup>(x)|</sup> <u>�dx, whereas in the other two cases (corresponding to Fig. 5b) there</u>
a˜
<u>�</u> b˜
<u>�|f1</u> <sup>′</sup>
1 <sup>′(x)| + |f ′</sup> 2 <sup>(x)|</sup> <u>�dx, whereas in the other two cases (corresponding to Fig. 5b) there</u>
h <sup>H</sup> =1 <sup>V ˜</sup> a˜ <sup>b</sup>
a˜
<u>�fˆh</u> <sup>′</sup>
h
=
<u>�</u>
are jump discontinuities in the first derivatives of the functions |f1 <sup>′(x)| + |f ′</sup> 2 <sup>(x)|</sup> |f2 <sup>′(x0 + ε) −</sup> <sup>f</sup> 1 <sup>′(x0 −</sup> <sup>ε)| + |</sup> f <sup>ˆ</sup> 1 and <sup>f</sup> 1 <sup>′(x0 +</sup> f <sup>ˆ</sup> 2, and one gets <sup>ε) −</sup> <sup>f</sup> 2 <sup>′(x0 −</sup> V <sup>ε)(2|)</sup> => <sup>.</sup> V <sup>�(</sup> h <sup>H1</sup> = <sup>)</sup>
- b˜
are jump discontinuities in the first derivatives of the functions a˜ |f1 <sup>′(x)| + |f ′</sup> 2 <sup>(x)|</sup> |f2 <sup>′(x0 + ε) −</sup> <sup>f</sup> 1 <sup>′(x0 −</sup> <sup>ε)| + |</sup> f <sup>ˆ</sup> 1 and <sup>f</sup> 1 <sup>′(x0 +</sup> f <sup>ˆ</sup> 2, and one gets <sup>ε) −</sup> <sup>f</sup> 2 <sup>′(x0 −</sup> V <sup>ε)(2|)</sup> => <sup>.</sup> V <sup>�(</sup> h <sup>H1</sup> = <sup>)</sup> . So, the 1 <sup>V ˜</sup> a˜ <sup>b</sup> �fˆh <sup>′</sup> - =
- b˜ - -
two (equivalent) cases with no jump discontinuities in the first derivatives have lower objective value. However, dx + limε→0+ <sup>�</sup>
h=1 <sup>V ˜</sup> a˜ <sup>b</sup>
<sup>H</sup>
a˜
�fˆh <sup>′</sup>
h
a˜ |f1 <sup>′(x)| + |f ′</sup> 2 <sup>(x)|</sup> |f2 <sup>′(x0 + ε) −</sup> <sup>f</sup> 1 <sup>′(x0 −</sup> <sup>ε)| + |f</sup> 1 <sup>′(x0 + ε) −</sup> <sup>f</sup> 2 <sup>′(x0 −</sup> <sup>ε)|</sup> - V <sup>(1)</sup> . So, the
- b˜ - -
two (equivalent) cases with no jump discontinuities in the first derivatives have lower objective value. However, dx + limε→0+ <sup>�</sup>
if f1 <sup>′(x0) = f</sup> 2 <sup>′(x0), then all the possible (even nonequivalent) labelings of the curves achieve the same objective</sup>
�|f1 <sup>′</sup>
1 <sup>′(x)| + |f ′</sup> 2 <sup>(x)|</sup> �dx + limε→0+ <sup>�</sup>
|f2 <sup>′</sup>
if f1 <sup>′(x0) = f</sup> 2 <sup>′(x0), then all the possible (even nonequivalent) labelings of the curves achieve the same objective</sup>
value when the domain is restricted to I . So, in this case it is not possible to achieve a unique optimal reconstruction of the set of curves, even apart from a permutation of the labels, as illustrated in Fig. 5c,d. The case of an
interval containing two or more intersection points and/or the simultaneous intersection of three or more curves
is analysed analogously. Concluding, since the case f <sup>ˆ</sup> h = fh for each _h_ provides an admissible labeling of the set of
curves, one gets items (i) and (ii) under the respective hypotheses provided in the statement. Finally, item (iii) is
an immediate consequence of item (ii) under the additional periodicity assumption on the functions fh.
From a numerical point of view, it emerges that F <sup>¯</sup> x is typically observed only on a fine enough grid of points
{xs = a + (b − a)s/S | s = 0, 1, . . ., S = nP}, obtained under a finite spatial sampling frequency S/(b − a) (or
equivalently, a finite stepsize (b − a)/S ). This motivates replacing the generic partition _P_ with this {xs} in the
definition (3) of total variation and the first derivative f <sup>ˆ</sup> h <sup>′ with its difference quotient, i.e., the total variation</sup>
h <sup>′ with its difference quotient, i.e., the total variation</sup>
Va <sup>b</sup>
�fˆh <sup>′</sup> - over [ _a_, _b_ ] is replaced by its approximation
�����
S−2
i=0
<u>fˆh(xi+2) −</u> <u>fˆh(xi+1)</u>
xi+2 − xi+1
V¯ a <sup>b</sup> �fˆh <sup>′</sup> - =. - - (7)
<u>fˆh(xi+1) −</u> <u>fˆh(xi)</u>
xi+1 − xi
a
�fˆh <sup>′</sup>
h
- =.
�����.
Then, one gets the following approximate version of Problem 1.
Problem 2 Under Assumptions 1 and 2, optimal reconstructed functions f <sup>ˆ</sup> h <sup>◦ ( h = 1, . . ., H ) are obtained by</sup>
minimizing the summation of the approximations (7), i.e., by finding
h=1
H
h=1
�����
�.
.
a <sup>b(fˆ</sup> h <sup>′</sup>
V¯ a <sup>b</sup>
h <sup>′) =</sup>
min{ˆfh|h∈{1,2,...,H}} - V¯ a <sup>b(fˆ</sup> h <sup>′) =</sup> - - xi+2 − xi+1 - xi+1 − xi �. (8)
S−2
i=0
- H
<u>fˆh(xi+2) −</u> <u>fˆh(xi+1)</u>
<u>fˆh(xi+1) −</u> <u>fˆh(xi)</u>
xi+1 − xi
�����
xi+2 − xi+1
The motivation for Problem 2 is that, under Assumptions 1 and 2 and slight additional smoothness (e.g., if
the interval [ _a_, _b_ ] can be partitioned into a finite set of subintervals Ii, and f <sup>ˆ</sup> h ∈ C <sup>2</sup> (Ii), for each _h_ and _i_ ), for
each admissible set of functions f <sup>ˆ</sup> h ( h = 1, 2, . . ., H ), the approximation V <sup>¯</sup> a <sup>b</sup> �fˆh <sup>′</sup> - tends to the total variation Va <sup>b</sup> �fˆh <sup>′</sup>
each admissible set of functions f <sup>ˆ</sup> h ( h = 1, 2, . . ., H ), the approximation V <sup>¯</sup> a <sup>b</sup> �fˆh <sup>′</sup> - tends to the total variation Va <sup>b</sup> �fˆh <sup>′</sup>
when S →+∞.
From a general point of view, Problem 2 can be solved by using Bellman’s equations of dynamic
programming <sup>43</sup>, by considering a dynamic optimization problem in which the state of the dynamical system at
the stage i = 0, . . ., S − 2 is provided by an arbitrary matching between the elements of the multisets F <sup>¯</sup> xi and F <sup>¯</sup> xi+1
h
a
�fˆh <sup>′</sup>
h
<sup>′</sup> - tends to the total variation Va <sup>b</sup>
a
�fˆh <sup>′</sup>
(from which one is able to compute the _H_ -tuple of difference quotients
<u>fˆh(xi+1)−fˆh(xi)</u>
(from which one is able to compute the _H_ -tuple of difference quotients <u>fˆh(xxi+i+11)−−fxˆhi(xi) ), the control at the same</u>
stage is provided by an arbitrary assignment of the elements of the multiset F <sup>¯</sup> xi+2 to the functions f <sup>ˆ</sup> h, and the
<u>fˆh(xi+2)−2fˆh(xi+1)+fˆh(xi)</u>
<u>b−a</u>
S
����
���� . Nevertheless, for this
h=1
���� = �H
S
h
cost-per-stage is <sup>�H</sup>
<u>fˆh(xi+1)−fˆh(xi)</u>
xi+1−xi
h=1
<u>fˆh(xi+2)−fˆh(xi+1)</u>
xi+2−xi+1
����
xi+2−xi+1
<u>b−a</u>
formulation, the so-called backward phase of dynamic programming (which deals with the construction of
suitable functions of the state, called optimal cost-to-go functions, and is more computationally demanding than
its forward phase) has computational complexity of order O ((H!) <sup>2</sup> S), since both the numbers of different states
and of different controls are equal to _H_ !. This is computationally intractable even for small _H_ (e.g., for H = 7 one
gets (H!) <sup>2</sup> = 25401600 ). For this reason, in the following section a greedy algorithm (i.e., based only on a forward
phase) is considered, which is shown to produce the same output of the dynamic programming algorithm in
examples of technological interest, but with a much smaller computational complexity.
A greedy algorithm for curve coloring
The following greedy algorithm (Algorithm 1) is a generalization of the one proposed in Ref. <sup>44</sup> . The algorithm
is based on a first-order finite difference approximation of each curve and on a set of Euclidean bipartite matching subproblems, which are are solved exactly. A backward scheme is used for the first-order finite difference
approximation since it relies on information that, at each iteration of the algorithm, is obtained from samples that
have been already attributed to each specific curve. The reason for which an Euclidean bipartite matching (sub)
problem is solved at each iteration of the algorithm is that the cost function of such a problem is proportional to
the summation of the variations of the slopes—from the current value of the abscissa to the successive one—of
the curves colored by the algorithm up to that current value of the abscissa. So, this cost function is proportional
to one term of the outer summation which appears in the right-most expression (8) of the objective function of
Problem 2. Details about the Euclidean bipartite matching problem are deferred to the Supplementary material. It is worth noting that the Euclidean bipartite matching problem has computational complexity of order
O (H <sup>2.5</sup> log(H)), as detailed in Ref. <sup>45</sup> . Hence, it follows that Algorithm 1 has computational complexity of order
O (H <sup>2.5</sup> log(H)S), which is smaller, e.g., than O (H <sup>3</sup> S) . Specifically, it is smaller than the computational complex
ity of the dynamic programming algorithm described in the previous section (in the Supplementary material,
the two algorithms are compared for a small number _H_ of curves, showing that they have the same behavior).
To clarify how Algorithm 1 works, in Fig. 6 its first two iterations are illustrated. By construction, Algorithm 1
A greedy algorithm for curve coloring
The following greedy algorithm (Algorithm 1) is a generalization of the one proposed in Ref. <sup>44</sup> . The algorithm
is based on a first-order finite difference approximation of each curve and on a set of Euclidean bipartite matching subproblems, which are are solved exactly. A backward scheme is used for the first-order finite difference
approximation since it relies on information that, at each iteration of the algorithm, is obtained from samples that
have been already attributed to each specific curve. The reason for which an Euclidean bipartite matching (sub)
problem is solved at each iteration of the algorithm is that the cost function of such a problem is proportional to
the summation of the variations of the slopes—from the current value of the abscissa to the successive one—of
the curves colored by the algorithm up to that current value of the abscissa. So, this cost function is proportional
to one term of the outer summation which appears in the right-most expression (8) of the objective function of
Problem 2. Details about the Euclidean bipartite matching problem are deferred to the Supplementary material. It is worth noting that the Euclidean bipartite matching problem has computational complexity of order
O (H <sup>2.5</sup> log(H)), as detailed in Ref. <sup>45</sup> . Hence, it follows that Algorithm 1 has computational complexity of order
O (H <sup>2.5</sup> log(H)S), which is smaller, e.g., than O (H <sup>3</sup> S) . Specifically, it is smaller than the computational complex
(a) (b)
points belonging to F0
points belonging to F1
points belonging to F2
points belonging to G1
points belonging to G2
predictions
matching
Figure 6. Algorithm 1: (i) First iteration; (ii) Second iteration.
aims at identifying smooth curves, changing the least possible the slopes of the reconstructed curves from one
step to the successive one (this puts it in relation with Problems 1 and 2). For instance, in the case of the example
reported in parts (a) and (b) of Fig. 5, Algorithm 1 produces as output the labeling reported in part (a) of the
figure (which is associated with the unique optimal solution of each Euclidean bipartite matching subproblem),
whereas an alternative simple method, based on the lexicographic order of the curves, produces as output the
labeling reported in part (b) of the figure. In the case of the example reported in parts (c) and (d) of Fig. 5, it
can be seen that, of the two possible equivalent labelings, Algorithm 1 produces as output the one reported in
part (d) of the figure, because of the specific form of its prediction step, based on a backward first-order finite
difference approximation of each derivative.
<u>Algorithm 1: Curve coloring</u>
1: (Initialization) The curves are evaluated on a regular grid of _S_ + 1 values for the curvilinear coordinate _x_ on the path of interest (e.g., Ξ on
∂B <sup>⋆</sup> )
For _s_ = 0;1,…, _S_ - 1:
2: (Prediction step) Scanning the curves from the left to the right up to the value _xs_ = _a_ + ( _b_ - _a_ ) _s_ / _S_ of the curvilinear coordinate _x_ on the grid,
for each curve one gets a prediction of its point corresponding to _xs_ + 1, based on a backward first-order finite difference approximation of the
curve (the slope of this approximation is equal to 0 for _s_ = 0; otherwise, the approximation passes through the points already attributed to the
curve in correspondence of _s_ and _s_ - 1);
3: (Correction step) The (multi)set _Gs_ + 1 of predicted points is compared with the (multi)set _Fs_ + 1 ˙=Fxs+1 of observed points on the curves,
then an Euclidean bipartite matching problem is solved to attribute each observed point to one of the curves, and the corresponding first<u>order finite diference approximation is updatedf</u>
_Remark 1_ In principle, derivatives could be used in Algorithm 1 instead of difference quotients, but typically
at a higher computational cost. For instance, Eq. (10) in the next Remark 4 reports a possible expression of the
derivative of each nonzero angular eigenfrequency ω¯ h with respect to Ξ, which is valid, under mild conditions, in
the case of the application of the algorithm to metamaterial dispersion curves. Nevertheless, such an expression
requires the determination of generalized eigenvectors, whose computational cost increases with their dimension. The Supplementary material shows that the performance of Algorithm 1 is similar to the one would obtain
by replacing difference quotients with derivatives.
_Remark 2_ In the Supplementary material, Algorithm 1 is also compared with other two algorithms proposed in
the literature related to dispersion curve coloring, i.e., in Refs. <sup>46,47</sup> . Although their outputs are generally similar
to the one of Algorithm 1, the main advantages of Algorithm 1 are that it can be directly related to the curve
coloring optimization problems formulated in the present article (see the next section for a discussion on this
issue), and that it does not rely on the computation of generalized eigenvectors, but only of that of generalized
eigenvalues. This can be particularly important in high-dimensional problems, characterized by a large number
of components of the generalized eigenvectors.
Smoothness properties of dispersion curves and their relationship with Algorithm 1
In view of the application of Algorithm 1 to the coloring of dispersion curves arising in periodic metafilters, it is
important to highlight that in this case one requires a smooth labeling like the one in Fig. 5a, which is produced
by Algorithm 1, rather than a non-smooth labeling like the one in Fig. 5b. The reason is that smooth dispersion
curves exist under mild conditions, as stated in the next proposition. It is recalled that a nonempty connected
open subset of the complex plane is called generically region.
Proposition 2 _The following holds_ :
(i) _Let the positive semi_ - _definite Hermitian matrix_ K <sup>¯</sup> �µ¯, k <sup>¯</sup>
- _be a continuously differentiable function of the_
_dimensionless wave vector_ k <sup>¯</sup> . _If_ k <sup>¯</sup> (Ξ) _is a continuously differentiable function of the curvilinear coordinate_
Ξ _either on the path_ ∂B <sup>⋆</sup> _or on its portion_, _then it is possible to label each generalized eigenvalue_ ω¯ h <sup>2(</sup> <sup>k</sup> <sup>¯</sup> <sup>(Ξ))</sup>
_in such a way that it is a continuously differentiable function of_ Ξ.
(ii) _Let every element of the positive semi_ - _definite Hermitian matrix_ K <sup>¯</sup>
�µ¯, k <sup>¯</sup> - _be a holomorphic function of the_
_dimensionless wave vector_ k <sup>¯</sup> . _If each component of_ k <sup>¯</sup> (Ξ) _is a holomorphic function of the curvilinear coor-_
_dinate_ Ξ _on a region_ �1 _of the complex plane containing either the path_ ∂B <sup>⋆</sup> _or its portion_, _then it is pos-_
_sible to label each generalized eigenvalue_ ω¯ h <sup>2(</sup> <sup>k</sup> <sup>¯</sup> <sup>(Ξ))</sup> <sup>_and every component of each generalized eigenvector_</sup>
ψ¯ h( k ¯ (Ξ)) _in such a way that they are holomorphic functions of_ Ξ _on a region_ �2 ⊆ �1.
Proof By applying the linear mapping ψ <sup>¯</sup> h �→ M <sup>¯</sup> <sup>1/2 ¯</sup> ψ h to the generalized eigenvectors ψ <sup>¯</sup> h of the generalized
eigen-problem reported in Eq. (1), it turns out that such problem can be reduced to a standard eigen-problem,
governed by the positive semi-definite Hermitian matrix
- =. M ¯ −1/2( ¯µ) ¯ K �µ¯, k <sup>¯</sup> (Ξ)
�µ¯, k <sup>¯</sup> (Ξ)
- M ¯ <sup>−1/2</sup> ( ¯µ),
K �µ¯, k <sup>¯</sup> (Ξ)� =. M ¯ −1/2( ¯µ) ¯ K �µ¯, k <sup>¯</sup> (Ξ)� M ¯ <sup>−1/2</sup> ( ¯µ), (9)
�µ¯, k <sup>¯</sup> (Ξ)�, M <sup>¯</sup> ( ¯µ)) . Then, item (i)
�µ¯, k <sup>¯</sup> (Ξ)
which has the same eigenvalues as the (generalized) eigenvalues of the pair ( K <sup>¯</sup>
�µ¯, k <sup>¯</sup> (Ξ)
follows from the application to K
- of Rellich’s perturbation theorem, stated for the case of continuously
differentiable matrices <sup>48</sup> . Similarly, item (ii) follows from the application to K �µ¯, k <sup>¯</sup> (Ξ)� of Rellich’s perturbation
theorem, stated for the case of matrices with holomorphic elements <sup>49</sup> .
differentiable matrices <sup>48</sup> . Similarly, item (ii) follows from the application to K
�µ¯, k <sup>¯</sup> (Ξ)
_Remark 3_ Proposition 2(ii) holds under stronger assumptions than Proposition 2(i). However, it provides
smoothness not only for the generalized eigenvalues, but also for the generalized eigenvectors. Moreover, it
guarantees a higher degree of smoothness than Proposition 2(i). Without the assumptions of Proposition 2(ii),
it is easy to construct cases of (generalized) eigen-problems for which the (generalized) eigenvectors are not
continuous, even when both the two matrices of the problem and the (generalized) eigenvalues are infinitely
differentiable <sup>48</sup> .
_Remark 4_ By taking k <sup>¯</sup> = k <sup>¯</sup> (Ξ), making the assumptions of Proposition 2(ii), differentiating Eq. (1) as in <sup>40,50–52</sup>,
and taking into account that M <sup>¯</sup> <sup>′</sup> = 0, it turns out that the derivative ω¯ h <sup>′</sup> <sup>of each nonzero angular eigenfrequency</sup>
ω¯ h with respect to Ξ has the expression
=
⋆h <sup>K</sup> <sup>¯</sup> <sup>′ ¯ψ</sup> <u>h</u>
,
2 ¯ωh
ω¯ h <sup>′</sup> <sup>=</sup> <u>⋆</u> =, (10)
h <sup>′</sup> <sup>=</sup>
<u>ψ¯</u> ⋆h <sup>K</sup> <sup>¯</sup> <sup>′ ¯ψ</sup> <u>h</u>
2 ¯ωhψ <sup>¯</sup> <u>⋆h</u> <sup>M</sup> <sup>¯</sup> <sup>¯ψ</sup> h
<u>ψ¯</u>
<u>ψ¯</u>
where ψ <sup>¯</sup> ⋆h <sup>denotes the complex conjugate transpose of the generalized eigenvector ψ¯</sup> h <sup>, and the additional nor-</sup>
malization ψ <sup>¯</sup> ⋆h <sup>M</sup> <sup>¯</sup> <sup>¯ψ</sup> h <sup>= 1 has been made. A similar result holds for the derivative �′</sup> h <sup>=</sup> <sup>ψ¯</sup> ⋆h <sup>K</sup> <sup>¯</sup> <sup>′ ¯ψ</sup> h <sup>of each general-</sup>
where ψ <sup>¯</sup>
⋆h <sup>M</sup> <sup>¯</sup> <sup>¯ψ</sup> h <sup>= 1 has been made. A similar result holds for the derivative �′</sup>
malization ψ <sup>¯</sup> ⋆h <sup>M</sup> <sup>¯</sup> <sup>¯ψ</sup> h <sup>= 1 has been made. A similar result holds for the derivative �′</sup> h <sup>=</sup> <sup>ψ¯</sup> ⋆h <sup>K</sup> <sup>¯</sup> <sup>′ ¯ψ</sup> h <sup>of each general-</sup>
ized eigenvalue �h = ω¯ h <sup>2 with respect to Ξ . It follows from Eq. (10) that the curve labeling reported in Fig. 5a</sup>
<sup>′</sup> h <sup>=</sup> <sup>ψ¯</sup>
ized eigenvalue �h = ω¯ h <sup>2 with respect to Ξ . It follows from Eq. (10) that the curve labeling reported in Fig. 5a</sup>
is compatible with the continuity of the generalized eigenvectors ψ <sup>¯</sup> h (as it produces continuously differentiable
nonzero angular eigenfrequencies ω¯ h ), whereas the alternative curve labeling reported in Fig. 5b is not compatible with it. Since only two non-equivalent labelings are possible in the particular case shown in Fig. 5a,b, one
can conclude that the continuous differentiability of the generalized eigenvalues is equivalent to continuity of the
generalized eigenvectors in that situation. This comment can be extended to other situations (e.g., to the case of
the simultaneous intersection of three or more dispersion curves, with a different derivative for each function).
However, it cannot be extended to the case in which two curves intersect with the same derivative at the intersection point. In this situation, still under the assumptions of Proposition 2(ii), a correct labeling would be obtained
as the only one that preserves the continuity of the generalized eigenvectors (at the additional computational
cost of determining the generalized eigenvectors, instead of determining only the generalized eigenvalues).
_Remark 5_ It is worth highlighting that, in the case of an elastic periodic metamaterial, ω¯ h <sup>′</sup> <sup>represents the group</sup>
velocity, i.e., the energy velocity, of elastic waves <sup>50–52</sup> . Hence, one expects the dispersion curves to be Lipschitz
continuous. This was proved in Ref. <sup>53</sup> for the model of periodic metamaterial considered therein.
Concluding, the behavior of Algorithm 1 motivates its application to dispersion curve coloring in the case
of elastic periodic metafilters, when the angular eigenfrequencies can be expressed as smooth functions of the
curvilinear coordinate Ξ (see Proposition 2 and Remark 4), and the curves intersect with different derivatives
at their intersection points (which is a quite common situation in applications). For instance, in the situation
described in parts (a) and (b) of Fig. 5, the algorithm is guaranteed to identify these smooth dispersion curves
correctly. Furthermore, its output is in agreement also with Proposition 1(i).
It is worth noting that the assumptions of either Proposition 2(i) or Proposition 2(ii) are quite common in
models of elastic periodic metafilters. For instance, such models are in general characterized by a pseudo-stiffness
matrix K <sup>¯</sup> �µ¯, k <sup>¯</sup> - ∈ C <sup>H×H</sup> whose elements are holomorphic and single-valued functions of k <sup>¯</sup>, where single-val
matrix K <sup>¯</sup> �µ¯, k <sup>¯</sup> - ∈ C <sup>H×H</sup> whose elements are holomorphic and single-valued functions of k <sup>¯</sup>, where single-val
uedness is also an important property, since it implies periodicity of the dispersion curves on every closed path.
Nevertheless, the assumptions of either Proposition 2(i) or Proposition 2(ii) may not hold in the case of the
bi-triangular path reported in Fig. 2b, because that path is not a continuously differentiable function of the
curvilinear coordinate Ξ (in this case, indeed, one can see from Fig. 3 that the functions ω¯ h are usually not continuously differentiable in correspondence of the turnaround points of the path ∂B <sup>⋆</sup> ). Another issue has to do
with the fact that in the case of Fig. 3, some curves overlap over a whole interval, which prevents the application
of Proposition 1(ii). As shown by the numerical results reported in the next section, however, both issues can be
solved by considering a slight perturbation ∂B <sup>⋆</sup> ζ <sup>(with rounded corners) of the bi-triangular path, which is shown</sup>
�µ¯, k <sup>¯</sup>
solved by considering a slight perturbation ∂B <sup>⋆</sup> ζ <sup>(with rounded corners) of the bi-triangular path, which is shown</sup>
later in Fig. 2c. The perturbed path is constructed by joining 6 segments and 6 circular arcs (2 with the same
center). The parameter ζ - 0 represents both the distance of each segment from the corresponding one in the
original path, and the radius of each circumference. It is worth mentioning that, for the beam-lattice metamaterial class of models considered, the assumptions of Proposition 2(i) hold for the perturbed path (so the nonzero
dispersion curves are continuously differentiable), whereas the assumptions of Proposition 2(ii) hold for each
portion of the perturbed path (e.g., the segments, the circular arcs) that can be represented as the graph of a
holomorphic function. Hence, Assumption 1 holds for all the nonzero dispersion curves (i.e., it may not hold
only for dispersion curves that are equal to 0 locally). It is also worth mentioning that Remark 4 suggests, as an
alternative, to apply Algorithm 1 not directly to the dispersion curves, but to the generalized eigenvalue curves
ω¯ h <sup>2(</sup> <sup>k</sup> <sup>¯</sup> <sup>(Ξ)), then to transfer the resulting labels from the reconstructed generalized eigenvalue curves to the cor-</sup>
responding dispersion curves.
ω¯ h <sup>2</sup>
Finally, in the Supplementary material, an alternative use of Algorithm 1 (i.e., its application to generalized
eigenvector curves instead of dispersion curves) is briefly outlined, showing that the original application is
preferable according to various points of view.
Results
This section is devoted to the curve coloring of frequency spectra ω(¯ k <sup>¯</sup> ) corresponding to the beam-lattice metamaterial referred as C0 in Ref. <sup>26</sup>, by exploiting the proposed Algorithm 1. Note that this algorithm can be successfully used for the curve coloring of generic elastic architectured metamaterials described by either continuous or discrete Lagrangian models. In order to better highlight the performance of Algorithm 1, its results are
compared with the corresponding ones obtained by the alternative simple method, based on the lexicographic
order of the dispersion curves. For the sake of convenience, the stepsize has been chosen large enough to be able
to discriminate between crossings (true intersections) and veerings (no intersections). More precisely, the stepsize
has been chosen to be equal to π/100, which corresponds to S = 100 in Fig. 7 (the robustness of the numerical
results with respect to the choice of the stepsize is investigated in the Supplementary material). Furthermore,
for the cases examined, the same results have been also obtained by applying Algorithm 1 to the generalized
eigenvalue curves, then transferring the labels to the corresponding dispersion curves.
Figure 7a shows the set of dispersion curves reconstructed by the simple method, on the path Ξ0-Ξ1 of Fig. 2b.
It is evident that in points P1, P2, P3 some branches show loss of differentiability. Moreover, the Fig. 7b highlights
the loss of continuity of the magnitude components | ψ <sup>¯</sup> 1 <sup>(h)| corresponding to the generalized eigenvector curves.</sup>
the loss of continuity of the magnitude components | ψ <sup>¯</sup> 1 <sup>(h)| corresponding to the generalized eigenvector curves.</sup>
The generalized eigenvectors have been normalized to have unit norm. Similar results are obtained for the other
magnitude components of the generalized eigenvectors. It follows that the curve coloring obtained via the simple
method does not provide smooth curves as in Proposition 2 and, therefore, cannot be a valid tool for the correct
labeling of dispersion curves. On the other hand, Fig. 8a shows the set of dispersion curves reconstructed by
Algorithm 1, on the path Ξ0-Ξ1 of Fig. 2b. In this case, as expected, no loss of differentiability of the reconstructed
curves is observed as it emerges by considering points P1, P2, P3 . Figure 8b shows the associated labeling of the
magnitude components | ψ <sup>¯</sup> 1 <sup>(h)| corresponding to the generalized eigenvectors. The figure highlights the continuity</sup>
magnitude components | ψ <sup>¯</sup> 1 <sup>(h)| corresponding to the generalized eigenvectors. The figure highlights the continuity</sup>
of such curves. Differently from the previous case, the obtained curve coloring is in accordance with the smooth
- a holomorphic function
ness provided by Proposition 2(ii). Indeed, being every element of the matrix K <sup>¯</sup>
�µ¯, k <sup>¯</sup>
of k <sup>¯</sup>, and being each component of k <sup>¯</sup> (Ξ) a holomorphic function of Ξ, it turns out that it is possible to label the
nonzero dispersion curves and the generalized eigenvalues in such a way that they are holomorphic functions
of Ξ . Finally, Fig. 9a shows the results obtained by Algorithm 1 on the perturbed bi-triangular path ∂B <sup>⋆</sup> ζ <sup>, which</sup>
of Ξ . Finally, Fig. 9a shows the results obtained by Algorithm 1 on the perturbed bi-triangular path ∂B <sup>⋆</sup> ζ <sup>, which</sup>
is shown in Fig. 2c. Figure 9b illustrates a zoomed view of the dispersion curves, in the gray shaded area reported
in part (a) of the figure. Then, Fig. 9c highlights the smoothness of the magnitude components | ψ <sup>¯</sup> 1 <sup>(h)| correspond-</sup>
in part (a) of the figure. Then, Fig. 9c highlights the smoothness of the magnitude components | ψ <sup>¯</sup> 1 <sup>(h)| correspond-</sup>
ing to the generalized eigenvector curves, labeled in accordance with the results reported in part (a) of the figure.
It is evident from Fig. 9 that: the perturbation of the path makes the dispersion curves smoother with respect to
Fig. 3a (which are evaluated on the original bi-triangular path ∂B <sup>⋆</sup> ) and separates curves that in Fig. 3a overlap
over a whole interval; moreover, in this case, Algorithm 1 reconstructs smooth and periodic curves, as expected.
It is evident that Algorithm 1 can be effectively used for the curve coloring of dispersion spectra. To conclude,
Figure 7. ( a ) Dispersion curve coloring obtained by the alternative simple method. ( b ) Loss of continuity of the
magnitude components | ψ <sup>¯</sup> 1 <sup>(h)| corresponding to the generalized eigenvector curves, labeled in accordance with</sup>
the results reported in part ( a ) of the figure.
Figure 8. ( a ) Dispersion curve coloring obtained by Algorithm 1. ( b ) Continuity of the magnitude components
| ψ <sup>¯</sup> 1 <sup>(h)| corresponding to the generalized eigenvector curves, labeled in accordance with the results reported in</sup>
part ( a ) of the figure.
it has to be remarked that, when the periodic dispersion surfaces are continuous functions of the dimensionless
wave vector k <sup>¯</sup> on the dimensionless first irreducible Brillouin zone B <sup>⋆</sup> (which occurs under mild conditions <sup>54</sup>,
which are satisfied in the present context for the case of either item (i) or (ii) of Proposition 2), then they are also
uniformly continuous on any compact set containing B <sup>⋆</sup> . This guarantees that, for any ε - 0, it is possible to
choose the value of the perturbation parameter ζ in such a way that the global maximum/minimum of each
Figure 9. ( a ) Dispersion curve coloring obtained by Algorithm 1, in the case of the perturbed bi-triangular
path; ( b ) zoomed view of the gray shaded area in part ( a ) of the figure; ( c ) magnitude components | ψ <sup>¯</sup> 1 <sup>(h)| of the</sup>
generalized eigenvector curves corresponding to the zoomed view shown in part ( b ) of the figure.
dispersion curve moves at most by ε as a consequence of the perturbation, guaranteeing that each computed
absolute band gap is perturbed at most by 2ε in absolute value. Analogously, perturbation bounds can be found
for computed relative band gaps.
Conclusion and future developments
In this paper, curve coloring has been formalized as an optimization problem, and properties of its optimal solution have been proved. Then, a greedy algorithm has been considered for its numerical resolution. The relationship of the algorithm with the proposed curve coloring optimization problem and its approximate version has
been discussed, by finding an agreement between theoretical properties of the optimal solution to such problem
and the solution found by the algorithm. The algorithm itself has been motivated by the existence of a smooth
labeling of the generalized eigenvalue curves, which is among the assumptions of the proposed curve coloring
optimization problem. Such smoothness has been theoretically investigated in the context of dispersion curves
arising in elastic periodic metafilters. Finally, the algorithm has been successfully applied for the coloring of such
dispersion curves. Following the same arguments provided here, it can be proved that the proposed algorithm
can be successfully exploited for the curve coloring of periodic materials with generic topology described by
discrete Lagrangian or discretized continuous models, provided that the wave propagation is studied via an
eigen-problem satisfying the properties required by the Rellich’s perturbation theorem, and that the dispersion
curves intersect with different derivatives at their intersection points. More specifically, under the stated conditions, it can be observed that the proposed curve coloring algorithm can be successfully used to identify correctly
the branches of the frequency band structures in linear elastic, piezoelectric, magneto-electroelastic materials,
among others, as long as dissipative phenomena do not occur. Compared with other algorithms proposed in
the literature <sup>46,47</sup>, the main advantages of the proposed algorithm are that it can be directly related to the curve
coloring optimization problems formulated in the present article, and that it does not rely on the computation
of generalized eigenvectors, but only of that of generalized eigenvalues.
In the following, some possible future directions of the present research are discussed. First, by possibly making additional assumptions, the relationship between Problems 1 and 2 could be further investigated. Furthermore, it is worth mentioning that Proposition 2 does not easily extend to the two-dimensional case (i.e., to the
case of dispersion surfaces, for what concerns the application to periodic metafilters) because it is well-known that
Rellich’s perturbation theorem holds only for the one-dimensional case, i.e., for eigenvalues expressed in terms
of a single scalar variable <sup>48</sup> . Moreover, that theorem cannot be applied when the angular eigenfrequencies are
complex (i.e., in the case of periodic metafilters with dissipation). Indeed, there exist several theoretical examples
in the literature in which the generalized eigenvalues are not smooth functions of a parameter, even when the
two matrices that appear in the generalized eigen-problem are smooth functions of that parameter (see, e.g., <sup>55</sup> ).
However, dispersion curves/surfaces obtained for several models of metamaterials are quite smooth, even in the
presence of dissipation (see, e.g., <sup>56</sup> ), so a suitable variation of Rellich’s perturbation theorem may hold for these
cases. On the other hand, an additional extension concerns the possibility of modifying Algorithm 1 by adopting
in it a second-order finite difference approximation of the reconstructed curves instead of a first-order finite difference approximation. In this way, in the situation described in parts (c) and (d) of Fig. 5, the modified algorithm
is expected to produce the labeling illustrated by part (c) of the figure. This would correspond to replacing first
derivatives with second derivatives in the objectives of Problems 1 and 2. A further enhancement regards the
possible improvement of the dynamic programming algorithm discussed in the present paper, by taking into
account additional properties of the dispersion curves, such as Lipschitz continuity, which was proved in Ref. <sup>41</sup>
for certain models of periodic metafilters. However, for applications of technological interest, estimates of the
Lipschitz constants would be needed. Another possible extension regards the combination of Algorithm 1 with
machine learning methods, e.g., with the aim of achieving an adaptive sampling of the set of dispersion curves,
or of automatically determining a stepsize able to distinguish crossings from veerings (taking as training set a
collection of labeled images representing sets of sampled curves). Finally, the algorithm could be applied to the
case of infinite-dimensional generalized eigen-problems arising in continuum metafilter models, by focusing on
a portion of the frequency spectrum containing a finite number of dispersion curves.
Data availability
The datasets used and/or analysed during the current study are available from the corresponding author on
reasonable request.
Received: 27 May 2022; Accepted: 1 November 2022
References
1. Lu, M.-H., Feng, L. & Chen, Y.-F. Phononic crystals and acoustic metamaterials. _Mater. Today_ 12, 34–42 (2009).
2. Fleck, N. A., Deshpande, V. S. & Ashby, M. F. Micro-architectured materials: Past, present and future. _Proc. R. Soc. A Math. Phys._
_Eng. Sci._ 466, 2495–2516 (2010).
3. Lee, J.-H., Singer, J. P. & Thomas, E. L. Micro-/nanostructured mechanical metamaterials. _Adv. Mater._ 24, 4782–4810 (2012).
4. Kadic, M., Milton, G. W., van Hecke, M. & Wegener, M. 3D metamaterials. _Nat. Rev. Phys._ 1, 198–210 (2019).
5. Deymier, P. A. _Acoustic Metamaterials and Phononic Crystals_ Vol. 173 (Springer, 2013).
6. Laude, V. _Phononic Crystals: Artificial Crystals for Sonic, Acoustic and Elastic Waves_ (De Gruyter, 2015).
7. D’Alessandro, L., Bahr, B., Daniel, L., Weinstein, D. & Ardito, R. Shape optimization of solid-air porous phononic crystal slabs
with widest full 3D bandgap for in-plane acoustic waves. _J. Comput. Phys._ 344, 465–484 (2017).
8. Colombi, A., Roux, P., Guenneau, S., Gueguen, P. & Craster, R. V. Forests as a natural seismic metamaterial: Rayleigh wave bandgaps
induced by local resonances. _Sci. Rep._ 6, 1–7 (2016).
9. Palermo, A., Krödel, S., Marzani, A. & Daraio, C. Engineered metabarrier as shield from seismic surface waves. _Sci. Rep._ 6, 1–10
(2016).
10. Martinsson, P. & Movchan, A. B. Vibrations of lattice structures and phononic band gaps. _Q. J. Mech. Appl. Mech._ 56 (1), 45–64
(2003).
11. Spadoni, A., Ruzzene, M., Gonella, S. & Scarpa, F. Phononic properties of hexagonal chiral lattices. _Wave Motion_ 46, 435–450
(2009).
12. Tee, K. F., Spadoni, A., Scarpa, F. & Ruzzene, M. Wave propagation in auxetic tetrachiral honeycombs. _J. Vib. Acoust._ 132, 031007
(2010).
13. Hussein, M. I., Leamy, M. J. & Ruzzene, M. Dynamics of phononic materials and structures: Historical origins, recent progress,
and future outlook. _Appl. Mech. Rev._ 66, 040802 (2014).
14. Bacigalupo, A. & Lepidi, M. High-frequency parametric approximation of the Floquet–Bloch spectrum for anti-tetrachiral materi
als. _Int. J. Solids Struct._ 97–98, 575–592 (2016).
15. D’Alessandro, L., Ardito, R., Braghin, F. & Corigliano, A. Low frequency 3D ultra-wide vibration attenuation via elastic metamate
rial. _Sci. Rep._ 9, 1–8 (2019).
16. Bigoni, D., Guenneau, S., Movchan, A. B. & Brun, M. Elastic metamaterials with inertial locally resonant structures: Application
to lensing and localization. _Phys. Rev. B_ 87, 174303 (2013).
17. Wang, P., Casadei, F., Shan, S., Weaver, J. C. & Bertoldi, K. Harnessing buckling to design tunable locally resonant acoustic meta
materials. _Phys. Rev. Lett._ 113, 014301 (2014).
18. Wang, P., Casadei, F., Kang, S. H. & Bertoldi, K. Locally resonant band gaps in periodic beam lattices by tuning connectivity. _Phys._
_Rev. B_ 91, 020103 (2015).
19. Bacigalupo, A. & Gambarotta, L. Simplified modelling of chiral lattice materials with local resonators. _Int. J. Solids Struct._ 83,
126–141 (2016).
20. Elmadih, W. _et al._ Three-dimensional resonating metamaterials for low-frequency vibration attenuation. _Sci. Rep._ 9, 1–8 (2019).
21. De Ponti, J. M. _et al._ Experimental investigation of amplification, via a mechanical delay-line, in a rainbow-based metamaterial
for energy harvesting. _Appl. Phys. Lett._ 117, 143902 (2020).
22. Sigmund, O., Torquato, S. & Aksay, I. A. On the design of 1–3 piezocomposites using topology optimization. _J. Mater. Res._ 13,
1038–1048 (1998).
23. Alderson, A. _et al._ Elastic constants of 3-, 4-and 6-connected chiral and anti-chiral honeycombs subject to uniaxial in-plane load
ing. _Compos. Sci. Technol._ 70, 1042–1048 (2010).
24. Dirrenberger, J., Forest, S. & Jeulin, D. Effective elastic properties of auxetic microstructures: Anisotropy and structural applica
tions. _Int. J. Mech. Mater. Des._ 9, 21–33 (2013).
25. Bacigalupo, A. & De Bellis, M. L. Auxetic anti-tetrachiral materials: Equivalent elastic properties and frequency band-gaps. _Compos._
_Struct._ 131, 530–544 (2015).
26. Bacigalupo, A., Gnecco, G., Lepidi, M. & Gambarotta, L. Optimal design of low-frequency band gaps in anti-tetrachiral lattice
meta-materials. _Compos. B Eng._ 115, 341–359 (2017).
27. De Bellis, M. L. & Bacigalupo, A. Auxetic behavior and acoustic properties of microstructured piezoelectric strain sensors. _Smart_
_Mater. Struct._ 26, 085037 (2017).
28. Ning, S., Yang, F., Luo, C., Liu, Z. & Zhuang, Z. Low-frequency tunable locally resonant band gaps in acoustic metamaterials
through large deformation. _Extreme Mech. Lett._ 35, 100623 (2020).
29. Floquet, G. Sur les équations différentielles linéaires à coefficients périodiques. _Ann. l’École Normale Supérieure_ 12, 47–88 (1883).
30. Bloch, F. Über die quantenmechanik der elektronen in kristallgittern. _Z. Phys._ 52, 555–600 (1928).
31. Brillouin, L. _Wave Propagation in Periodic Structures: Electric Filters and Crystal Lattices_ Vol. 2 (Dover Publications, 1953).
32. Hennig, D. & Tsironis, G. P. Wave transmission in nonlinear lattices. _Phys. Rep._ 307, 333–432 (1999).
33. Bronski, J. & Rapti, Z. Modulational instability for nonlinear Schrödinger equations with a periodic potential. _Dynam. Part. Diff._
_Equat._ 2 [, https://doi.org/10.4310/DPDE.2005.v2.n4.a3 (2005).](https://doi.org/10.4310/DPDE.2005.v2.n4.a3)
34. Skokos, C. On the stability of periodic orbits of high dimensional autonomous Hamiltonian systems. _Physica D_ 159, 155–179
(2001).
35. Arnol’d, V. I. _Mathematical Methods of Classical Mechanics_ Vol. 60 (Springer, 2013).
36. Fantoni, F., Morini, L., Bacigalupo, A. & Paggi, M. The generalized Floquet–Bloch spectrum for periodic thermodiffusive layered
materials. _Int. J. Mech. Sci._ 194, 106178 (2021).
37. Bacigalupo, A., De Bellis, M. L. & Vasta, M. Design of tunable hierarchical waveguides based on Fibonacci-like microstructure.
_Int. J. Mech. Sci._ 224, 107280 (2022).
38. Del Toro, R., Bacigalupo, A., Lepidi, M. & Mazzino, A. Dispersive waves in magneto-electro-elastic periodic waveguides. _Int. J._
_Mech. Sci._ [107759. https://doi.org/10.1016/j.ijmecsci.2022.107759 (2022).](https://doi.org/10.1016/j.ijmecsci.2022.107759)
39. Fantoni, F., Bosco, E. & Bacigalupo, A. Multifield nested metafilters for wave propagation control. _Extrem. Mech. Lett._ 56, 101885
(2022).
40. Diaz, A., Haddow, A. & Ma, L. Design of band-gap grid structures. _Struct. Multidiscip. Optim._ 29, 418–431 (2005).
41. Bacigalupo, A., Gnecco, G., Lepidi, M. & Gambarotta, L. Machine-learning techniques for the optimal design of acoustic meta
materials. _J. Optim. Theory Appl._ 187, 630–653 (2020).
42. Rudin, W. _Real and Complex Analysis_ (McGraw-Hill, 1974).
43. Bertsekas, D. _Dynamic Programming and Optimal Control_ Vol. 1 (Athena Scientific, 2012).
44. Gnecco, G. An algorithm for curve identification in the presence of curve intersections. _Math. Probl. Eng._ 2018, 7243691 (2018).
45. Vaidya, P. M. Geometry helps in matching. _SIAM J. Comput._ 18, 1201–1225 (1989).
46. Bause, F., Rautenber, J. & Henning, B. An improved mode-tracing algorithm to compute dispersion curves of acoustic waveguides.
In _Proc. 2010 IEEE International Ultrasonics Symposium_, 719–722 (2010).
47. Houillon, L., Ichchou, M. N. & Jezequel, L. Wave motion in thin-walled structures. _J. Sound Vib._ 281, 483–507 (2005).
48. Kato, T. _Perturbation Theory for Linear Operators_ Vol. 132 (Springer, 2013).
49. Wimmer, H. K. Rellich’s perturbation theorem on Hermitian matrices of holomorphic functions. _J. Math. Anal. Appl._ 114, 52–54
(1986).
50. Biot, M. A. General theorems on the equivalence of group velocity and energy transport. _Phys. Rev._ 105, 1129 (1957).
51. Brillouin, L. _Wave Propagation and Group Velocity_ (Academic Press, 1960).
52. Bacigalupo, A. & Lepidi, M. Acoustic wave polarization and energy flow in periodic beam lattice materials. _Int. J. Solids Struct._
147, 183–203 (2018).
53. Gnecco, G., Fantoni, F. & Bacigalupo, A. Uniform and Lipschitz continuity of objective functions in metamaterial band gap opti
mization problems. In _AIP Conference Proceedings_, Vol. 2300, 020038 (AIP Publishing LLC, 2020).
54. Texier, B. Basix matrix perturbation theory. _L’Enseignement Math._ 4, 249–263 (2019).
55. Haftka, R. T. & Adelman, H. M. Recent developments in structural sensitivity analysis. _Struct. Optim._ 1, 137–151 (1989).
56. Bacigalupo, A., De Bellis, M. L. & Gnecco, G. Complex frequency band structure of periodic thermo-diffusive materials by Flo
quet–Bloch theory. _Acta Mech._ 230, 3339–3363 (2019).
Acknowledgements
The authors gratefully acknowledge financial support from National Group of Mathematical Physics, Italy
(GNFM-INdAM), from the Compagnia San Paolo, Italy, project UNMASKED 2020, project Search for Excellence Ud’A 2019. The authors acknowledge the Reviewers for their constructive comments related to an earlier
version of the manuscript.
Author contributions
All authors listed have made a substantial, direct and intellectual contribution to the paper, and approved it for
publication.
Competing interests
The authors declare no competing interests.
Additional information
Supplementary Information [The online version contains supplementary material available at https://doi.org/](https://doi.org/10.1038/s41598-022-23491-4)
[10.1038/s41598-022-23491-4.](https://doi.org/10.1038/s41598-022-23491-4)
Correspondence and requests for materials should be addressed to G.G.
Reprints and permissions information is available at www.nature.com/reprints.
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and
institutional affiliations.
Open Access This article is licensed under a Creative Commons Attribution 4.0 International
License, which permits use, sharing, adaptation, distribution and reproduction in any medium or
format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the
Creative Commons licence, and indicate if changes were made. The images or other third party material in this
article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the
material. If material is not included in the article’s Creative Commons licence and your intended use is not
permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from
[the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.](http://creativecommons.org/licenses/by/4.0/)
© The Author(s) 2022