12
Mechatronics 41 (2017) 17–28 Contents lists available at ScienceDirect Mechatronics journal homepage: www.elsevier.com/locate/mechatronics Catenary emulation for hardware-in-the-loop pantograph testing with a model predictive energy-conserving control algorithm A. Schirrer , G. Aschauer, E. Talic, M. Kozek, S. Jakubek Inst. of Mechanics & Mechatronics, Technische Universität Wien, Getreidemarkt 9, 1060 Vienna, Austria a r t i c l e i n f o Article history: Received 2 May 2016 Revised 12 September 2016 Accepted 3 November 2016 Keywords: Hardware-in-the-loop Impedance control Conserved-quantities Catenary modeling Pantograph testing a b s t r a c t Pantograph current collectors, especially for high-speed trains, need to ensure safe contact with the cate- nary under stringent requirements on the dynamic contact force. A novel, high-dynamic pantograph test rig with accurate virtual catenary emulation is presented that allows for efficient, realistic, and repro- ducible testing. The complex dynamics of the pantograph/catenary interaction is modeled by a real- time-capable distributed-parameter description in moving coordinates. The proposed test rig controller incorporates model-predictive impedance control to match the desired catenary dynamics. Additionally, it keeps the exchange of the conserved quantities energy and momentum between the real pantograph and the virtual catenary consistent to increase physical trustworthiness of the results, even in high-dynamic test scenarios. The proposed methods are experimentally validated on the full-scale pantograph test rig. © 2016 Elsevier Ltd. All rights reserved. 1. Introduction In recent years, railway current collectors (pantographs) have become a limiting factor when pushing the velocity limits of high- speed trains. They need to ensure a steady contact with the cate- nary’s contact wire to maintain the train’s energy supply. Loss of contact must be avoided to prevent arcing (and thus heavy wear). As a result, modern pantographs have to fulfill high requirements: small contact force variations, highly reliable operation, and long life cycles. The main problem in the development process of high- performance, high-speed pantographs is the complexity of the in- teraction dynamics with the catenary. Therefore, physical trustwor- thiness of simulations is limited, requiring laborious actual track tests. One way to reduce the need for measurement runs that also allows for reproducible testing is to deploy the pantograph on a test bed and examine its behavior in advance. This concept is called hardware-in-the-loop (HiL) testing whereby the real, full- size pantograph is the unit under test (UUT) that is being put into interaction with a virtual catenary model. The goal thereby is to emulate a real-world train ride already in the laboratory by apply- ing realistic, dynamically generated load patterns that emerge from the coupled interaction of the virtual catenary and the UUT. Simplified pantograph HiL testing can be realized by exciting the pantograph with a predefined motion trajectory, such as the This paper was recommended for publication by Associate Editor Tommy Grav- dahl. Corresponding author. E-mail address: [email protected] (A. Schirrer). static pre-sag of the catenary’s contact wire [1]. However, the pan- tograph/catenary interaction is crucial to obtain realistic test re- sults. To consider the catenary’s dynamic response, it has to be either modeled in a simplified way by oscillators (ordinary differ- ential equations, ODEs) or by high-fidelity models (based on partial differential equations, PDEs) [2,3]. Controlling the test rig so that it dynamically responds to the UUT in the same way as the catenary model is accomplished by impedance control [4,5], where a dynamic behavior rather than a predefined reference trajectory is tracked. Nowadays, impedance control is not only applied in robotics for handling tasks but also used, for example, in engine testbed control [6] or battery emu- lation [7]. The closely related field of bilateral teleoperation is re- viewed in Refs. [8,9]. Accurate, realistic emulation of the pantograph/catenary inter- action needs a real-time-capable model in sufficient details, and so high-fidelity PDE modeling is imperative for accurate dynam- ics, especially at high speeds. A typical catenary configuration con- sists of a carrier and a contact wire which are coupled via so-called droppers. The carrier wire is additionally attached to inertia-fixed masts. Each wire can be modeled as an Euler-Bernoulli beam un- der axial tension, and due to the droppers the resulting equations that need to be solved are two coupled PDEs with constraints [10]. Both wires are weakly damped, and typically a large computa- tional domain is needed in order to capture wave propagation phe- nomena correctly without distortion by spurious reflections at the boundaries. http://dx.doi.org/10.1016/j.mechatronics.2016.11.002 0957-4158/© 2016 Elsevier Ltd. All rights reserved.

