Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola...

61
Extremum Seeking for Nash Games in Financial and Energy Markets Miroslav Krstic (joint work with Paul Frihauf and Tamer Basar) ISIC/MCS, Yokohama 2010

Transcript of Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola...

Page 1: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Extremum Seeking for Nash Games

in Financial and Energy Markets

Miroslav Krstic

(joint work with Paul Frihauf and Tamer Basar)

ISIC/MCS, Yokohama 2010

Page 2: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

An Averaging Example

+ +

x = −sin(ωt)(x+sin(ωt))2

= −x2sin(ωt)︸ ︷︷ ︸

ave = 0

−2xsin2(ωt)︸ ︷︷ ︸

ave = 12

−sin3(ωt)︸ ︷︷ ︸

ave = 0

xave= −xave

Page 3: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

An Averaging Example

+ +

x = −sin(ωt)(x+sin(ωt))2

= −x2sin(ωt)︸ ︷︷ ︸

ave = 0

−2xsin2(ωt)︸ ︷︷ ︸

ave = 12

−sin3(ωt)︸ ︷︷ ︸

ave = 0

xave= −xave

Page 4: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

An Averaging Example

+ +

x = −sin(ωt)(x+sin(ωt))2

= −x2sin(ωt)︸ ︷︷ ︸

ave = 0

−2xsin2(ωt)︸ ︷︷ ︸

ave = 12

−sin3(ωt)︸ ︷︷ ︸

ave = 0

xave= −xave

Page 5: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

An Averaging Example

+ +

x = −sin(ωt)(x+sin(ωt))2

= −x2sin(ωt)︸ ︷︷ ︸

ave = 0

−2xsin2(ωt)︸ ︷︷ ︸

ave = 12

−sin3(ωt)︸ ︷︷ ︸

ave = 0

xave= −xave

Page 6: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Theorem 1 For sufficiently large ω, there exists a locally exponentially stable periodic

solution x2π/ω(t) such that

∣∣∣x2π/ω(t)

∣∣∣≤ O

(1ω

)

, ∀t ≥ 0.

Corollary 1 For sufficiently large ω, there exist M,m> 0 such that

|x(t)| ≤ M|x(0)|e−mt+O

(1ω

)

, ∀t ≥ 0.

Page 7: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Theorem 1 For sufficiently large ω, there exists a locally exponentially stable periodic

solution x2π/ω(t) such that

∣∣∣x2π/ω(t)

∣∣∣≤ O

(1ω

)

, ∀t ≥ 0.

Corollary 1 For sufficiently large ω, there exist M,m> 0 such that

|x(t)| ≤ M|x(0)|e−mt+O

(1ω

)

, ∀t ≥ 0.

Page 8: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Extremum Seeking—the Basic Idea

+ +

sgnk = −sgnf ′′

θ = θ−θ∗

dθdt

= kasin(ωt)

[

f ∗+f ′′

2

(θ+asin(ωt)

)2]

Page 9: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Extremum Seeking—the Basic Idea

+ +

sgnk = −sgnf ′′

θ = θ−θ∗

dθdt

= kasin(ωt)

[

f ∗+f ′′

2

(θ+asin(ωt)

)2]

Page 10: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

dθave

dt=

>0︷︸︸︷

k f ′′ a2

2θave

Theorem 2 There exists sufficiently large ω such that, locally,

|θ(t)−θ∗| ≤ |θ(0)−θ∗|ek f ′′a2

2 t +O

(1ω

)

+a, ∀t ≥ 0.

Page 11: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

dθave

dt=

>0︷︸︸︷

k f ′′ a2

2θave

Theorem 2 There exists sufficiently large ω such that, locally,

|θ(t)−θ∗| ≤ |θ(0)−θ∗|ek f ′′a2

2 t +O

(1ω

)

+a, ∀t ≥ 0.

Page 12: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

f ( (t))

f* - unknown!

