Dynamics_and_Control_of_Supply_and_Deman
Dynamics_and_Control_of_Supply_and_Deman
Abstract
Dynamic model of a single-commodity, single-supplier, supply-and-demand
interaction is defined, which includes a psychological factor. The effect of such
factor in terms of stability is rigorously analyzed. The possibility of a maximum-
profit control is further explored. Finally, an optimal-quadratic control is devised
and applied to the process and its outcomes are presented and interpreted.
Introduction
We regard a simple dynamic model of an economic process (e.g., [3]), herein a
single-commodity, single-supplier, supply-and-demand interaction, as a 2 nd-order
linear equation where the demand d and the supply s both in terms of product-units
per process-stage are the state-variables and the market-price p of a product-unit
and the supply-command u s are the control variables, both are to be determined by
with a 1st-order lag whose time-constant is of a real positive value. This is:
s u
s s (2)
Where:
s = Supply
= Supply time-constant
u s = Supply-command
2
Where:
d p
x ; u ;
s u s
c c a 0
Fc ; Gc ;
0 1 / 0 1/
Passing to the discrete-time domain with a unity (say, one day) time-step or stage,
we have:
xk 1 Fxk Guk (4)
Where:
k = Stage (day) index
F exp( Fc ) I Fc ; G Gc ;
12
0.8
10
0.6
8
0.4 6
4
0.2
2
0 0
0 5 10 15 20 25 30 0 5 10 15 20 25 30
Time [day] Time [day]
Maximum-Profit Control
Assuming a unity production-cost per product-unit, the supplier theoretical
maximum (TM) daily profit g k is given by:
g k pk d k sk (5)
Where:
1 0
Amp ; Bmp 0 1 ;
0 0
The supplier objective is to maximize its accumulated TM profit over time, that is,
to maximize the functional:
N
J (xTk Ampu k Bmp xk ) (6)
k 1
Where:
order to compute these gains, we substitute (13) into (11). This yields (terms
without a stage index belong to the k stage):
5
1 T
xk k xk k xk xkT Amp (C x x Co )k Bmp xk
2
1
[( F C xG ) x GCo )]Tk k 1[( F C xG ) x GCo )]k
2
k 1[( F C xG ) x GCo )]k
(16)
Equating the coefficients of the quadratic terms in xk on both sides of (16) yields:
k 2 Amp C x ( F GC x )T k 1 ( F GC x ) (17)
Which together with (14) is a discrete Riccati equation that can be formally solved
backwards offline, ahead of time from properly prescribed end condition, e.g.,:
N 0
C x, N 0
Which together with (15) is a linear regression in that can be formally solved
backwards simultaneously with (16), offline, ahead of time from properly
prescribed end condition, e.g.,:
N 0
Co , N 0
to their steady-state values and use these values as constant gains online in real-
time. The existence of solutions to regressions (17) and (18) would validate the
maximum-profit solution (13). Unfortunately however, equations (17) and (18) do
not appear to have solutions, therefore the maximum-profit control in its present
definition does not seem to exist.
The DFE in the discrete cost-to-go J k* in the quadratic case has been defined in [2]
as:
Where S is a symmetrical matrix with positive diagonal and the optimal control uk
Where: S k , Ck are precomputable offline, ahead of time, via the discrete backwards
Riccati equation:
S k A C T BC ( F GC )T S k 1 ( F GC ) (23)
Which may be conveniently used in the control design (see below) in order to
foresee and avoid a too low steady-state price.
7
reassuring that the optimal LQ control strictly stabilizes the system. The matrix
sensitivities of the steady-state demand and supply to the control parameters d o and
3.1891 - 2.4670
so in this example comes out as: K . To design the optimal
0.6796 - 0.5141
control, the supplier first assigns his desired values for the steady-state supply and
demand. Let us assume that the supplier production-line is capable of producing
100 product-units per day. Then, the supplier might feel reasonably safe to request:
sss 90
d ss 100
With this choice and by: xo K 1xss , the supplier now assigns: d o 4594.0 and
d (0) 1 which may be achieved by advertizing of the new product. The simulation
histories of the closed-loop system states are given in Figs. 3 to 6 below. Figs. 3 and
4 show good agreement to the supplier desired steady-state supply and demand
8
values, where in order to secure a stable market demand, the supply continuously
lags the demand by the presently desired safety-margin of 10%. In Fig. 6 we further
see that the optimal price in the first 3 days of the process is negative. These
supplier expenses can be interpreted as the cost of penetrating the market.
Nevertheless, the present example steady-state price of about 10 expresses a quite
solid supplier profit of about 9:1.
80 80
60 60
40 40
20 20
0 0
0 5 10 15 20 25 30 0 5 10 15 20 25 30
Time [day] Time [day]
88
0
86
-10
84
-20
82
-30
80
78 -40
0 5 10 15 20 25 30 0 5 10 15 20 25 30
Time [day] Time [day]
Conclusions
Dynamic model of a single-commodity, single-supplier, supply-and-demand
interaction has been defined and analyzed. It has been shown that a positive
hysteria-factor (c) destabilizes the open-loop process and brings it to a state of
crisis. It has been further shown that there are no price and supply policies that can
maximize the supplier profit. Finally, it has been demonstrated that since optimal
9
linear-quadratic control always strictly stabilizes the process, it may as well put it in
a steady supplier-profitable state.
References
[1] E.G. Al’brekht, “On the Optimal Stabilization of Nonlinear Systems,”
PMM, Vol. 25, No. 5, 1961, pp. 836-844, J. Appl. Math. Mech., 1962, pp.
1254-1266.
[2] R.E. Bellman, “Introduction to the Mathematical Theory of Control
Processes,” Volume II, Academic Press, 1971, pp. 16-21.
[3] D.G. Luenberger, “Introduction to Dynamic Systems,” John Wiley & Sons,
1979, pp. 6-8.