Information Technology Reference
In-Depth Information
Figure 5. Algorithm 1: Buyers collected offer
IF Sell.amount > Buy.amount
{ Get friend (|Buy.amount - Sell.amount|, Buyer) // form a buyer's consortium
IF ( Σ (amount_from_friends) + Buy.amount = Sell.amount)
DO transaction
}
ELSE DO transaction
Figure 6. Algorithm 2: Sellers collected offer
IF Sell.amount < Buy.amount
{ Get friend (|Buy.amount - Sell.amount|, Seller) //form a seller's consortium
IF (Sell.amount +Σ (amount_from_friends) = Buy.amount)
DO transaction
}
ELSE DO transaction
I
∑
b
s
Q q
=
i
j
i
=
1
then the transaction will be considered to have occurred (t
8
and P7).
For buyers' and sellers' consortium offers, each trading agent must evaluate joined volumes and
evaluation algorithms are described in Figure 5 and Figure 6
.
There are six scenarios that describe the trading transactions, summarized for the purpose of action,
in two algorithms:
•
Scenario 1:
In case of buyer's intended buying volume is equal to the seller's selling volume, the
seller can do transaction without the help of the consortium. (Auction case 1)
•
Scenario 2:
In case of buyer's intended buying volume is not meet the seller's selling volume and
there is no possibility of forming neither seller's consortium nor the buyer's consortium. (Auction
case 1)
•
Scenario 3:
In case of seller's intended selling volume is smaller than a buyer's intended buying
volume, the sellers could form a consortium and their collected volume meets the buyer's required
volume. (Auction case 2)
•
Scenario 4:
In case of seller's intended selling volume is greater than a buyer's intended buying
volume, the seller tried to form a consortium but fail to meet the buyer's required volume. (Auction
case 2)
Search WWH ::
Custom Search