Page 13: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

. .

Page 14: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Non-Cooperative Games

Multiple players, multiple cost functions.

Team optimization — ‘easy’ mulitvariable problems.

Selfish optimization — harder, because overall convexity is lost.

Simplest case: two players, zero-sum game (H∞ control). One saddle surface, equilibrium

at the saddle point.

Harder: two players, non-zero sum. Two saddle surfaces, equilibrium at the intersection of

their “ridges.”

Even harder: 3 or more players, Nash game

Page 15: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Non-Cooperative Games

Multiple players, multiple cost functions.

Team optimization — ‘easy’ mulitvariable problems.

Selfish optimization — harder, because overall convexity is lost.

Simplest case: two players, zero-sum game (H∞ control). One saddle surface, equilibrium

at the saddle point.

Harder: two players, non-zero sum. Two saddle surfaces, equilibrium at the intersection of

their “ridges.”

Even harder: 3 or more players, Nash game

Page 16: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Two Players — Duopoly

Coca-Cola vs. Pepsi

Boeing vs. Airbus

Let fA and fB be two firms that produce the same good and compete for profit by setting

their respective prices, vA and vB.

Profit model:

JA(t) = iA(t)(vA(t)−mA) ,

JB(t) = iB(t)(vB(t)−mB) ,

where iA and iB are the number of sales and mA and mB are the marginal costs.

Sales model where the consumer prefers fA:

iA(t) = I − iB(t), iB(t) =vA(t)−vB(t)

p,

where I are the total sales and p > 0 quantifies the preference of the consumer for fA.

Page 17: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Two Players — Duopoly

Coca-Cola vs. Pepsi

Boeing vs. Airbus

Let fA and fB be two firms that produce the same good and compete for profit by setting

their respective prices, vA and vB.

Profit model:

JA(t) = iA(t)(vA(t)−mA) ,

JB(t) = iB(t)(vB(t)−mB) ,

where iA and iB are the number of sales and mA and mB are the marginal costs.

Sales model where the consumer prefers fA:

iA(t) = I − iB(t), iB(t) =vA(t)−vB(t)

p,

where I are the total sales and p > 0 quantifies the preference of the consumer for fA.

Page 18: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Two Players — Duopoly

Coca-Cola vs. Pepsi

Boeing vs. Airbus

Let fA and fB be two firms that produce the same good and compete for profit by setting

their respective prices, vA and vB.

Profit model:

JA(t) = iA(t)(vA(t)−mA) ,

JB(t) = iB(t)(vB(t)−mB) ,

where iA and iB are the number of sales and mA and mB are the marginal costs.

Sales model where the consumer prefers fA:

iA(t) = I − iB(t), iB(t) =vA(t)−vB(t)

p,

where I are the total sales and p > 0 quantifies the preference of the consumer for fA.

Page 19: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

The profit functions JA(vA,vB) and JB(vA,vB) are both quadratic functions of the prices vA

and vB.

The Nash strategies are

v∗A =2mA+mB+2I p

3, v∗B =

mA+2mB+ I p3

.

How can the players ever know each other’s marginal costs, the customers preference, or

the overall market demand?

Page 20: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Extremum seeking applied by firms fA and fB in a duopoly

Page 21: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Simulation with mA = mB = 30, I = 100, p = 0.2.

0 10 20 30 40 50 60 7034

36

38

40

42

44

46

48

50

52

time (sec)

vA(t)

vB(t)

Prices

Page 22: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

0 10 20 30 40 50 60 700

20

40

60

80

100

time (sec)

iA(t)

iB(t)

Sales

Page 23: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

0 10 20 30 40 50 60 700

200

400

600

800

1000

1200

time (sec)

JA(t)

JB(t)

Profits

Page 24: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Theorem 3 Let ωA 6= ωB, 2ωA 6= ωB, and ωA 6= 2ωB. There exists ω∗ such that, for all

