Research Article

Location-Price Game in a Dual-Circle Market with Different Demand Levels

Algorithm 1

Location-price game algorithm.
(1)Initialize parameters , , , , and and compute .
(2)Initialize and with two random numbers in and , respectively.
(3)Set , , and .
(4)Compute and according to (23) and (24).
(5)Compute and according to (30).
(6)while or do
(7)whiledo
(8)  ,.
(9)  Compute and according to (23) and (24).
(10)  Compute according to (30).
(11)  Compute and according to (23) and (24).
(12)  Compute according to (30).
(13)  ifthen
(14)   , .
(15)  end if
(16)  ifthen
(17)   , .
(18)  end if
(19)end while
(20)whiledo
(21)  , .
(22)  Compute and according to (23) and (24).
(23)  Compute according to (30).
(24)  Compute and according to (23) and (24).
(25)  Compute according to (30).
(26)  ifthen
(27)   , .
(28)  end if
(29)  ifthen
(30)   , .
(31)  end if
(32)end while
(33)end while
(34)return and .