Catenary emulation for hardware-in-the-loop pantograph ...nel entries and exits (via the robot’s motion) as well as vertical displacements in a broad frequency range (achieved via

  • Upload
    others

  • View
    5

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Catenary emulation for hardware-in-the-loop pantograph ...nel entries and exits (via the robot’s motion) as well as vertical displacements in a broad frequency range (achieved via

Mechatronics 41 (2017) 17–28

Contents lists available at ScienceDirect

Mechatronics

journal homepage: www.elsevier.com/locate/mechatronics

Catenary emulation for hardware-in-the-loop pantograph testing with

a model predictive energy-conserving control algorithm

A. Schirrer ∗, G. Aschauer, E. Talic, M. Kozek, S. Jakubek

Inst. of Mechanics & Mechatronics, Technische Universität Wien, Getreidemarkt 9, 1060 Vienna, Austria

a r t i c l e i n f o

Article history:

Received 2 May 2016

Revised 12 September 2016

Accepted 3 November 2016

Keywords:

Hardware-in-the-loop

Impedance control

Conserved-quantities

Catenary modeling

Pantograph testing

a b s t r a c t

Pantograph current collectors, especially for high-speed trains, need to ensure safe contact with the cate-

nary under stringent requirements on the dynamic contact force. A novel, high-dynamic pantograph test

rig with accurate virtual catenary emulation is presented that allows for efficient, realistic, and repro-

ducible testing. The complex dynamics of the pantograph/catenary interaction is modeled by a real-

time-capable distributed-parameter description in moving coordinates. The proposed test rig controller

incorporates model-predictive impedance control to match the desired catenary dynamics. Additionally, it

keeps the exchange of the conserved quantities energy and momentum between the real pantograph and

the virtual catenary consistent to increase physical trustworthiness of the results, even in high-dynamic

test scenarios. The proposed methods are experimentally validated on the full-scale pantograph test rig.

© 2016 Elsevier Ltd. All rights reserved.

1

b

s

n

c

A

s

l

p

t

t

t

a

o

i

s

i

e

i

t

t

d

s

t

s

e

e

d

U

i

a

c

u

l

v

a

s

i

s

d

m

d

t

B

h

0

. Introduction

In recent years, railway current collectors (pantographs) have

ecome a limiting factor when pushing the velocity limits of high-

peed trains. They need to ensure a steady contact with the cate-

ary’s contact wire to maintain the train’s energy supply. Loss of

ontact must be avoided to prevent arcing (and thus heavy wear).

s a result, modern pantographs have to fulfill high requirements:

mall contact force variations, highly reliable operation, and long

ife cycles. The main problem in the development process of high-

erformance, high-speed pantographs is the complexity of the in-

eraction dynamics with the catenary. Therefore, physical trustwor-

hiness of simulations is limited, requiring laborious actual track

ests. One way to reduce the need for measurement runs that

lso allows for reproducible testing is to deploy the pantograph

n a test bed and examine its behavior in advance. This concept

s called hardware-in-the-loop (HiL) testing whereby the real, full-

ize pantograph is the unit under test (UUT) that is being put into

nteraction with a virtual catenary model. The goal thereby is to

mulate a real-world train ride already in the laboratory by apply-

ng realistic, dynamically generated load patterns that emerge from

he coupled interaction of the virtual catenary and the UUT.

Simplified pantograph HiL testing can be realized by exciting

he pantograph with a predefined motion trajectory, such as the

� This paper was recommended for publication by Associate Editor Tommy Grav-

ahl. ∗ Corresponding author.

E-mail address: [email protected] (A. Schirrer).

t

n

b

ttp://dx.doi.org/10.1016/j.mechatronics.2016.11.002

957-4158/© 2016 Elsevier Ltd. All rights reserved.

tatic pre-sag of the catenary’s contact wire [1] . However, the pan-

ograph/catenary interaction is crucial to obtain realistic test re-

ults. To consider the catenary’s dynamic response, it has to be

ither modeled in a simplified way by oscillators (ordinary differ-

ntial equations, ODEs) or by high-fidelity models (based on partial

ifferential equations, PDEs) [2,3] .

Controlling the test rig so that it dynamically responds to the

UT in the same way as the catenary model is accomplished by

mpedance control [4,5] , where a dynamic behavior rather than

predefined reference trajectory is tracked. Nowadays, impedance

ontrol is not only applied in robotics for handling tasks but also

sed, for example, in engine testbed control [6] or battery emu-

ation [7] . The closely related field of bilateral teleoperation is re-

iewed in Refs. [8,9] .

Accurate, realistic emulation of the pantograph/catenary inter-

ction needs a real-time-capable model in sufficient details, and

o high-fidelity PDE modeling is imperative for accurate dynam-

cs, especially at high speeds. A typical catenary configuration con-

ists of a carrier and a contact wire which are coupled via so-called

roppers. The carrier wire is additionally attached to inertia-fixed

asts. Each wire can be modeled as an Euler-Bernoulli beam un-

er axial tension, and due to the droppers the resulting equations

hat need to be solved are two coupled PDEs with constraints [10] .

oth wires are weakly damped, and typically a large computa-

ional domain is needed in order to capture wave propagation phe-

omena correctly without distortion by spurious reflections at the

oundaries.

Page 2: Catenary emulation for hardware-in-the-loop pantograph ...nel entries and exits (via the robot’s motion) as well as vertical displacements in a broad frequency range (achieved via

18 A. Schirrer et al. / Mechatronics 41 (2017) 17–28

o

m

b

c

a

f

a

i

c

t

s

c

c

b

T

t

p

s

a

t

a

n

f

s

t

e

f

v

a

b

g

r

A

e

d

o

w

S

c

2

2

w

f

r

n

d

d

o

a

t

t

n

t

i

Since the early 20 0 0s HiL pantograph testing has been de-

scribed, e.g. in Ref. [3] . There, the pantograph has been excited

with two hydraulic actuators from the top and the bottom to ad-

ditionally take the train’s vertical displacement into account. The

tests have been performed using a passive pantograph at simulated

velocities of up to 180 km/h. Facchinetti and various co-authors

have published a series of papers showing the progress and newest

results of their pantograph test rig from 2004 to 2013 [2,11–14] .

The improvements were made in terms of the catenary model’s

complexity (separate carrier and contact wires, as well as dropper

slackening [12] ), a novel shifting procedure in Ref. [14] , a lateral

actuator to incorporate stagger [14] , and finally an actively con-

trolled pantograph pan head [13] . In each of the aforementioned

contributions a modal approach was used to model the catenary’s

dynamics. In Ref. [15] an HiL test rig is proposed using two actu-

ators for the vertical and one actuator for the horizontal contact

wire displacement. The catenary dynamics is modeled in a simpli-

fied way (physical mass-spring-damper system at the contact point

and pre-recorded displacement trajectories). A commercial panto-

graph HiL test rig can be found in Ref. [16] , where the pantograph

is contacted with a spinning disc actuator enabling wear, arcing

and temperature tests of the contact strips. Therein the catenary is

modeled as a time-varying stiffness, similar as in Ref. [15] .

However, the described test rigs face actuation limits in large-

displacement tests, e.g. when emulating tunnel entries, and the

measured contact force is directly fed into the virtual simulation

environment (VSE; here the virtual catenary dynamics) and the re-

action (the contact wire’s displacement at the pantograph position)

is utilized as a tracking reference. Classical tracking control with its

intrinsic phase lag fails to provide state-of-the-art control perfor-

mance as achieved by, for example, predictive control approaches.

Furthermore, ubiquitous test rig imperfections and limitations

are not adequately addressed by classical control designs in terms

of physical trustworthiness. It was shown in Ref. [17] that the con-

sideration of energy and momentum balances on an HiL test rig

can eliminate systematic errors in test results.

The quality of impedance control is always determined by the

quality of the underlying model, and the catenary models used so

far are either highly simplified, or require large computational do-

mains or artificial damping to avoid spurious unphysical boundary

effects.

The main contributions of this paper solve these issues as fol-

lows:

(a) an HiL actuation concept consisting of a high-dynamic linear

drive and a six-degree-of-freedom industry robot that allows

for high-dynamic maneuvers in a large operating area;

(b) a novel impedance control strategy incorporating energy and

momentum conservation, solved by a model predictive con-

trol approach to consider constraints and predict the com-

plex catenary dynamics;

(c) an efficient real-time-capable Eulerian approach [18] (a

fixed pantograph interacts with a moving catenary) to solve

the distributed-parameter catenary dynamics combined with

special absorbing boundary layers.

In contrast to the control approaches of existing pantograph

HiL test rig designs, impedance control in this work is realized

via model predictive control (MPC). The basis of the controller is

a model of the underlying plant (the test rig actuator) and the VSE

(the catenary dynamics), and the future behavior of both is pre-

dicted in each time step, where the upcoming control moves are

the decision variables in an optimization problem. This allows to

incorporate constraints into the control problem and leads to supe-

rior control performance by eliminating the phase lag that emerges

in classical state feedback laws. For efficiently solving this opti-

mization problem in real time, the size of the underlying models

f the MPC is limited. Hence, the proposed catenary model is for-

ulated in a novel efficient form where a special case of controlled

oundaries is used. The computational domains of the contact and

arrier wires are extended by small controlled boundary layers that

bsorb all outgoing waves [19] . The periodic excitation emerging

rom the train ride in combination with the catenary is modeled

s a time-varying periodic system.

The importance of obeying physical conservation laws in an

mpedance-controlled test rig was already shown in Ref. [17] at a

ombustion engine test rig. There, the fuel consumption on the real

rack and in the virtual representation were not consistent because

mall energy errors emerging from limited control bandwidth ac-

umulated. It was shown that these errors could be eliminated by

onsidering conserved quantities by control.

One major challenge in HiL applications is to establish a ro-

ustly stable, yet highly transparent coupling of VSE and UUT.

hese objectives are conflicting [9] , and in Ref. [20] it is shown

hat causality conflicts result in instability. For haptic interfaces,

assivity-based techniques [21,22] have been proposed to ensure

tability of VSE/ UUT coupling. Ref. [23] proposes to combine active

nd passive actuators with a hybrid control algorithm to improve

he stable attainable impedance range.

In power-electronic HiL testing the coupling between the VSE

nd the UUT was already under investigation in recent papers, but

ot in terms of conserved quantities’ consistency. In Ref. [24] dif-

erent possible interfacing concepts are discussed and it is also

tated that the conservation of energy has to be enforced, although

his topic is not pursued further there. In Ref. [25] a circuit for

lectronic power-HiL simulations is described that relies on per-

ectly controlled voltage or current sources.

In contrast, the method proposed here guarantees the conser-

ation of energy by introducing a correction term (interpreted as

virtual force) acting on the VSE. This allows the formulation of

oth energy and momentum conservation laws directly as control

oals.

The outline of this paper is as follows: In Section 2 the test

ig system setup, the VSE and their interconnection are outlined.

ll relevant signals, the conserved quantities, as well as the gen-

ral control goals are specified. Section 3 lays the theoretical foun-

ation for impedance control and presents the control in form

f a model predictive controller. As VSE model an efficient rail-

ay catenary model structure is described in Section 4 . Finally,

ection 5 demonstrates the functionality of the proposed control

oncept with experimental results, followed by conclusions.

. Problem description

.1. High-dynamic pantograph test rig

The novel high-speed pantograph test rig considered in this

ork is displayed in Fig. 1 .

It consists of a linear drive that is attached to a robot arm. A

ull-size pantograph current collector represents the UUT. This test

ig setup allows for large-scale maneuvers such as to emulate tun-

el entries and exits (via the robot’s motion) as well as vertical

isplacements in a broad frequency range (achieved via the linear

rive) as needed for high-fidelity catenary emulation. In this work,

nly the linear drive is considered as actuator.

The available measurements are the position of the linear drive

s well as the contact force at the slider’s end position where con-

act with the pantograph is made.

A mathematical description of the test rig dynamics can be ob-

ained by physical modeling approaches where the relevant dy-

amics are described by the equations of motion. The parame-

ers are either taken from data sheets or obtained by parameter

dentification based on measurement data. Another possibility is to

Page 3: Catenary emulation for hardware-in-the-loop pantograph ...nel entries and exits (via the robot’s motion) as well as vertical displacements in a broad frequency range (achieved via

A. Schirrer et al. / Mechatronics 41 (2017) 17–28 19

Fig. 1. Testbed setup and the UUT (property of Siemens AG Austria, MO MLT BG

PN).

d

m

m

d

s

x

w

p

t

A

t

R

t

r

2

n

t

t

S

x

T

t

F

p

A

2

b

a

a

t

i

x

j

x

U

2

v

c

z

e

H

l

T

a

m

F

U

t

a

U

w

a

e

E

T

m

f

o

f

A

t

t

E

m

i

i

3

3

t

escribe the input/output behavior of the system solely based on

easurement data without any structural assumptions (black-box

odel). In the following, the test rig dynamics are assumed to be

escribed by a linear time-invariant (LTI) discrete-time state-space

ystem:

tr (k + 1) = A tr x tr (k ) + B tr u tr (k )

y tr (k ) =

[x tr (k ) ˙ x tr (k )

]= C tr x tr (k ) ,

(1)

ith x tr and ˙ x tr being the position and velocity of the test rig at the

antograph’s contact point, respectively, and u tr (k ) as input signal

o the system. The sampling time is denoted by T s . Furthermore,

tr , B tr and C tr are the appropriate dynamic, input, and output ma-

rices, respectively.

emark 1. Here, the assumption of LTI system dynamics is jus-

ified because all nonlinear effects (fricion, cogging force) are al-

eady compensated in the underlying test rig control system.

.2. Virtual simulation environment

The virtual simulation environment (VSE), in this case a dy-

amic catenary model, is assumed to be available as a linear-

ime-varying (LTV) discrete-time state-space model with sampling

ime T s realizing the catenary equations of motion as outlined in

ection 4 :

vse (k + 1) = A vse (k ) x vse (k ) + B vse (k ) F vse (k ) ,

y vse (k ) =

[x vse (k ) ˙ x vse (k )

]= C vse (k ) x vse (k ) .

(2)

he signals x vse (k ) and ˙ x vse (k ) denote the position and velocity of

he catenary at the pantograph’s contact point at time t = kT s , and

vse is the force input signal into the VSE at the pantograph contact

osition. The time-varying system matrices are the dynamic matrix

vse (k ) , the input matrix B vse (k ) and the output matrix C vse (k ) .

.3. Realization of accurate coupling between UUT and VSE

To perform accurate HiL testing, a physically correct coupling

etween the UUT and the VSE has to be accomplished by control

s seen in Fig. 2 .

In each sampling interval, the contact force between test rig

nd pantograph is measured, modified if necessary, and fed into

he VSE model as force input. The VSE is set in motion by the forc-

ng, and its response (in terms of catenary vertical displacement

vse and velocity ˙ x vse at the contact point) serve as reference tra-

ectories to be tracked by the test rig’s physical contact point ( x tr ,

˙ tr ).

This way, the VSE dynamics can be realistically emulated for the

UT.

.4. Control tasks

The first task of the controller is to track the position x vse and

elocity ˙ x vse signals of the VSE on the test rig in the UUT/test rig

ontact point, so that the position and velocity errors are ideally

ero:

pos (k ) = x tr (k ) − x vse (k ) ,

e vel (k ) =

˙ x tr (k ) − ˙ x vse (k ) . (3)

owever, both quantities are different from zero because of test rig

imitations, measurement noise and unmodeled system dynamics.

his leads to discrepancies in the energy extracted from the UUT

nd injected into the VSE (also observed in [17] ).

To counteract this effect the controller is allowed to modify the

easured contact force F tr by adding a correction force F cor :

vse (k ) = F tr (k ) + F cor (k ) . (4)

sing F cor the controller has the authority to achieve its second

ask: energy and momentum conservation. Energy conservation is

chieved by keeping the difference in energy extracted from the

UT and the energy injected into the VSE small,

E(k ) = E tr (k ) − E vse (k ) , (5)

here E tr (k ) denotes the discretized, cumulated energy exchanged

t the contact point between UUT and test rig, and E vse (k ) is the

nergy introduced into the VSE:

E tr (k ) =

k ∑

j=0

T s F tr ( j) x tr ( j) ,

vse (k ) =

k ∑

j=0

T s ( F tr ( j) + F cor ( j) ) x vse ( j) .

(6)

hereby, the discrete-time approximations of the energy and mo-

entum integral quantities are used throughout. As can be seen

rom Eqs. (5) and (6) , the energy balance is affected by the choice

f F cor . Moreover, a momentum error now emerges due to the dif-

erent values of F tr and F vse :

p(k ) =

k ∑

j=0

T s F tr (k ) −k ∑

j=0

T s

⎝ F tr (k ) + F cor (k ) ︸ ︷︷ ︸ F vse (k )

=

k ∑

j=0

T s F cor (k ) . (7)

s a consequence, both momentum and energy conservation have

o be considered by control.

Summarizing the controls tasks described in this section,

he controller has to minimize the position/velocity errors

q. (3) while keeping the errors in energy �E Eq. (5) and mo-

entum �p Eq. (7) sufficiently small, as indicated in Fig. 2 . This

s achieved using both F cor and u tr as control variables and results

n a multivariable control law.

. Control methodology

.1. Proposed integrated impedance control structure

The proposed controller structure is illustrated in Fig. 3 . In

his variant of an integrated impedance control (IIC) architecture

Page 4: Catenary emulation for hardware-in-the-loop pantograph ...nel entries and exits (via the robot’s motion) as well as vertical displacements in a broad frequency range (achieved via

20 A. Schirrer et al. / Mechatronics 41 (2017) 17–28

Fig. 2. HiL testing control concept: The proposed controller realizes an accurate coupling of the pantograph (unit under test, right ) and the virtual catenary (VSE, left ) via

the test rig. The controller minimizes the position, velocity, momentum, and energy errors by using both the test rig control input u tr and the virtual correction force F cor ,

based on model predictions of the test rig and the VSE models.

Fig. 3. Block diagram of the integrated impedance control (IIC) MPC concept. The

MPC controls both the test rig as well as the VSE, thereby optimizing for tracking,

momentum, and energy control goals simultaneously.

w

A

T

U

w

c

e

J

w

s

p

i

t

U

i

m

o

s

l

t

U

w

g

l

X

[26] , the MPC is based on models of both, the test rig dynamics

Eq. (1) and the VSE dynamics Eq. (2) . Additionally, the controller is

given access to two control signals: the test rig control input u tr (k )

and the virtual correction force F cor (k ) .

In contrast to a classical cascaded impedance control scheme

(in which the controller only tracks the response of the VSE by

controlling the test rig), the IIC concept allows predictive lag-

free tracking, and the controller’s access to the VSE excitation via

F cor (k ) adds the possibility to control tracking, momentum error,

and energy error simultaneously.

A linear time-varying MPC problem is formulated to achieve

tracking and momentum error control. This control problem is

then augmented by a constraint formulation that results in a re-

duction of the energy error.

3.2. Linear time-varying MPC formulation for tracking and

momentum conservation

The combined prediction model composed of the LTI test rig

dynamics Eq. (1) , the LTV VSE dynamics Eq. (2) , and including the

momentum error Eq. (7) reads:

x (k + 1) = A (k ) x (k ) + B (k ) u (k ) + E (k ) z (k ) ,

y (k ) = C (k ) x (k ) =

[

e pos (k ) e vel (k ) �p(k )

]

,

x (k ) =

[

x tr (k ) x vse (k ) �p(k )

]

, u (k ) =

[u tr (k ) F cor (k )

], z(k ) = F tr (k ) (8)

ith

(k ) =

[

A tr 0 0

0 A vse (k ) 0

0 0 1

]

, B (k ) =

[

B tr 0

0 B vse (k ) 0 T s

]

,

E (k ) =

[

0

B vse (k ) 0

]

, C =

[C tr −C vse 0

0

T 0

T 1

].

(9)

he disturbance z ( k ) acting via E is the contact force F tr (k ) .

The vector of future control moves is defined as:

=

[u

T (k ) u

T (k + 1) . . . u

T (k + N c − 1) ]T

(10)

ith the control horizon N c . This vector is then used in a quadratic

ost function to penalize the upcoming control moves and control

rrors,

(U , x , k ) =

N p ∑

i =1

x

T (k + i ) Q x (k + i ) +

N c −1 ∑

i =0

u

T (k + i ) Ru (k + i )

(11)

here N p and N c are the prediction and control horizons, re-

pectively. The weighting matrices Q and R (both symmetric and

ositive-definite) are used to penalize the control errors and the

nput amplitudes, respectively.

To obtain the sequence of optimal future control moves Eq. (10) ,

he optimization problem

∗ = arg min

U J(U , x (k ) , k ) (12)

s solved in each sampling interval. For the unconstrained opti-

ization problem Eq. (12) a closed-form analytic solution can be

btained by solving ∂ ∂U

J(U , x (k ) , k ) ∣∣U ∗ = 0 for U

∗. However, the re-

ulting control moves may not be applicable because of test rig

imitations. Linear inequality constraints are incorporated, yielding

he constrained convex quadratic programming problem

∗ = arg min

U J(U , x (k ) , k )

subject to M U U ≤ γu , and

M x X ≤ γx ,

(13)

here M U ( k ) and M x ( k ) are constraint coefficient matrices that to-

ether with the right-hand-side vectors γu and γx allow to formu-

ate linear input, state, and output inequality constraints with

=

[x

T (k ) x

T (k + 1) . . . x

T (k + N p − 1) ]T

(14)

Page 5: Catenary emulation for hardware-in-the-loop pantograph ...nel entries and exits (via the robot’s motion) as well as vertical displacements in a broad frequency range (achieved via

A. Schirrer et al. / Mechatronics 41 (2017) 17–28 21

d

c

d

e

t

a

3

i

l

c

(

l

s

M

c

e

|

i

A

(

T

(

F

F

E

P

F

e

x

N

o

e

0

S

F

c

t

t

F

F

T

a

r

C

M

t

e

a

T

t

T

c

t

T

l

b

l

e

e

P

0

|

g

ϕ

s

p

x

T

s

a

s

x

F

o

a

k

T

e

F

K

i

f

k

k

k

k

T

w

i

d

i

C

e

enoting the stacked vector of predicted states. These states can be

alculated by knowledge of the current state vector x ( k ), the pre-

iction model Eqs. (8) –(9) , and U from Eq. (10) . Since it is in gen-

ral not possible to obtain a closed-form solution to problems of

he form Eq. (13) , iterative solvers have to be used, see Ref. [27] for

comprehensive review.

.3. Energy conservation via constraints

Unlike the momentum error (that can be directly considered

n a linear MPC problem), the energy error Eq. (5) depends non-

inearly on the correction force F cor . The incorporation of energy

onservation Eq. (5) directly in the MPC optimization problem

13) would lead to a quadratic optimization problem with non-

inear constraints. This would increase the computational demand

ignificantly and thus render this option unsuitable for real-time

PC with high sampling rates. Instead, suitable constraints on the

orrection force are formulated that lead to a reduction of the en-

rgy error Eq. (5) :

�E(k ) | < | �E(k − 1) | . (15)

The main result allowing energy conservation in the closed loop

s formulated in the following.

ssumption 1. The closed-loop system realized by Eqs. (12) and

9) is internally asymptotically stable.

heorem 1. Consider the MPC problem defined in Eqs. (12) and

9) for which Assumption 1 holds. Then there exist bounds

−cor (k ) , F + cor (k ) for the virtual correction force, F −cor (k ) ≤ F cor (k ) ≤

+ cor (k ) , so that the discrete-time energy error �E(k ) = E tr (k ) − vse (k ) → 0 as k → ∞ .

roof of Theorem 1. By considering Eq. (6) the only unknown is

cor (k ) . All other values can either be measured or constructed. For

xample, the VSE contact point velocity ˙ x vse (k ) is expressed as:

˙ vse (k ) = C

vel vse x vse (k ) = C

vel vse A vse (k − 1) x vse (k − 1)

+ C

vel vse B vse (k − 1)(F tr (k − 1) + F cor (k − 1)) .

(16)

ow a constant 0 < α < 1 is introduced denoting the decay rate

f the energy error. For the case �E(k − 1) > 0 the following in-

quality should be met:

≤ �E(k ) ≤ α�E(k − 1) . (17)

tarting from Eq. (17) and using Eq. (6) the bounds

−cor (k ) ≤ F cor (k ) ≤ F + cor (k ) , (18)

an be derived such that Eq. (17) holds. For ˙ x vse (k ) > 0 this leads

o the following expressions for the lower and upper bounds on

he correction force F cor (k ) :

−cor (k ) =

(1 − α)�E(k − 1)

˙ x vse (k ) T s + F tr (k )

(˙ x tr (k )

˙ x vse (k ) − 1

),

+ cor (k ) =

�E(k − 1)

˙ x vse (k ) T s + F tr (k )

(˙ x tr (k )

˙ x vse (k ) − 1

).

(19)

he bounds resulting from the cases ˙ x vse (k ) < 0 or �E(k − 1) < 0

re derived analogously, and utilizing a correction force in the cor-

esponding range leads to a reduction in energy error. �

orollary 1. The virtual force F cor (k ) can be used by the proposed

PC via suitable constraints to guarantee long-term energy conserva-

ion �E → 0 at the UUT/VSE interface.

The magnitude of the correction force necessary to decrease the

nergy �E ( k ) may grow to arbitrarily large values as | x vse (k ) | → 0 ,

s can readily be seen by inspecting Eq. (19) . A natural extension of

heorem 1 is to introduce a threshold velocity ˙ x thr vse > 0 and impose

he bounds Eq. (18) on the correction force only if | x vse (k ) | > ˙ x thr vse .

he threshold has to be chosen small enough so that it is suffi-

iently often exceeded in order to guarantee energy error reduc-

ion.

heorem 2. Given an MPC problem Eqs. (12) and (9) with closed-

oop stable test rig and VSE dynamics by Assumption 1 , that is excited

y an arbitrary force input F tr (k ) with lim k →∞

F tr (k ) = c, c ∈ R that

eads to a system response such that | x vse (k ) | < ˙ x thr vse ∀ k (i.e. the en-

rgy conserving bounds are never activated), then the resulting energy

rror Eq. (6) stays bounded.

roof of Theorem 2. With the system at rest at k = 0 : x (0) = and assuming a step force input F tr (k ) = ϕσ (k ) such that

x vse (k ) | < ˙ x thr vse ∀ k holds from the optimization problem Eq. (12) to-

ether with the state-space system Eq. (9) and the step input size

, the system response can be computed by usage of a linear

tate-feedback law with a gain matrix K mpc (k ) (unconstrained MPC

roblem equivalent to a state-feedback law, see [28] )

(k + 1) = ( A (k ) − B (k ) K mpc (k ) ) x (k ) + E (k ) ϕ . (20)

he state trajectory defined by Eq. (20) is linearly scaled by the

tep height ϕ and therefore the system can be expressed as

discrete-time transfer function G ( z ), respectively a convolution

ummation including its weighting sequence g (k ) = Z

−1 { G (z) } :

(k ) =

k ∑

j=0

F tr ( j) g (k − j) =

k ∑

j=0

ϕg (k − j) . (21)

rom asymptotic stability of the system (including the summation

f F cor in the last state) the vector-norm of the weighting sequence

pproaches zero:

lim

→∞

‖ g (k ) ‖ = 0 . (22)

he correction force F cor is then just dependent on ϕ and can be

xpressed utilizing the derived weighting sequence g ( k ):

cor (k + 1) = [ 0

T 1 ] K mpc (k ) x (k ) (23)

=

[0

T 1

]K mpc (k )

k ∑

j=0

g (k − j) ϕ (24)

=

˜ K mpc (k ) ϕ . (25)

˜ mpc (k ) is used to obtain the value of the correction force at time

nstant k + 1 and because of the asymptotic closed-loop stability

ollowing limits with exponential decay hold:

lim

→∞

K mpc (k ) ‖ = 0 , (26)

lim

→∞

˙ x vse (k ) = 0 , (27)

lim

→∞

˙ e vel (k ) = 0 , (28)

lim

→∞

F cor (k ) = 0 . (29)

he energy error Eq. (5) then is:

E(k ) =

k ∑

j=0

[ F tr ( j) e vel ( j) − F cor ( j) x vse ] T s (30)

< C(ϕ) < ∞ , (31)

here C ( ϕ) is a constant only depending on ϕ and not on k . The

nequalities are valid because all summation terms in Eq. (30) are

ependent on ϕ and are exponentially decaying and thus their sum

s bounded. �

orollary 2. For any sufficiently small and norm-bounded persistent

xcitation F tr (k ) , the velocity of the VSE never exceeds the threshold

Page 6: Catenary emulation for hardware-in-the-loop pantograph ...nel entries and exits (via the robot’s motion) as well as vertical displacements in a broad frequency range (achieved via

22 A. Schirrer et al. / Mechatronics 41 (2017) 17–28

Fig. 4. Typical catenary setup.

Fig. 5. Railway catenary system description where one span is modeled and ex-

tended by absorbing layers. In the pantograph-fixed coordinates, the masts and

droppers move through the computational domain.

t

n

d

e

a

i

a

t

m

p

s

p

m

f

c

d

t

R

t

r

v

t

n

m

a

A

t

t

t

w

4

p

( | x vse (k ) | < ˙ x thr vse ∀ k ). In this case the proposed energy error reduction

constraint is never imposed. However, from a convolution summation

based on the elementary test case in Theorem 2 it follows that the

energy error is Lipschitz-bounded.

3.4. Robustification heuristics

In HiL experiments on the pantograph test rig it was observed

that ensuring energy conservation through bounds obtained by

Eqs. (18) and (19) occasionally led to high-frequency oscillations.

It was found that the F cor values needed for energy error reduction

can show strong oscillations which induce such high-frequency os-

cillations in the VSE and subsequently in the test rig.

One way to address these issues is to impose rate constraints

on F cor . However, simply imposing constraints on rate and absolute

values on F cor together with bounds obtained from energy conser-

vation Eq. (18) may render the optimization problem Eq. (13) in-

feasible. Therefore, a heuristic relaxation technique is devised to

ensure feasibility and consequently to robustify HiL testing by sup-

pressing unwanted high-frequency oscillations. The necessary con-

cept is defined as constraint hierarchy:

Definition 1. A constraint hierarchy C(A , B) is defined as

C(A , B) =

{A ∩ B if A ∩ B = {∅} x ∈ A : d({ x } , B) = d(A , B) otherwise

(32)

where A , B ⊂ R are nonempty sets, { ∅ } denotes the empty set, and

the minimum set distance d is defined as

d(A , B) = min

x,y | x − y | , x ∈ A , y ∈ B. (33)

It is noted that for interval constraints represented by A , B, the set

C corresponds to that region satisfying both constraints if possible;

otherwise preference is given to fulfill constraint A , and C(A , B) is

that subset of A having minimal distance to B.

Proposition 1. A specific implementation of the constraint hier-

archy in Definition 1 is proposed, so that high-frequency oscilla-

tions are significantly reduced and energy error reduction is still

achieved. The user-defined intervals of the correction force F cor (k ) and

its rate are denoted by F cor,usr = [ F min cor,usr , F max

cor,usr ] and �F cor,usr =[ �F min

cor,usr , �F max cor,usr ] , respectively. The bounds obtained by Eqs.

(18) and (19) in order to decrease the energy error are denoted by the

set F

THM1 cor = [ F −cor (k ) , F + cor (k ) ] . To guarantee feasibility of the con-

straints, the following constraint hierarchy on F cor (k ) is proposed:

1. C 1 = C(F cor,usr , F

THM1 cor )

2. C 2 = C(F cor (k − 1) + �F cor,usr , C 1 )

where the set C 2 defines the admissible interval of F cor (k ) .

By implementing the constraint hierarchy concept in

Proposition 1 , the MPC optimization problem is guaranteed to

be feasible and it is assured that no strong, high-frequency

excitation input into the VSE is being generated. The rate con-

straints on F cor are always obeyed. If feasible, also the absolute

value constraints on F cor are obeyed. Finally, if also the energy

error reduction constraints retain feasibility, then those are also

obeyed. This technique may deteriorate energy error minimiza-

tion performance, but it retains stability and robustness in the

application.

4. VSE model: a railway catenary system

For the proposed HiL pantograph test rig a dynamic catenary

model of the catenary vertical dynamics is used as VSE model. A

ypical catenary-pantograph setup is displayed in Fig. 4 . Each cate-

ary span is comprised of a carrier wire attached to two masts. Ad-

itionally, a contact wire is connected to the carrier wire via sev-

ral droppers to minimize the static pre-sag. Typically, the wires

re modeled as Euler-Bernoulli beams (EBBs) under axial tension

n resting coordinates. The pantograph contact is then modeled

s a force input signal moving along the catenary and acting on

he contact wire [10] . This approach has the disadvantage that

odel size and thus simulation duration have to be chosen a-

riori, which is not suitable for HiL applications. In Ref. [14] a

hifting-scheme of the virtual catenary representation to realize a

antograph HiL test rig has been developed. Thereby the catenary

odel is periodically re-initialized. However, this approach suffers

rom several disadvantages:

• model size, since for correct computation at least three spans

were needed, • increased implementation effort to avoid periodic shocks due to

the shifting procedure.

In this paper the catenary is described in pantograph-fixed

oordinates (“Eulerian description”) and the underlying PDEs are

iscretized by finite differences as proposed in Ref. [18] . Addi-

ionally, controlled absorbing boundary layers as developed in

ef. [19] were added to both ends of the computational domain

o absorb outgoing waves (see Fig. 5 ). The catenary is assumed pe-

iodic in the mast distance (span length), hence a periodic time-

arying model structure is obtained where the masts and droppers

ravel through the domain described in pantograph-fixed coordi-

ates.

In this work, dropper slackening is disregarded, so the catenary

odel becomes linear. This reduces the computational demands

nd allows to pre-compute the prediction matrices of the MPC.

dditionally, in contrast to Refs. [10,18] static effects (static solu-

ion, pre-sag) are omitted within the catenary model, but instead

reated separately as time-varying signal offsets. The resulting sys-

em structure is a linear periodically time-varying (LPTV) system

hich will be derived in the following sections.

.1. Equations of motion

The catenary’s dynamics is described by a system of cou-

led axially loaded EBBs in moving (i.e., pantograph-fixed) coor-

Page 7: Catenary emulation for hardware-in-the-loop pantograph ...nel entries and exits (via the robot’s motion) as well as vertical displacements in a broad frequency range (achieved via

A. Schirrer et al. / Mechatronics 41 (2017) 17–28 23

d

ρ

ρ

T

v

w

m

o

r

fi

T

t

w

n

w

n

w

[

c

a

s

w

i

l

T

v

d

e

w

t

ρ

ρ

4

E

e

w

a

i

b

w

w

a

m

u

s

a

i

n

A

T

w

w

d

p

i

g

x

a

d

x

T

c

d

t

o

N

T

a

m

v

h

r

R

a

d

E

t

d

d

4

p

i

f

m

1 The validation in this standard consists of two parts: first by means of a refer-

ence simulation and second by means of measurement data. The first part of the

EN50318 could be met, the second part could not be performed due the lack of

suitable measurement data.

inates:

A co w co + βco ˙ w co = −EI co w

′′′′ co + (T co − ρA co v 2 ) w

′′ co

. . . + βco v w

′ co − 2 ρA co v ˙ w

′ co + f dr ( ζ , t) + f contact ( ζF , t) , (34)

A ca w ca + βca ˙ w ca = −EI ca w

′′′′ ca + (T ca − ρA ca v 2 ) w

′′ ca

. . . + βca v w

′ ca − 2 ρA ca v ˙ w

′ ca − f dr ( ζ , t) , (35)

ˆ ζ ∈ [ 0 , L + 2 L abs ] , t ∈ R

+ .

hereby, the fields w ( ζ , t) denote the vertical displacements as de-

iations from the stationary deformation of the catenary obtained

ithout pantograph contact. They are functions of time t and the

oving spatial coordinate ˆ ζ = ζ + v t, with the resting spatial co-

rdinate ζ and the velocity of the pantograph v . The constant pa-

ameters are the mass per unit length ρA , viscous damping coef-

cient β , bending stiffness EI , axial load T , and span length L span .

he length of the domain interior is L , the length of the computa-

ional domain is L +2 L abs (see Fig. 5 ). Additionally, the abbreviations

˙ =

∂w

∂t and w

′ =

∂w

∂ ζhave been used. The subscripts co and ca de-

ote the parameters and displacements of the contact and carrier

ires, respectively. The distributed contact force between the cate-

ary and pantograph is defined in moving coordinates as

f contact ( ζ , t) = F vse (t) δε( ζF ) , (36)

here δε ( ζF ) is a finite support membership function (see Ref.

10] .) at the pantograph position

ˆ ζF (fixed in the moving spatial

oordinate). The coupling by means of droppers — here modelled

s springs with stiffness k dr, j , j = 1 , . . . , N dr (see Fig. 5 ) — is de-

cribed by the force distribution

f dr ( ζ , t) =

N dr ∑

j=1

k dr , j

(w ca ( ζdr , j (t) , t) − w co ( ζdr , j (t) , t)

)δε( ζdr , j (t))

(37)

here ˆ ζdr , j =

ˆ ζ 0 dr , j

− v t is the current position and

ˆ ζ 0 dr , j

the start-

ng position of the j th dropper. Thus the droppers periodically

eave and enter the computational domain ( ζdr , j ∈ [0 , L +2 L abs ] ).

he equations Eqs. (34) –(37) result in a linear periodically time-

arying (LPTV) system with F vse (t) being the only exogenous input.

The dynamics of a catenary in a fixed coordinate system can be

escribed by Eqs. (34) and (35) when v is set to 0 m/s and consid-

ring that the dropper and mast positions are now time-invariant,

hereas the contact force position ζF (t) = ζF 0 + v t now varies as

he train is moving under a fixed catenary system:

A co w co + βco ˙ w co = −EI co w

′′′′ co + T co w

′′ co

. . . + f dr (ζ , t) + f contact (ζF (t ) , t ) , (38)

A ca w ca + βca ˙ w ca = −EI ca w

′′′′ ca + T ca w

′′ ca − f dr (ζ , t) . (39)

.2. Discretization by finite differences

To obtain a real-time catenary model as VSE model, the system

qs. (34) –(37) is first discretized using second-order central differ-

nces (see e.g. Ref. [29] ) on an equidistant mesh in time and space

ith suitable mesh sizes �t and � ˆ ζ , respectively. These step sizes

re typically chosen according to requirements on accuracy, stabil-

ty, real-time-capability, and memory limits. Thereby, the clamped

oundary conditions

w ca (x = 0 , t) = w ca (x = L + 2 L abs , t) = 0

co (x = 0 , t) = w co (x = L + 2 L abs , t) = 0

w

′ ca (x = 0 , t) = w

′ ca (x = L + 2 L abs , t) = 0

′ co (x = 0 , t) = w

′ co (x = L + 2 L abs , t) = 0

re assumed (for the deviations from the static solution).

Then, the absorbing layers are implemented according to the

ethod described in [19] , where a state feedback control law is

sed to calculate forces acting on each node in the boundary layers

o that they mimic the behavior of perfectly matched layers and

void reflections of outgoing wave packets back into the domain

nterior.

Denoting the time index of the �t -sampled system by n ( t = �t), the implicit LPTV system is obtained as:

+1 ( n ) w ( n + 1 ) = A 0 ( n ) w ( n ) + A −1 w ( n − 1 ) + B (n ) F vse (n ) . (40)

hereby, the collocated localized displacements are defined as

w (n ) =

[w

T ca (n ) w

T co (n )

]T and

l (n ) =

[w l (0 , n �t) , w l (�ζ , n �t) , . . . , w l (L, n �t)

]T ,

ith l = { co , ca } . The matrices A +1 (n ) and A 0 ( n ) are time-varying

ue the dropper movement and a Crank-Nicolson-type [30] im-

licit formulation of the dropper stiffness terms was utilized to

mprove stability if high-stiffness droppers were modeled. Aggre-

ating the states as

vse (n ) = [ w

T (n ) w

T (n − 1) ] T

nd solving Eq. (40) explicitly for x vse (n + 1) , one obtains the

iscrete-time LPTV system

vse (n + 1) = A vse (n ) x vse (n ) + B vse (n ) F vse (n ) , (41)

y vse (n ) = C vse x vse (n ) .

he system dynamics in Eq. (41) is sampled with sampling time

t . However, to allow for faster computation several time steps

an be aggregated with the input held constant. If so, an integer

own-sampling factor m ↓ is defined with T s = m ↓ �t, m ↓ ∈ N and

he time steps are chosen so that, additionally, the system is peri-

dic in an integer number of samples N per in either time base:

per , �t =

L span

v �t ∈ N and

N per ,T s =

N per , �t

m ↓ =

L span

v T s ∈ N .

(42)

o express Eq. (2) in the down-sampled time base T s , Eq. (41) is

pplied m ↓ times to express x vse (n + m ↓ ) = x vse (k + 1) with k = ↓ n (see Ref. [31] for the time-invariant down-sampling; the time-

arying case is notably more tedious notationally and omitted

ere). The input force is kept constant over the down-sampling du-

ation F vse (n ) = F vse (n + i ) , i = 1 . . . m ↓ − 1 .

emark 2. It is noted that the matrices A +1 (n ) , A 0 ( n ) and A −1 (n )

re sparse matrices, whereas the resulting matrix A vse (n ) is

ensely populated.

In the following section, the down-sampled version of model

q. (41) will be compared to a catenary-fixed reference formula-

ion to show that the described reductions (absorbing layers and

own-sampling) are indeed suitable to model the main catenary

ynamics in a frequency range up to 20 Hz.

.3. Real-time catenary model parameters and basic validation

To demonstrate the test rig control concept, in this work a sim-

lified real-time pantograph-fixed catenary model is utilized that

s briefly validated against a catenary-fixed reference simulation

rom Ref. [32] . The reference model framework fulfills the require-

ents of the simulation validation part of EN50318 [33] . 1 It utilizes

Page 8: Catenary emulation for hardware-in-the-loop pantograph ...nel entries and exits (via the robot’s motion) as well as vertical displacements in a broad frequency range (achieved via

24 A. Schirrer et al. / Mechatronics 41 (2017) 17–28

Fig. 6. Validation of the catenary model: a) displacement over time (left) and b) the frequency domain representation of the contact force (right) obtained by a Fast Fourier

Transform (FFT).

Table 1

Parameters of both catenary models.

Wire ρA β EI T

kg/m kg/s/m N m

2 N

Contact 1 .35 0 150 20 × 10 3

Carrier 1 .35 0 150 20 × 10 3

Dropper j 1 2 3 4

ˆ ζdr , j in m 5 21 .67 38 .33 55

k dr, j in N/m 10 0 0 10 0 0 10 0 0 10 0 0

F static T s �ζ �t =

T s m ↓

Pantograph-fixed 120 N 1/170 s 1 .54 m 1/850 s

Catenary-fixed 120 N 1/680 0 0 s 0 .24 m –

t

a

t

l

i

o

n

p

s

d

p

c

F

t

l

m

s

d

n

s

t

a

c

i

D

r

c

h

c

i

c

o

s

d

t

f

a much smaller sampling time and element discretization and the

parameter values and catenary setup are summarized in Table 1 .

As a simplified choice, based on EN50318 [33] both wires’ pa-

rameters were chosen identical. However, the catenary setup can

easily be generalized to arbitrary catenary parameters but then re-

quires additional tuning of the absorbing layers’ parameters specif-

ically for each wire.

The sampling time of the LPTV catenary model is chosen ac-

cording to the available computational power and memory re-

sources of the deployed real-time computer, see Section 5 . The to-

tal length of the computational domain was set to the length of

one span L + 2 L abs = L span = 60 m . The length of each absorbing

layer was chosen to L abs = 4 . 62 m .

For validation of the reduced LPTV model against the high-

fidelity reference simulation a pantograph based on the model

used in [33] with a reduced contact stiffness and a static uplift

force of 120 N is moving with a speed of 60 m/s. Fig. 6 shows the

displacement of the contact wire at the pantograph’s position of

both models in the time domain and the resulting contact force

in the frequency domain. It can be seen that the pantograph-fixed

model shows less compliance at the span frequency of 1 Hz, but

the relative shape is preserved well. Also, the low-frequency con-

tent of the contact force is reproduced well, and higher frequency

contents are attenuated compared to the reference solution. Espe-

cially when compensating the gain error by correcting the static

displacement by a constant factor the position trajectories are in

overall good agreement (fit of 88.7 %, respectively 75.5% in the un-

compensated case, both calculated in a normalized mean square

error computation).

4.4. Discussion of the LPTV catenary model

In principle, the reduced real-time catenary model’s parameter

can be arbitrarily chosen as long as the desired model quality is at-

ained. This is valid over a wide range of possible wire parameters

nd pantograph speeds. In this work the choices on the sampling

ime �t (and especially its down-sampled version T s ) and the total

ength L + 2 L abs were made in close coordination with system lim-

tations of the real-time computer, see Section 5 . The length L abs

f the absorbing layer should generally be chosen only as large as

ecessary to sufficiently attenuate the reflections of outgoing wave

ackets back into the domain.

The observed deviation from the catenary-fixed formulation (vi-

ualized in Fig. 6 ) arises mainly from a substantially coarser spatial

iscretization (see bottom of Table 1 ) as well as the small com-

utational area where the absorbing layers even attenuate physi-

al relevant contributions of the pantograph-catenary interaction.

urther comparative simulation studies revealed that increasing

he length L enhances model quality significantly. Here, the small

engths of L and L abs were necessary to meet memory require-

ents of the real-time hardware. For the same reason the down-

ampling to the slower T s -time-base was introduced, drastically re-

ucing the amount of matrices needed to describe the catenary dy-

amics in Eq. (2) .

A significant simplification decision is to disregard dropper

lackening, yielding a linear model and, in turn, allowing to employ

he subsampling procedure as outlined in Section 4.2 . Under such

ggregation over time (producing densely populated system matri-

es in Eq. (41) ), an online re-computation is currently not feasible

n real time (which would allow to consider dropper slackening).

isregarding dropper slackening is also assumed to be the main

eason of the relatively small asymmetry of the trajectory of the

ontact wire’s displacement at the pantograph position, even for

igher tested speeds.

One alternative approach to consider dropper slackening during

omputation is utilized in a finite-element catenary code reviewed

n Ref. [34] : there the slackening is considered by right-hand-side

orrection forces determined iteratively in each time step. Yet an-

ther approach is to directly perform online adaptations of the

parse stiffness matrices in each time step, which is currently un-

er investigation by this work’s authors.

Having mentioned the considered model’s limitations, in turn,

he moving-coordinate (pantograph-fixed) formulation shows the

ollowing significant advantages over a classical formulation:

• 6.25 times fewer states per span for similar fidelity, • strongly shortened computational domain: For this setup a 5s-

run of the catenary-fixed formulation requires a simulation area

of 15 spans (900 m) to avoid reflections versus 1 span (60 m)

of the pantograph-fixed formulation.

Page 9: Catenary emulation for hardware-in-the-loop pantograph ...nel entries and exits (via the robot’s motion) as well as vertical displacements in a broad frequency range (achieved via

A. Schirrer et al. / Mechatronics 41 (2017) 17–28 25

Table 2

MPC parameters.

1 − α ˙ x thr vse N p , N c

6 × 10 −6 0 .01 m/s 25

˜ Q R T s ⎡

1 0 0

0 10 −4 0

0 0 10 3

[1 0

0 50

]1/170 s

f

t

w

v

p

l

fi

t

e

5

s

a

t

r

s

5

w

t

c

t

r

T

m

s

c

t

t

a

t

r

Q

Q

L

i

t

c

c

s

f

a

f

5

t

s

h

r

t

n

a

f

t

i

t

t

e

p

i

o

c

U

r

s

o

t

a

o

T

6

e

c

s

f

d

u

t

t

b

n

(

e

t

e

w

t

t

t

t

o

i

s

b

w

ε

• each second simulated takes about 460 s (catenary-fixed) com-

pared to ≈ 83 ms of the pantograph-fixed formulation

2 .

Taking these facts into account, the proposed coordinate trans-

orm and the use of absorbing layers (see Fig. 5 ) lead to a good

rade-off between computational effort and accuracy and is thus

ell-suited for real-time applications. Especially the linear time-

arying structure of the real-time model allows to directly em-

loy a high-fidelity catenary model in an MPC algorithm. This al-

ows to use, for example, a nonlinear finite-elements-based high-

delity catenary model as an on-line reference from whose states

he MPC’s linear catenary model (as shown here) is initialized in

ach time instance.

. Experimental results

In this Section the methods presented so far will be demon-

trated on a real-world pantograph test rig. An extended IIC-MPC

s described in Section 3 is implemented with energy and momen-

um conservation capabilities. The VSE is a high-order, linear, pe-

iodically time-varying state-space model of a catenary that repre-

ents a train ride at v = 60 m / s .

.1. Implementation details

The test rig depicted in Fig. 1 consists of an industrial robot

ith an attached linear drive. In this work, only the latter was ac-

uated because the regular operating conditions (no tunnel entries)

an already be captured in its operating range. A classic LQR con-

rol law with a sampling rate of 50 0 0 Hz is used as the inner test

ig control loop, where the motor current was the control variable.

he LTI state-space system of the test rig Eq. (1) as used for the

odel predictive impedance control is thus already a controlled

ubsystem. The sampling rate of the LQR controlled system was

hosen as fast as possible to allow for best possible tracking con-

rol and disturbance rejection. The linear drive positions as well as

he contact force are available as measurements. The MPC as well

s the test rig control are implemented on a dSPACE DS1006 real-

ime platform with a 2.8 GHz quad-core processor. Table 2 summa-

izes MPC implementation details, whereby the weighting matrix

is calculated as

= C

T ˜ Q C . (43)

ow control weights are put on the velocity error when design-

ng the MPC, so controlling the position and momentum errors are

he main control goals. Furthermore, 1 − α (the energy error de-

ay factor, see Eq. (17) ) is arbitrarily chosen as (1 − α) /T s = 0 . 001

orresponding to a time constant of τ = 10 0 0 s . Its value is cho-

en so as not to significantly affect the VSE dynamics at relevant

requencies. Additionally, a velocity threshold is chosen which de-

ctivates constraints F −cor (k ) , F + cor (k ) on the correction force F cor (k )

or | x vse (k ) | < ˙ x thr vse as described by Theorem 2 .

2 on a standard PC (Intel i7 3.2 GHz).

a

ε

.2. HiL results

To demonstrate energy and momentum correcting properties of

he MPC an HiL test run is started with deactivated energy con-

ervation in the controller (no bounds on F cor (k ) are imposed, but

igh input weighting on F cor (k ) , so that almost exclusively the test

ig input u tr (k ) is utilized for classical impedance tracking).

Due to the neglected dynamics of the pantograph as the UUT,

he limited test rig bandwidth as well as imperfections such as

oise or uncertainties, a small velocity error emerges and thus

n energy error �E ( k ) accumulates. Then, the MPC correction

orce constraints are globally activated , except for small veloci-

ies: | x vse (k ) | < ˙ x thr vse (see Theorem 2 ). The results from this time

nstant on are displayed in Fig. 7 . The first row of Fig. 7 shows

he impedance tracking behavior. The main task of impedance con-

rol, namely tracking the VSE’s dynamic behavior by the test rig is

xcellently achieved: high position tracking performance with no

hase-lag even under high dynamic movements can be observed

n Fig. 7 b, which shows a detailed view of the position trajectories

f the test rig respectively the VSE from Fig. 7 a. Fig. 7 c depicts the

orresponding normalized tracking error.

To demonstrate the method’s robustness in terms of altered

UT dynamics, the pantograph’s contact force is varied in the

ange of 130N to 220 N by changing the pantograph’s bellow pres-

ure, as visualized in Fig. 7 d. There it is also demonstrated that

nly modest control action on F cor is applied at the catenary. Addi-

ionally, the momentum error shown in Fig. 7 e introduced by the

rtificial correction force stays bounded (its integral was not part

f the control goal and thus a nonzero steady-state error remains).

he energy error Eq. (5) is visualized in Fig. 7 f, and for the first

00 s it is continuously decreasing. In contrast to Theorem 1 , how-

ver, the energy error is not strictly monotonically decreasing be-

ause of the threshold on the VSE’s velocity, as well as the con-

traint hierarchy described in Section 3.4 . The energy error decays

aster than the chosen time constant of τ = 10 0 0 s, which has been

efined as an upper bound in Eq. (17) . For times t > 600 s, a resid-

al energy error remains and no further reduction is possible by

he proposed test rig controller with the current settings. Noting

hat in Eq. (19) the magnitude of the correction force is scaled

y the magnitude of the energy error, the authors attribute the

onzero energy error to the fact that the energy error reduction

via F cor ) is outweighed by the energy errors generated by model

rrors and imperfections. To investigate this phenomenon further,

he MPC constraint hierarchy is considered. To do so, the energy

rror is split into two parts:

E(k ) = �E ON (k ) + �E OFF (k ) , (44)

here at each sampling interval only one of these elements con-

ributes (is non-zero). The term �E ON (k ) sums up all changes in

he energy error when bounds obtained via Eq. (19) were ac-

ive on F cor (k ) , i.e. energy error minimization was active. In con-

rary, if the threshold velocity was not exceeded ( | x vse (k ) | < ˙ x thr vse )

r the constraint hierarchy prevented the use of energy conserv-

ng constraints on F cor (k ) , the change in the energy error was

ummed up in �E OFF (k ) . These accumulated energy error contri-

utions �E ON (k ) and �E OFF (k ) are defined as

E ON (k ) =

k

εON (k ) and �E OFF (k ) =

k

εOFF (k ) , (45)

ith

ON (k ) =

{�E(k ) − �E(k − 1) Eq. (19) activated

0 else (46)

nd

OFF (k ) =

{�E(k ) − �E(k − 1) Eq. (19) deactivated

0 else . (47)

Page 10: Catenary emulation for hardware-in-the-loop pantograph ...nel entries and exits (via the robot’s motion) as well as vertical displacements in a broad frequency range (achieved via

26 A. Schirrer et al. / Mechatronics 41 (2017) 17–28

Fig. 7. Results of a typical HiL test run demonstrating functional catenary impedance tracking, as well as energy and momentum conservation between the UUT and the VSE.

Subplot a) shows the position trajectories over a large time span with varying pantograph uplift force, demonstrating the method’s robustness. Subplot b) shows a zoomed

view of the trajectories and c) the corresponding position error in percent. Subplot d) shows the contact, respectively the correction force and e) shows that the momentum

error stays bounded while the energy error between the UUT and the VSE is decreasing.

Fig. 8. Detailed analysis of the constraint activity with activated energy conversation: 1) Zoomed view shows how �E is split into parts with activated (black, solid) and

deactivated (gray, solid) F cor constraints. 2) Accumulated energy error contributions �E ON (black, dashed) and �E OFF (gray, dashed) are decreasing and increasing, respectively.

R

c

c

r

n

i

e

r

q

b

t

p

Fig. 8 shows the computed accumulated errors �E OFF (k ) and

�E ON (k ) with dashed lines. Furthermore �E ( k ) and a zoomed seg-

ment of �E ( k ) where sequences with activated (black) and deacti-

vated (gray) constraints are shown.

These results show, based on the accumulated error, that the

energy error is increasing when the constraints are deactivated and

is decreasing when the constraints are activated.

The proposed heuristics enables a robust implementation of

high-dynamic test rig control that keeps momentum and energy

errors small despite model imperfections and disturbances, while

at the same time achieving excellent impedance tracking perfor-

mance.

emark 3. As a final remark, considering the energy error in the

ontrol concept is seen to strongly improve the stability of the

oupled system. Coupling the system to a moderately stiff envi-

onment (here, by simulating a contacted linear pantograph dy-

amics) and with typical model errors present, simulation stud-

es show that considering the energy conservation allows safe op-

ration at significantly higher model errors. In turn, if energy er-

ors were ignored by the controller, destabilization at high fre-

uencies quickly emerged. This typical result demonstrates the ro-

ustifying effect of considering and controlling energy errors in

he impedance controller. It is finally noted that the stabilizing

assivity-based schemes in haptic interaction control (such as the

Page 11: Catenary emulation for hardware-in-the-loop pantograph ...nel entries and exits (via the robot’s motion) as well as vertical displacements in a broad frequency range (achieved via

A. Schirrer et al. / Mechatronics 41 (2017) 17–28 27

e

o

6

t

t

b

i

c

p

v

s

o

n

s

t

a

i

a

i

o

r

t

t

i

a

n

m

A

P

g

A

R

[

[

[

[

[

[

[

[

[

[

[

[

nergy-bounding algorithm [21] ) are closely related to the concept

f energy conservation via control.

. Conclusions

To obtain physically trustworthy results from an HiL test run,

he UUT/VSE coupling has to be tracked accurately, and moreover

he physical conservation laws (energy and momentum) have to

e made consistent at the UUT/VSE interface. A model-predictive

mpedance control concept has been proposed that realizes these

ontrol tasks for high-dynamic railway catenary emulation in a

antograph current collector test rig. The distributed-parameter

irtual catenary dynamics is realized by a high-order time-varying

tate space description based on a finite difference approximation

f the model equations and integrated into the MPC. Specifically, a

ovel moving-coordinate (pantograph-fixed) Eulerian catenary de-

cription combined with absorbing boundaries of the computa-

ional domain yield a real-time-capable model with high fidelity.

In order to balance and control momentum and energy errors

t the interface simultaneously, the MPC controls both the test rig

nput as well as the VSE excitation force. Its predictive structure

llows to attain lag-free tracking and thus to realize a high-quality

nterface, which additionally is consistent in the long run in terms

f conserved quantities.

Experimental results on the full-scale test rig in contact with a

eal pantograph validate the proposed method and show the high

racking performance and the conservation properties of the con-

rol concept. This allows highly realistic HiL testing of pantographs

n virtual test rides on high-speed tracks. Ongoing research work

ims at realizing alternative, finite-element-based realtime cate-

ary models to significantly alleviate current computational and

emory requirements and further improve HiL testing fidelity.

cknowledgement

This work was financially supported by the Austrian Research

romotion Agency (projects 836449 and 841331). The authors are

rateful for the support of the Siemens pantographs team (Siemens

G Austria, MO MLT BG PN).

eferences

[1] Lee JH , Park TW , Oh HK , Kim YG . Analysis of dynamic interaction between

catenary and pantograph with experimental verification and performance eval-uation in new high-speed line. Veh Syst Dyn 2015;53(8):1117–34 .

[2] Facchinetti A, Gasparetto L, Bruni S. Real-time catenary models for thehardware-in-the-loop simulation of the pantograph/catenary interaction. Veh

Syst Dyn 2013;51(4):499–516. doi: 10.1080/00423114.2012.748920 . [3] Zhang W , Mei G , Wu X , Shen Z . Hybrid simulation of dynamics for the pan-

tograph-catenary system. Veh Syst Dyn 2002;38(6):393–414 .

[4] Hogan N . Impedance control: an approach to manipulation. In: American Con-trol Conference, 1984. IEEE; 1984. p. 304–13 .

[5] Hogan N . Impedance control: an approach to manipulation: part II: implemen-tation. J Dyn Syst Meas Control 1985;107(1):8–16 .

[6] Westermayer C , Priesner R , Kozek M , Bauer R . High dynamic torque controlfor industrial engine test beds. Industrial Electronics, IEEE Transactions on

2013;60(9):3877–88 .

[7] König O , Hametner C , Prochart G , Jakubek S . Battery emulation for power-HILusing local model networks and robust impedance control. Ind Electron, IEEE

Trans 2014;61(2):943–55 . [8] Hokayem PF , Spong MW . Bilateral teleoperation: an historical survey. Automat-

ica 2006;42(12):2035–57 . [9] Passenberg C , Peer A , Buss M . A survey of environment-, operator-,

and task-adapted controllers for teleoperation systems. Mechatronics2010;20(7):787–801 .

[10] Arnold M , Simeon B . Pantograph and catenary dynamics: a benchmark prob-

lem and its numerical solution. Appl Numer Math 20 0 0;34(4):345–62 . [11] Collina A , Facchinetti A , Fossati F , Resta F . Hardware in the loop test-rig for

identification and control application on high speed pantographs. Shock Vib2004;11(3–4):445–56 .

[12] Resta F , Facchinetti A , Collina A , Bucca G . On the use of a hardwarein the loop set-up for pantograph dynamics evaluation. Veh Syst Dyn

2008;46(S1):1039–52 .

[13] Facchinetti A , Mauri M . Hardware-in-the-loop overhead line emulator for ac-tive pantograph testing. Ind Electron, IEEE Trans 2009;56(10):4071–8 .

[14] Facchinetti A , Bruni S . Hardware-in-the-loop hybrid simulation of pantograph—catenary interaction. J Sound Vib 2012;331(12):2783–97 .

[15] Deml J , Baldauf W . A new test bench for examinations of the pantograph-cate-nary interaction. In: Proc. WCRR; 2001. p. 25–9 .

[16] Corporation MS . High-performance pantograph testing. Tech. Rep.; 2010 .

[17] Jakubek S , Luchini E , Oberhummer A , Pfister F . A model-based interfacing con-cept for accurate power hardware-in-the-loop systems. Math Comput Model

Dyn Syst 2015:1–20 . [18] Ritzberger D , Talic E , Schirrer A . Efficient simulation of railway panto-

graph/catenary interaction using pantograph-fixed coordinates. IFAC-PapersOn- Line 2015;48(1):61–6 . 8 th Vienna International Conference on Mathematical

Modelling, MATHMOD 2015.

[19] Ritzberger D , Schirrer A , Jakubek S . Absorbing boundary layer control for linearone-dimensional wave propagation problems. J Vibr Control 2016 . (in press)

20] Gawthrop P , Neild S , Gonzalez-Buelga A , Wagg D . Causality in real-time dy-namic substructure testing. Mechatronics 2009;19(7):1105–15 .

[21] Kim J-P , Ryu J . Robustly stable haptic interaction control using an ener-gy-bounding algorithm. Int J Rob Res 2010;29(6):666–79 .

22] Park S , Seo C , Kim J-P , Ryu J . Robustly stable rate-mode bilateral teleoperation

using an energy-bounding approach. Mechatronics 2011;21(1):176–84 . 23] Baser O , Gurocak H , Konukseven EI . Hybrid control algorithm to improve

both stable impedance range and transparency in haptic devices. Mechatronics2013;23(1):121–34 .

24] Lentijo S , D’Arco S , Monti A . Comparing the dynamic performances of powerhardware-in-the-loop interfaces. Ind Electron, IEEE Trans 2010;57(4):1195–207 .

25] Wu X , Lentijo S , Monti A . A novel interface for power-hardware-in-the-loop

simulation. In: Computers in Power Electronics, 2004. Proceedings. 2004 IEEEWorkshop on. IEEE; 2004. p. 178–82 .

26] Priesner R , Jakubek S . Mechanical impedance control of rotatory test beds. IndElectron, IEEE Trans 2014;61(11):6264–74 .

[27] Gill PE , Wong E . Methods for convex and general quadratic programming.Mathe Program Comput 2014;7(1):71–112 .

28] Camacho EF , Alba CB . Model predictive control. Springer Science & BusinessMedia; 2013 .

29] LeVeque R . Finite difference methods for ordinary and partial differential equa-

tions: steady-state and time-dependent problems (classics in applied mathe-matics classics in applied mathemat). Philadelphia, PA, USA: Society for Indus-

trial and Applied Mathematics; 2007 . ISBN 0898716292, 9780898716290 30] Crank J , Nicolson P . A practical method for numerical evaluation of solutions

of partial differential equations of the heat-conduction type. Math Proc Cam-bridge Philos Soc 1947;43:50–67 .

[31] Ogata K . Discrete-time control systems, 2. Prentice Hall Englewood Cliffs, NJ;

1995 . 32] Schirrer A , Talic E , Kozek M . A flexible MATLAB-based simulation framework

for dynamic catenary-pantograph interaction and co-simulation. In: Modellingand Simulation (EUROSIM), 2013 8th EUROSIM Congress on; 2013. p. 288–93 .

33] EN 50318: railway applications - current collection systems - validation ofsimulation of the dynamic interaction between pantograph and overhead con-

tact line.. Eur Committee Electrotechnical Standardization 2002 .

34] Bruni S , Ambrosio J , Carnicero A , Cho YH , Finner L , Ikeda M , et al. Theresults of the pantograph–catenary interaction benchmark. Veh Syst Dyn

2015;53(3):412–35 .

Page 12: Catenary emulation for hardware-in-the-loop pantograph ...nel entries and exits (via the robot’s motion) as well as vertical displacements in a broad frequency range (achieved via

28 A. Schirrer et al. / Mechatronics 41 (2017) 17–28

her of graduate-level lectures with the Institute of Mechanics and Mechatronics, Vienna

) and his Ph.D. degree (2011) in mechanical engineering from the Vienna University of s research interests include modeling, simulation, optimization, and control of linear and

ributed-parameter systems.

ical engineering from the Vienna University of Technology, Vienna, Austria, in 2014. Cur-

engineering and is a Project Assistant with the Institute of Mechanics and Mechatronics, impedance control and predictive control of test beds.

g from the Vienna University of Technology, Vienna, Austria, in 2013. From 2013 to 2015,

and Mechatronics, Vienna University of Technology, with a research focus on distributed .

ee (20 0 0), and habilitation (2009) in mechanical engineering in the field of control and , Vienna, Austria. He is currently a Professor with the Institute of Mechanics and Mecha-

terests include nonlinear systems modeling and identification, model-predictive process

gineering in 1997; his Ph.D. degree (20 0 0) and habilitation (20 07) from Vienna University s the Head of Development for Hybrid Powertrain Calibration and Battery Testing Tech-

stitute of Mechanics and Mechatronics, Vienna University of Technology, Vienna, Austria research interests include fault diagnosis, nonlinear system identification, modeling and

Alexander Schirrer is a Postdoctoral Researcher and Teac

University of Technology. received his M.S. degree (2007Technology, Vienna, Austria. Since 2011, he has been a Hi

nonlinear system, as well as modeling and control of dist

Guilherme Aschauer received his M.S. degree in mechan

rently he is working towards his Ph.D. degree in control Vienna University of Technology, with a research focus on

Emir Talic received his M.S. degree in electrical engineerin

he was a Project Assistant with the Institute of Mechanicsparameter systems modeling and parameter identification

Martin Kozek received his M.S. degree (1994), Ph.D. degrsystems theory from the Vienna University of Technology

tronics, Vienna University of Technology. His research in

control, and active control of structural vibrations.

Stefan Jakubek received his M.S. degree in mechanical enof Technology, Vienna, Austria. From 2007 to 2009, he wa

nology, AVL-List GmbH, Graz, Austria. He is head of the Inand full professor for control theory and applications. His

simulation, as well as control theory and applications.