ωA,ωB > ω∗, if |∆(0)| is sufficiently small, then for all t ≥ 0,

|∆(t)| ≤ Me−mt|∆(0)|+O

(1

min(ωA,ωB)+max(aA,aB)

)

,

where

∆(t) = ( vA(t)−v∗A, vB(t)−v∗B )T

M =

√√√√

max(kAa2A,kBa2

B)

min(kAa2A,kBa2

B)

m =1

2pmin(kAa2

A,kBa2B)

Proof. Let τ = ωt and ω = min(ωA,ωB). The average system is

ddτ

(vaveA

vaveB

)

=1

2ωp

(−2kAa2

A kAa2A

kBa2B −2kBa2

B

)(vaveA

vaveB

)

.

Q.E.D.

Page 25: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Theorem 3 Let ωA 6= ωB, 2ωA 6= ωB, and ωA 6= 2ωB. There exists ω∗ such that, for all

ωA,ωB > ω∗, if |∆(0)| is sufficiently small, then for all t ≥ 0,

|∆(t)| ≤ Me−mt|∆(0)|+O

(1

min(ωA,ωB)+max(aA,aB)

)

,

where

∆(t) = ( vA(t)−v∗A, vB(t)−v∗B )T

M =

√√√√

max(kAa2A,kBa2

B)

min(kAa2A,kBa2

B)

m =1

2pmin(kAa2

A,kBa2B)

Proof. Let τ = ωt and ω = min(ωA,ωB). The average system is

ddτ

(vaveA

vaveB

)

=1

2ωp

(−2kAa2

A kAa2A

kBa2B −2kBa2

B

)(vaveA

vaveB

)

.

Q.E.D.

Page 26: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Oligopoly ( N Players)

Let mi be the marginal cost of fi , i i its sales volume, and the profit is

Ji(t) = i i(t)(vi(t)−mi)

A model of sales i1, i2, i3 in a three-firm oligopoly with prices v1, v2, v3, and total sales I .

The desirability of product i is proportional to 1/Ri.

Page 27: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

For N players, the sales volume is obtained as

i i(t) =R||

Ri

I −vi(t)Ri

+N

∑j = 1j 6= i

v j(t)

Rj

,

R|| =

(N

∑k=1

1Rk

)−1

, Ri =

N

∑k = 1k 6= i

1Rk

−1

Page 28: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

The Nash equilibrium of this game is given by

v∗i =ΛRi

2Ri + Ri

(

RiI +mi +N

∑j=1

mjRi −miRj

2Rj + Rj

)

,

where

Λ =

(

1−N

∑j=1

Rj

2Rj + Rj

)−1

> 0

The profit Ji , in electrical analogy, corresponds to the power absorbed by the vi−mi portion

of the voltage generator i.

Page 29: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Ji(t) = i i(t)(vi(t)−mi)

The profit Ji , in electrical analogy, corresponds to the power absorbed by the vi−mi portion

of the voltage generator i.

Page 30: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Extremum seeking strategy:

dvi(t)dt

= kiµi(t)Ji(t)

µi(t) = ai sin(ωit +ϕi)

vi(t) = vi(t)+µi(t)

Page 31: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Simulation with m1 = 22, m2 = 20, m3 = 26, m4 = 20, I = 100, R1 = 0.25, R2 = 0.78,

R3 = 1.10, and R4 = 0.40.

0 50 100 150 200

35

40

45

50

time (sec)

v1(t)

v2(t)

v3(t)

v4(t)

Prices

Page 32: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

0 50 100 150 2000

10

20

30

40

50

60

time (sec)

i1(t)

i2(t)

i3(t)

i4(t)

Sales

Page 33: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

0 50 100 150 2000

100

200

300

400

500

600

700

time (sec)

J1(t)

J2(t)

J3(t)

J4(t)

Profits

