
 
3 MODEL 
In oligopolistic markets, the decisions of each firm 
don’t only affect their own profit but also the profit 
of their competitors. Therefore, firms react to the 
actions of their competitors and in every decision the 
companies consider not only the direct impact on 
their income, but also the reaction effects of 
competitors. This so-called oligopolistic 
interdependence lays the foundation in modeling the 
market behavior as a multi-agent system. There are 
several reasons for choosing the multi-agent 
approach, although the game theory was about to be 
chosen as the theoretical basis. However, for games 
with more than two players the results of the game 
theory approach are far from building a constructive 
design scheme. Even in games with no coalitions 
there is no exact algorithm for finding equilibrium in 
general, because it is very difficult to consider the 
real constraints on the strategy of all players 
analytically. For coalition games claim the existence 
of equilibrium was not even proven, so we will find 
the solution of the problem in another way, with the 
agent modeling method.  
Let us determine the following factors in the 
model: 
-  Consumer - a vehicle with the driver. It is 
characterized by the type of fuel being used and fuel 
tanks capacity, the use of fuel per 100 km, the 
frequency and range of travel, the propensity to 
traveling and saving money.  
-  Gas Station - a gas station that provides services 
to consumers and the companies, which buy fuel for 
their vehicles. It is characterized by the volume of 
containers for storage, type of fuel, its availability, 
and geographical location. 
-  Refinery station, which is characterized by type 
of fuel it produces, volumes of containers for 
storage, fuel prices. 
-  Country is an agent that displays activity of the 
state and sets a number of rules for the market 
functioning and import-export operations. 
-  Trader is a mediator between refineries and gas 
stations. Sells fuel in bulk, making transportation to 
the appropriate object. Characterized by means of 
transportation and storage facilities for fuel. 
The environment also holds information about the 
concentration and location of agents in the country, 
the transport grid, grid with railroad connections. 
Each agent has its own program behavior based 
on finite-state machines, which describes its 
condition and the conditions of transition from one 
state to another. 
Each agent can communicate with any other 
agent through the messaging mechanism. Thus the 
«consumer», that is within visibility range of certain 
agent of a «station» will be able to receive notice of 
the price on its fuel. Similarly «station» agents will 
be able to receive data available in the region traders 
and their prices. Also, each agent has a specific set 
of actions with which he manipulates the state of the 
environment. For example, for the «consumer» 
agents they are: go (move around the environment), 
refuel and wait. In case of failure of any agent to act 
in the market (the agent goes bankrupt) he is 
removed from the model. Similarly, agents may also 
enter the model. Inputs for the model are: 
}
SLOCPNPZM ,,,,
, 
where 
m
t
PZ
- For purchases of fuel by network S in t 
time; 
m
PN
-  The original retail price of network m; 
m
k
LOC
- The location of station k of network m; 
ji
S
,
-  Number of consumers of fuel in the square 
with coordinates (i,j); 
-  The number of retail networks; 
The main mechanism for the distribution of fuel 
consumed is the function of demand, taking into 
account not only for a particular network, but also 
the maximum possible demand. 
 
max
,
i
AZS
ij
ji
DN
D
Bp C p
≠
⎧
⋅
⎪
=
⎨
−+
⎪
⎩
∑
 
The model of agents’ behavior relies on rule-based 
algorithm, proposed in [1]. Variables and logical 
conditions were added in the implemented algorithm 
to model collusion between the agents. The 
collusion is valid until significant changes happen in 
the agent’s input parameters. 
In account of this it is possible to make an algorithm 
for the agent: 
1.  Set the price specified in the preceding period 
2.  Collect data for neighbors 
3.  Get prices for fuel 
4.  Get on the environment of consumers for the 
current period 
5.  Determine the cost of 1 liter fuel, taking the fixed 
costs into account 
6.  Forecast fuel demand, given the cost of fuel, the 
current price and the price of neighboring agents to 
forecast demand for fuel 
MultiagentModelofStabilizingofPetroleumProductsMarket
315