Page 34: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Theorem 4 Let ωi 6= ω j , 2ωi 6= ω j for all i 6= j , i, j = 1, . . . ,N. There exists ω∗ such that,

for all mini ωi > ω∗, if |∆(0)| is sufficiently small, then for all t ≥ 0,

|∆(t)| ≤ Ξe−ξt|∆(0)|+O

(1

mini ωi+max

iai

)

,

where

∆(t) = ( v1(t)−v∗1, . . . , vN(t)−v∗N )T

Ξ =

√√√√

maxikia2i

minikia2i

ξ =R||minikia

2i

2maxiRiΓiΓi = min

j∈1,...,N, j 6=iRj

Page 35: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Proof. Let τ = ωt where ω = mini ωi. The average system is obtained as ddτvave = Avave

where

A =R||

−2k1a2

1R1R1

k1a21

R1R2· · ·

k1a21

R1RNk2a2

2R2R1

−2k2a2

2R2R2... . . .

kNa2N

RNR1−

2kNa2N

RNRN

.

Let V = (vave)TPvave be a Lyapunov function, where P = ωR||

diag

(

1k1a2

1, . . . , 1

kNa2N

)

and

satisfies the Lyapunov equation PA+ATP = −Q,

Q =

2R1R1

− 1R1R2

· · · − 1R1RN

− 1R2R1

2R2R2... . . .

− 1RNR1

2RNRN

.

Page 36: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

The matrix Q is positive definite symmetric and diagonally dominant, namely,

N

∑j = 1j 6= i

∣∣qi, j

∣∣=

1RiRi

<2

RiRi=∣∣qi,i∣∣ .

From the Gershgorin Theorem, λi(Q) ∈ 1RiRi

[1,3], which implies that

λmin(Q) >1

maxiRiRi>

1maxRiΓi

.

Q.E.D.

Page 37: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Continuum of Players

Renewable Energy

Production

Traditional Energy Production

Power Grid

Households

Page 38: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Oligopoly w/ uncountably many non-atomic players, indexed by continuum index x∈ [0,1].

The profit of firm f (x):

J(x, t) = i(x, t)(v(x, t)−m(x)) ,

with the sales modeled as

i(x, t) =R||

R(x)

(

I −v(x, t)

R||+

Z 1

0

v(y, t)R(y)

dy

)

,

R|| =

(Z 1

0

dyR(y)

)−1

.

The Nash equilibrium values of the prices and the corresponding sales are

v∗(x) = R||

(

I +12

m(x)R||

+12

Z 1

0

m(y)R(y)

dy

)

,

i∗(x) =R||

R(x)

(

I −12

m(x)R||

+12

Z 1

0

m(y)R(y)

dy

)

.

Page 39: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Oligopoly w/ uncountably many non-atomic players, indexed by continuum index x∈ [0,1].

The profit of firm f (x):

J(x, t) = i(x, t)(v(x, t)−m(x)) ,

with the sales modeled as

i(x, t) =R||

R(x)

(

I −v(x, t)

R||+

Z 1

0

v(y, t)R(y)

dy

)

,

R|| =

(Z 1

0

dyR(y)

)−1

.

The Nash equilibrium values of the prices and the corresponding sales are

v∗(x) = R||

(

I +12

m(x)R||

+12

Z 1

0

m(y)R(y)

dy

)

,

i∗(x) =R||

R(x)

(

I −12

m(x)R||

+12

Z 1

0

m(y)R(y)

dy

)

.

Page 40: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Extremum seeking algorithm:

∂∂t

v(x, t) = k(x)µ(x, t)J(x, t)

µ(x, t) = a(x)sin(ω(x)t +ϕ(x))

v(x, t) = v(x, t)+µ(x, t)

where a(x),k(x) > 0, for all x∈ [0,1].

Let Ωω be the set of bounded functions ω : [0,1] → R+ such that, at each element

of the set ω([0,1]) ∪ 2ω([0,1]), the level set of ω is of measure zero, and where

minx∈[0,1] ω(x) > 0.

(The set Ωω contains all functions that are either strictly increasing or strictly decreasing,

as well as all bounded C1[0,1] positive functions whose derivative is zero on a set of

measure zero.)

Page 41: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Extremum seeking algorithm:

∂∂t

v(x, t) = k(x)µ(x, t)J(x, t)

µ(x, t) = a(x)sin(ω(x)t +ϕ(x))

v(x, t) = v(x, t)+µ(x, t)

where a(x),k(x) > 0, for all x∈ [0,1].

Let Ωω be the set of bounded functions ω : [0,1] → R+ such that, at each element

of the set ω([0,1]) ∪ 2ω([0,1]), the level set of ω is of measure zero, and where

minx∈[0,1] ω(x) > 0.

(The set Ωω contains all functions that are either strictly increasing or strictly decreasing,

as well as all bounded C1[0,1] positive functions whose derivative is zero on a set of

measure zero.)

Page 42: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Extremum seeking algorithm:

∂∂t

v(x, t) = k(x)µ(x, t)J(x, t)

µ(x, t) = a(x)sin(ω(x)t +ϕ(x))

v(x, t) = v(x, t)+µ(x, t)

where a(x),k(x) > 0, for all x∈ [0,1].

Let Ωω be the set of bounded functions ω : [0,1] → R+ such that, at each element

of the set ω([0,1]) ∪ 2ω([0,1]), the level set of ω is of measure zero, and where

minx∈[0,1] ω(x) > 0.

(The set Ωω contains all functions that are either strictly increasing or strictly decreasing,

as well as all bounded C1[0,1] positive functions whose derivative is zero on a set of

measure zero.)

Page 43: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Theorem 5 There exists ω∗ such that, for all functions ω ∈ Ωω∗, if the L2[0,1] norm of

∆(x,0) is sufficiently small, then for all t ≥ 0,

Z 1

0∆2(x, t)dx≤ Σe−σt

Z 1

0∆2(x,0)dx+O

(1

minxω2(x)+max

xa2(x)

)

,

where

∆(x, t) = v(x, t)−v∗(x)

Σ =maxxk(x)a2(x)

minxk(x)a2(x)

σ =minxk(x)a2(x)

maxxR(x)

Page 44: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Proof. Error system

∂∂t

v(x, t) =k(x)R(x)

G[v,R, i∗,µ](x, t),

with the operator G defined as

G[v,R, i∗,µ](x, t) , µ(x, t)

[(

R(x)i∗(x)− v(x, t)+

⟨R||

R, v

⟩)

(R(x)i∗(x)+ v(x, t))

+µ(x, t)

(

−2v(x, t)+

⟨R||

R, v

⟩)

+

⟨R||

R,µ

(R(x)i∗(x)+ v(x, t)) +µ(x, t)

⟨R||

R,µ

−µ2(x, t)

]

,

where 〈a,b〉 ,R 10 a(y)b(y)dy.

Recall: µ(x, t) = a(x)sin(ω(x)t +ϕ(x))

Page 45: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Let ω = minxω(x), γ(x) = ω(x)/ω, and τ = ωt.

To apply infinite-time averaging (“general averaging”) to the infinite dimensional system, we

have to compute various integrals and verify the conditions of the dominated convergence

theorem for their integrands, to justify swapping the order of integrals in x and limits in τ.

We obtain the average system

∂∂τ

vave(x,τ) = −k(x)a2(x)

ωR(x)vave(x,τ)+

R||

2k(x)a2(x)

ωR(x)

Z 1

0

vave(y,τ)R(y)

dy

Page 46: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Let ω = minxω(x), γ(x) = ω(x)/ω, and τ = ωt.

To apply infinite-time averaging (“general averaging”) to the infinite dimensional system, we

have to compute various integrals and verify the conditions of the dominated convergence

theorem for their integrands, to justify swapping the order of integrals in x and limits in τ.

We obtain the average system

∂∂τ

vave(x,τ) = −k(x)a2(x)

ωR(x)vave(x,τ)+

R||

2k(x)a2(x)

ωR(x)

Z 1

0

vave(y,τ)R(y)

dy

Page 47: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Let V(τ) be a Lyapunov functional defined as

V(τ) =ω2

Z 1

0

1

k(x)a2(x)

(vave)2(x,τ)dx

and bounded by

ωR 10 (vave)2(x,τ)dx

2maxxk(x)a2(x)≤V(τ) ≤

ωR 10 (vave)2(x,τ)dx

2minxk(x)a2(x)

Taking the time derivative and applying the Cauchy-Schwarz inequality, we obtain

V ≤−12

Z 1

0

(vave)2(x,τ)R(x)

dx

From the infinite-dimensional averaging theory in [Hale and Verduyn Lunel, 1990], the

result of the theorem follows.

Q.E.D.

Page 48: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

General Nonquadratic Games with N Players

Consider the payoff function of player i:

Ji = hi(ui,u−i)

where ui ∈ R is player i’s action and u−i = [u1, . . . ,ui−1,ui+1, . . . ,uN] represents the ac-

tions of the other players.

ES strategy:

˙ui(t) = kiµi(t)Ji(t)

µi(t) = ai sin(ωit +ϕi)

ui(t) = ui(t)+µi(t)

Page 49: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

General Nonquadratic Games with N Players

Consider the payoff function of player i:

Ji = hi(ui,u−i)

where ui ∈ R is player i’s action and u−i = [u1, . . . ,ui−1,ui+1, . . . ,uN] represents the ac-

tions of the other players.

ES strategy:

˙ui(t) = kiµi(t)Ji(t)

µi(t) = ai sin(ωit +ϕi)

ui(t) = ui(t)+µi(t)

Page 50: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Assumption 1 There exists at least one (possibly multiple) isolated Nash equilibrium u∗ =

[u∗1, . . . ,u∗N] such that

∂hi

∂ui(u∗) = 0,

∂2hi

∂u2i

(u∗) < 0,

for all i ∈ 1, . . . ,N.

Assumption 2 The matrix

Λ =

∂2h1(u∗)

∂u21

∂2h1(u∗)

∂u1∂u2· · ·

∂2h1(u∗)

∂u1∂uN

∂2h2(u∗)

∂u1∂u2

∂2h2(u∗)

∂u22... . . .

∂2hN(u∗)∂u1∂uN

∂2hN(u∗)∂u2

N

is diagonally dominant and hence, nonsingular.

Page 51: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Assumption 1 There exists at least one (possibly multiple) isolated Nash equilibrium u∗ =

[u∗1, . . . ,u∗N] such that

∂hi

∂ui(u∗) = 0,

∂2hi

∂u2i

(u∗) < 0,

for all i ∈ 1, . . . ,N.

Assumption 2 The matrix

Λ =

∂2h1(u∗)

∂u21

∂2h1(u∗)

∂u1∂u2· · ·

∂2h1(u∗)

∂u1∂uN

∂2h2(u∗)

∂u1∂u2

∂2h2(u∗)

∂u22... . . .

∂2hN(u∗)∂u1∂uN

∂2hN(u∗)∂u2

N

is diagonally dominant and hence, nonsingular.

Page 52: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Theorem 6 Let ωi 6= ω j , ωi 6= ω j + ωk, 2ωi 6= ω j + ωk, and ωi 6= 2ω j + ωk for all i, j ,

k ∈ 1, . . . ,N. Then there exists ω∗, a and M, m> 0 such that, for all mini ωi > ω∗ and

ai ∈ (0, a), if |∆(0)| is sufficiently small, then for all t ≥ 0,

∣∣∆(t)

∣∣≤ Me−mt∣∣∆(0)

∣∣+O

(

maxi

a3i

)

,

where

∆(t) =[

u1(t)−u∗1−∑Nj=1c1

j j a2j , . . . , uN(t)−u∗N−∑N

j=1cNj j a

2j

]

c1ii...

ci−1iiciii

ci+1ii...cNii

= −14Λ−1

∂3h1∂u1∂u2

i(u∗)

...∂3hi−1

∂ui−1∂u2i(u∗)

12

∂3hi∂u3

i(u∗)

∂3hi+1∂u2

i ∂ui+1(u∗)

...∂3hN

∂u2i ∂uN

(u∗)

Page 53: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Numerical Example with Dynamics and Non-Quadratic Payoffs

Page 54: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

x1 = −4x1+x1x2+u1

x2 = −4x2+u2

J1 = −16x21+8x2

1x2−x21x2

2−4x1x22+15x1x2+4x1

J2 = −64x32+48x1x2−12x1x2

2

Steady-state payoffs

J1 = −u21+u1u2+u1

J2 = −u32+3u1u2

Reaction curves

l1 ,

u1 =12

(u2+1)

l2 ,

u22 = u1

Page 55: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

x1 = −4x1+x1x2+u1

x2 = −4x2+u2

J1 = −16x21+8x2

1x2−x21x2

2−4x1x22+15x1x2+4x1

J2 = −64x32+48x1x2−12x1x2

2

Steady-state payoffs

J1 = −u21+u1u2+u1

J2 = −u32+3u1u2

Reaction curves

l1 ,

u1 =12

(u2+1)

l2 ,

u22 = u1

Page 56: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

x1 = −4x1+x1x2+u1

x2 = −4x2+u2

J1 = −16x21+8x2

1x2−x21x2

2−4x1x22+15x1x2+4x1

J2 = −64x32+48x1x2−12x1x2

2

Steady-state payoffs

J1 = −u21+u1u2+u1

J2 = −u32+3u1u2

Reaction curves

l1 ,

u1 =12

(u2+1)

l2 ,

u22 = u1

Page 57: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

−1 0 1 2 3−2

−1.5

−1

−0.5

0

0.5

1

1.5

2

u1

u2

(1, 1)

(1/4, −1/2)

l1

l2

Page 58: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

−2

0

2

4

−3−2−10123

−40

−20

0

20

u1

J2

l1

l2

J1

u2

payoff

−1 0 1 2 3−2

−1.5

−1

−0.5

0

0.5

1

1.5

2

u1

u2

(1, 1)

(1/4, −1/2)

l1

l2

Page 59: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

−2

0

2

4

−3−2−10123

−40

−20

0

20

u1

J2

l1

l2

J1

u2

payoff

−1 0 1 2 3−2

−1.5

−1

−0.5

0

0.5

1

1.5

2

u1

u2

(1, 1)

(1/4, −1/2)

l1

l2

u1

u2

l1l2

(u∗

1+ δ, u∗

2+ 2δ)

≈ (u∗

1− a2

2/12, u∗

2− a2

2/6)

u1

u2

l1 l2

(v∗

1+ δ, v∗

2+ 2δ)

≈ (v∗

1+ a2

2/12, v∗

2+ a2

2/6)

Page 60: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

−0.5 0 0.5 1 1.5 2 2.5 3

−1

−0.5

0

0.5

1

1.5

2

2.5

uave1

uave

2

0.96 0.98 1

0.96

0.98

1

Page 61: Extremum Seeking for Nash Games in Financial and Energy ... · Two Players — Duopoly Coca-Cola vs. Pepsi Boeing vs. Airbus Let fA and fB be two firms that produce the same good

Summary

• ES solves games w/o knowledge of the player’s own payoff model and w/o knowledge

of the actions or payoffs of the opponents.

• Stochastic counterparts of the ES methods also developed (for finitely many players

so far).