Preprint
Article

This version is not peer-reviewed.

Lexicographic Preferences Similarity for Coalition Formation in Complex Markets: Introducing PLPSim, HRECS, ContractLex, PriceLex, F@LeX, and PLPGen

A peer-reviewed article of this preprint also exists.

Submitted:

26 December 2025

Posted:

31 December 2025

You are already at the latest version

Abstract

Lexicographic Preference Trees (LP-Trees) offer a compact and expressive framework for modeling complex decision-making scenarios. However, efficiently measuring similarity between complete or partial structures remains a challenge. This study introduces PLPSim, a novel metric for quantifying alignment between Partial Lexicographic Preference Trees (PLP-Trees), and develops three coalition formation algorithms—HRECS1, HRECS2, and HRECS3—that leverage PLPSim to group agents with similar preferences. We further propose ContractLex and PriceLex protocols (comprising five lexicographic protocols CLF, CFB, CFW, CFA, CFP), along with a new evaluation metric, F@LeX, designed to assess satisfaction under lexicographic preferences. To illustrate the framework, we generate a synthetic dataset (PLPGen) contextualized in a hybrid renewable energy market, where consumer PLP-Trees are matched with supplier tariffs to optimize coalition outcomes. Experimental results, evaluated using Normalized Discounted Cumulative Gain (nDCG), Davies–Bouldin dispersion, and F@LeX, show that PLPSim-based coalitions outperform baseline approaches. Notably, the combination HRECS3 + CFP yields the highest consumer satisfaction, while HRECS3 + CFB achieves balanced satisfaction for both consumers and suppliers. Although electricity tariffs and renewable energy contracts—both static and dynamic—serve as the motivating example, the proposed framework generalizes to broader multiagent systems, offering a foundation for preference-driven coalition formation, adaptive policy design, and sustainable market optimization.

Keywords: 
;  ;  ;  ;  ;  ;  ;  ;  

1. Introduction

Decision-making in multiagent systems often requires reconciling heterogeneous preferences to achieve collective outcomes that balance efficiency, fairness, and personalization. Lexicographic Preference Trees (LP-Trees) have emerged as a compact and intuitive representation of agent priorities, capturing structured decision rules in a way that is both expressive and computationally manageable. However, efficiently measuring similarity between such structures—particularly when they are incomplete or partial (PLPs)—remains a persistent challenge. Without robust similarity measures, coalition formation and preference aggregation risk being misaligned, limiting their effectiveness in complex markets where diverse stakeholders must coordinate.
To address this gap, we propose PLPSim, a new measure for quantifying similarity between PLP-Trees. PLPSim enables agents with comparable lexicographic preferences to be grouped into coalitions, thereby facilitating contract formation and collective decision-making. Building on this foundation, we design coalition formation algorithms that operationalize PLPSim, allowing diverse stakeholders to align their priorities through structured coalition mechanisms. Recognizing the importance of evaluation, we further introduce F@LeX, a novel metric tailored to lexicographic preferences, which provides a principled way to assess coalition quality and preference satisfaction. As for the need for PLP-tree dataset, we generate a synthetic dataset by presenting PLPGen algorithm. Together, PLPSim, ContractLex and PriceLex variants, and F@LeX form a methodological framework that advances preference-driven coalition formation in multiagent systems.
The relevance of this framework can be appreciated in light of prior research. Foundational studies in computational social choice have explored the representation and learning of lexicographic preferences [1,2], while more recent work has examined clustering and complexity aspects of partial LP-Trees [3,4]. Coalition formation and mechanism design have also been studied extensively in electronic commerce and group-buying contexts [5], highlighting the importance of cost-sharing and preference alignment. In parallel, preference disaggregation and aggregation methods have been advanced in decision support systems [6,7], underscoring the need for rigorous similarity measures. Our study builds on these strands by introducing PLPSim as a dedicated similarity measure for PLPs and by proposing coalition algorithms that directly leverage this measure.
As an illustrative case study, we contextualize the framework within hybrid renewable energy tariffs, a domain characterized by diverse consumer priorities, supplier strategies, and policy constraints. Prior studies have examined macro-level mechanisms such as feed-in-tariff policies [8], adaptive strategy optimization using evolutionary game theory and reinforcement learning [9], and risk-sharing support schemes to mitigate spot price volatility [10]. Broader reviews of hybrid renewable energy systems optimization highlight the role of metaheuristic algorithms, simulation tools, and emerging technologies in improving efficiency and sustainability [11,12]. Additional research has applied game-theoretical methods to electricity markets [13] and evolutionary game theory to complex systems optimization [14]. While these studies emphasize system-level or policy-level design, our work focuses on micro-level coalition mechanisms, where consumer PLP-Trees are aggregated and matched with supplier tariffs to improve personalization, efficiency, and fairness.
In summary, this study advances a methodological framework rather than prescribing domain-specific results. It contributes (i) PLPSim, a new similarity measure for complete and partial LP-Trees; (ii) coalition formation algorithms that leverage PLPSim to group agents with similar preferences; (iii) ContractLex and PriceLex, personalised coalition-based contracts and pricing strategies; (iv) PLPGen synthetic data generator; (v) F@LeX, a novel evaluation metric for lexicographic preferences; and (vi) an illustrative case study in hybrid renewable energy tariffs that demonstrates the practical utility of the framework. While electricity tariffs serve as the motivating example, the proposed approach generalizes to diverse multiagent systems, offering a versatile foundation for preference-driven coalition formation, adaptive policy design, and broader system optimization.
Organization of the article. Related works are reviewed in Section 2; the method is proposed in Section 3; the experimental results are illustrated in Section 4; and the article is concluded with future avenues in Section 5.

2. Literature Review

2.1. Background and Related Works

Lexicographic Preferences and Similarity Measures. Research on lexicographic preferences has provided the foundation for compact representation and reasoning in multiagent systems. Early contributions introduced computational social choice frameworks [15], conditional lexicographic preference learning [1], and multi-agent conditional preference networks [16]. More recent work has focused on clustering partial LP-Trees [3], analyzing the complexity of unsupervised learning [4], and exploring the geometry of preference aggregation [7]. Especially, the contemporary PLPDis method computes the distance between complete or partial Lexicographic Preferences (PLP) [3]. This process forgets some edges when computing the alternatives’ ranks in partial LPs; thus, it does not calculate the correct distance between PLPs. These studies highlight the importance of efficient similarity measures, motivating our proposal of PLPSim.
Coalition Formation and Mechanism Design. Coalition formation has been widely studied in electronic commerce and group-buying markets, emphasizing mechanism design and cost sharing [5]. Efficient coalition protocols have also been applied to electricity tariffs [17], while incentive mechanisms for renewable energy integration have been explored through game-theoretic approaches [18]. Forming a group buying coalition will benefit both parties in the market [5]. Our work builds on these foundations by introducing coalition algorithms that directly leverage preference similarity measures.
Preference Aggregation and Evaluation Methods. Preference disaggregation and aggregation methods have advanced decision support systems [6,19], while we extend the proposed computational framework for lexicographic contracts in hybrid energy contexts [20]. To evaluate coalition quality, metrics such as nDCG and Davies–Bouldin dispersion have been used in clustering and ranking tasks [21,22,23]. Our study develops this line of work by introducing F@LeX, a dedicated evaluation metric for lexicographic preferences, coalition formation algorithms, and lexicographic contract design. Moreover, our PLPGen is the first PLP-tree dataset generator.
Hybrid Renewable Energy Systems (HRES) and Tariff Design. Hybrid renewable energy systems have been extensively modeled and optimized. Foundational studies examined PV/battery sizing [24], hybrid system modeling [25], and smart grid operations [26]. Reviews have surveyed integration strategies, configuration optimization, and planning/operation frameworks. Recent contributions highlight optimization approaches and future challenges [11], as well as the value of storage under PV-wind variability [27]. Policy-oriented works have addressed tariff impacts [28], dynamic tariff designs [29], and demand response programs [30]. These studies provide an application context for our coalition framework.
Renewable Energy Communities and Social Dimensions. Research on renewable energy communities has examined configurations and participant roles [31], case studies [32], and community engagement/equity issues [33]. Incentive mechanisms for secure integration [18] and broader sustainability assessments [34] further highlight the diversity of stakeholder preferences. While these works emphasize social and policy dimensions, our study focuses on micro-level coalition mechanisms driven by preference similarity.
Policy and Market Mechanisms in Energy Systems. Several studies have analyzed macro-level mechanisms such as feed-in-tariff policies [8], adaptive strategy optimization using evolutionary game theory and reinforcement learning [9], and risk-sharing support schemes [10]. Broader reviews of hybrid renewable energy systems optimization [11] and game-theoretical methods for electricity markets [13] provide system-level perspectives. Evolutionary game theory has also been advanced as a framework for complex systems optimization [14]. In contrast, our work emphasizes micro-level coalition formation, complementing these system-level approaches.

2.2. Preliminaries

This section provides formal definitions of LP-trees and related structures, positioning these concepts as the foundation for our methodological contributions.
Definition 1 (Lexicographic preference). Let V = { X 1 , , X N } be a set of N attributes, and D X = { x , x ' } be each attribute X domain provided that the attributes are binary. The set of combinatorial domain outcomes, which is a Cartesian product of the attribute domains, is expressed by X V D X . Thus, for each set of attributes χ V , the D χ = X χ D X holds.
Lexicographic order is a total order on the set of outcomes, which is reflexive, asymmetric, transitive, and all the attributes of the set members are related to each other. If all the members are not related, then the relation of the lexicographic order is partial [1,3]. The lexicographic order has two main elements, importance order (between attributes/conditional or unconditional) and local preferences (between attribute's values/conditional, unconditional, or fixed) [1]. Moreover, combining the importance order (conditional and unconditional) and the local importance (conditional, unconditional, and fixed), six classes of LP-trees are defined as follows: CP-CI (Conditional local Preference - Conditional Importance), CP-UI (Conditional local Preference - Unconditional Importance), UP-CI (Unconditional local Preference - Conditional Importance), UP-UI (Unconditional local Preference - Unconditional Importance), FP-CI (Fixed local Preference - Conditional Importance), and FP-UI (Fixed Preference - Unconditional Importance) [1].

3. Methodological Framework

This section presents main parts of our methodological contributions: a similarity measure for PLP-Trees (PLPSim), coalition formation algorithms (HRECS1, HRECS2, HRECS3) that exploit preference similarity, and lexicographic contracts and pricing strategies (CLF, CFB, CFW, CFA, CFP). Together, these components form a coherent framework for modeling, forming, and evaluating coalitions in multiagent environments where preferences are expressed lexicographically. We also present PLPGen method for generating lexicographic preferences synthetic dataset (Appendix). Moreover, we propose F@LeX, a novel evaluation metric designed to capture the quality of coalition outcomes in lexicographic preference settings.
To illustrate the allocation challenge that motivates our framework, consider the problem of assigning hybrid renewable electricity tariffs in a future competitive energy market, in which consumers and suppliers express their priorities as lexicographic preferences: price acts as a hard constraint, while attributes such as energy type, reliability, and contract length serve as negotiable dimensions. Consumers seek affordable tariffs, suppliers aim to maximize profit, and group discounts create incentives for coalition formation. Moreover, each consumer may value these attributes differently — for example, one may prioritize low cost, while another emphasizes environmental sustainability. Grouping the most similar consumers with the same consumption pattern and fair payments maximize the satisfaction of each consumer in the coalition. This example highlights the need for robust similarity measures, coalition algorithms, and evaluation metrics for such kind of preferences, which we develop in the following subsections.
We first build formal foundations on the PLP-Tree structures through a case study in hybrid renewable energy tariffs in Section 3.1. Section 3.2 introduces PLPSim; Section 3.3 presents coalition formation algorithms; Section 3.4 describes lexicographic contracts and pricing strategies; and Section 3.5 introduces the evaluation metrics for PLP-trees; Section 3.6 presents computational representation for implementing PLP-trees.

3.1. Lexicographic Preference Tree Solution Rank

To compute solution ranks in lexicographic preference trees (LP-trees), we traverse the tree in pre-order from root to leaf. Figure 1 illustrates the traversal process used to enumerate solutions, which underpins the ranking definitions introduced below. Beginning with the left branch, all possible combinations of attribute values (e.g., D: contract duration, E: energy type, S: ancillary services) are enumerated, each combination representing a solution. For simplicity, assume attributes are binary (e.g., d and d′ for D). so each node has at most two children.
We assume suppliers typically express tariffs using complete lexicographic preferences (CLP), since they know all attributes and values. Consumers, however, may provide either complete or partial lexicographic preferences (PLP), due to limited information or an inability to distinguish between certain attributes or values.
We extend the standard LP-tree formalism by introducing the notion of partial solutions. If value substitution is not performed on all attributes of the problem, ordering these values is an incomplete or partial solution. This concept is critical because coalition algorithms must operate even when consumer preferences are incomplete. To compare this with the preferences of the supplier, we introduce shared parts between their complete and partial LP-trees, defined as follows.
Definition 2 (Shared partial solution). Let the problem has n attributes, and let T and T ' denote a complete and a partial LP-tree, respectively. If at least one branch of T ' contains fewer than n attributes, then for α T and β T ' , β is a shared partial solution iff β α and | β | < n .
Unlike measures in comparing CP-nets [16] and as a prerequisite for PLPSim, we distinguish between solutions by considering their position in the list of preferences, so that the best solution receives rank n (equal to the number of leaves, i.e., the total number of solutions), while the worst solution receives rank 1.
Definition 3 (Solution rank in lexicographic preferences). Solutions in a lexicographic preferences L (LP-tree) are ranked according to Eq. (1), in which, solution α is indexed according to its position in the linear preference order.
r a n k ( L , α ) = n o r m a l i z e d ( i n d e x ( α ) ) + λ
n o r m a l i z e d ( i n d e x ( α ) ) = i n d e x ( α ) 1 n 1
The idea behind solution ranking is to translate the qualitative order of preferences into a quantitative scale that can be compared across LP-trees of different sizes. Without normalization, a tree with 8 leaves and a tree with 20 leaves would produce ranks on very different scales, making comparisons inconsistent. Normalization rescales all ranks to the interval [0, 1], ensuring that ``best’’ and ``worst’’ solutions are always comparable regardless of tree size (Eq. 2). Since a normalized value of 0 eliminates the worst solution, a small positive constant λ (e.g., 0.1) is added to shift the range; hence. every solution retains a positive score, with the best solution close to 1 and the worst solution slightly above zero (Eq. 1). For example, r a n k ( F i g 1 , d ' s ' e ' ) = 0.95 and r a n k ( F i g 1 , d e ' s ) = 0.38 .
Having established how solutions in lexicographic preference trees can be ranked and normalized, we now turn to the problem of measuring similarity between different lexicographic preferences. This motivates the introduction of PLPSim, our proposed similarity measure that extends beyond existing approaches such as PLPDis.

3.2. Lexicographic Preference Similarity Measure: PLPSim

Lexicographic: Preference Trees (LP-Trees) capture agent priorities in a compact form, but comparing complete or partial structures (PLPs) requires a principled similarity measure. We build on PLP-Trees to introduce PLPSim, a similarity measure that extends beyond prior work by handling both complete and partial trees, while integrating structural and semantic components, enabling robust similarity assessment even when agents specify incomplete lexicographic orders.
The only existing method, PLPDis, for comparing two complete or partial lexicographic preference trees T 1 , and T 2 computes their distance by applying the partial Kendall distance [3]. It forgets the absence of attributes in partial trees (Table 1); e.g., it computes the distance from T 1 to T 2 as its horizontal mirror T 1 ' to T 2 . For addressing this issue, we introduced the rank of solutions (Definition 3) and by adapting, extending, and improving CPSim (in CP-nets context) [16] to lexicographic preferences, present PLPSim method. PLPSim distinguishes between tree branches and the importance and preference of solutions of the LP-tree in computing the similarity of complete and partial preferences (PLP).
Let each agent’s preferences be represented as a Partial Lexicographic Preference Tree (PLP-Tree), where each node corresponds to an attribute and edges encode lexicographic priority ordering. For the two L P T i and L P T j PLP-trees represented by graphs T i and T j , we calculate PLPSim of L P T j to L P T i through Eq. (3), the average of three fractions, where, s v L P T i , L P T j , s e L P T i , L P T j , v L P T i , e L P T i , s r L P T i , L P T j and r L P T i are the count of shared variables between T i and T j , the count of shared edges between T i and T j , the count of variables in T i , the count of edges in T i , the sum of the rank product of the shared solutions between the two T i and T j trees, and the sum of the square roots of the ranks of the T i solutions; r L P T i = α O i r a n k ( α , L P T i ) 2 and s r L P T i , L P T j = α S O T i , T j r a n k ( α , L P T i ) × r a n k ( α , L P T j ) [20].
P L P S i m ( L P T i , L P T j ) = 1 3 ( s v L P T i , L P T j v L P T i + s e L P T i , L P T j e L P T i + s r L P T i , L P T j r L P T i )
PLPSim establishes a total binary order relationship on lexicographic preferences, as follows.
Theorem 1 (PLPSim Total order). The similarity of lexicographic preferences L P T j with lexicographic preferences L P T i satisfies asymmetric, reflective, and transitive properties:
  • i , P L P S i m ( L P T i , L P T i ) = 1
  • i j , P L P S i m ( L P T i , L P T j ) = z P L P S i m ( L P T j , L P T i ) = z
  • i j r s , P L P S i m ( L P T i , L P T j ) < P L P S i m ( L P T i , L P T r ) , P L P S i m ( L P T j , L P T s ) < P L P S i m ( L P T r , L P T s ) P L P S i m ( L P T i , L P T j ) < P L P S i m ( L P T i , L P T s )
That is, similarity measurement between lexicographic preference structures is asymmetric. This arises because attributes or values in the domain may not be shared across two comparisons. In one direction, one preference structure may be a subset of the other, while in the reverse direction, the inclusion does not hold. Consequently, it cannot be assumed that if structure T is similar to structure T ' to a certain degree, then T ' must necessarily be similar to T with the same degree. This asymmetry motivates the following theorem.
Theorem 2 (Asymmetric property of PLPSim similarity). Let P L P S i m ( L P T j , L P T i ) denote the similarity measure between two PLP-trees T i and T j , as defined in Equation (3). For both complete and partial LP-trees, P L P S i m ( L P T j , L P T i ) exhibits an antisymmetric property across all four compound cases, UI–UP, CI–UP, UI–CP, and CI–CP. Formally,
P L P S i m ( L P T j , L P T i ) P L P S i m ( L P T i , L P T j )
whenever the attribute sets or value domains of T i and T j are not identical, or when one tree is a subset of the other but not vice versa. Since the class of UP is a subset of FP, this important antisymmetric property extends to all six classes of lexicographic preferences described in Section 2.2.
Corollary 1 (Practical implication of asymmetry). PLPSim similarity scores are inherently asymmetric and cannot be assumed equal in both directions.
This asymmetry highlights a fundamental challenge in coalition stability. A coalition that appears favorable when evaluated from the consumer’s perspective may not be equally favorable from the supplier’s perspective. As a result, coalition agreements must be negotiated with awareness of this imbalance, ensuring that both parties’ evaluations are considered. Ignoring asymmetry could lead to unstable coalitions, where one side perceives high similarity and alignment while the other side perceives low similarity, ultimately risking dissolution of the coalition.
Remark (Novelty compared to symmetric measures). Unlike symmetric measures such as CPSim [16], which assume bidirectional equality of similarity scores between two graphical structures, PLPSim explicitly captures directional asymmetry. This distinction is crucial: symmetric measures may overstate alignment between consumer and supplier preferences, while PLPSim reveals the nuanced differences that arise when one preference structure is a subset of another. This property underscores the methodological novelty of PLPSim and its relevance for coalition formation in heterogeneous preference environments, where consumer-to-supplier and supplier-to-consumer evaluations may diverge.
Figure 2, illustrating structural overlap of attribute orderings and semantic overlap of preference values, depicts a supplier’s complete tariff tree (2a) and two partial LP-trees (2b and 2c) representing two consumer’s partial preference structure, where the order of their solutions is opposite. In considering the scores of solutions of LP-trees in Figure 2, Table 1 highlights the antisymmetric property of PLPSim, and compares PLPSim similarity measurement with CPSim, which ignores the directional similarity [16] and PLPDis that suffers from forgetting some information in traversing partial trees [3], along with LPDis, which does not work well in partial LP-trees [35].
PLPSim measure forms the foundation for coalition formation, as it allows agents with comparable preferences to be grouped effectively. Section 4.1 provides a step-by-step calculation of the PLPSim similarity score between a consumer’s preference tree and a supplier’s tariff tree, illustrating this asymmetric behavior in practice.

3.3. Coalition Formation Algorithms

Building on PLPSim directional similarity, we present HRECS coalition formation methods by assigning the most similar tariff to each consumer. Coalition formation proceeds in two stages: group agents into preference-aligned clusters and design a contract. We present three coalition systems: consumer-centric HRECS1, supplier-centric HRECS2, and market-driven HRECS3, each representing different strategies for balancing coalition size and preference similarity. These systems integrate PLPSim into the coalition selection process, ensuring that agents with high similarity scores are aggregated. Coalition agreements are operationalized through lexicographic contracts. Each contract specifies rules for tariff allocation and satisfaction balancing (Section 3.4).
Conceptual diagrams of HRECS1, HRECS2, and HRECS3 in Figure 3 visually clarify the differences in how each algorithm performs matching. To establish a systematic foundation, we first formulate the coalition formation problem and present the general approach underlying the HRECS, before proceeding to the detailed formulations of its three variants in Section 3.3.1, Section 3.3.2 and Section 3.3.3.
Figure 2. Conceptual visualization: comparison of assigning each tariff to a group of similar consumers by using HRECS1, HRECS2, and HRECS3 matching.
Figure 2. Conceptual visualization: comparison of assigning each tariff to a group of similar consumers by using HRECS1, HRECS2, and HRECS3 matching.
Preprints 191637 g003
The sets of suppliers and consumers of hybrid renewable energy systems (HRECS) consist of S = { s 1 , , s M } and C = { c 1 , , c N } , respectively. Assume that each supplier s offers a tariff A s = < T s , φ s , q s , d s > , where, T s , φ s , q s , and d s are the LP-tree, the lowest acceptable price, the least count of people required for forming a coalition over the tariff, and ID of s , respectively. Each consumer c can bid his energy requirement B c = < T c , φ c , d s > , where T c , φ c , and d c are the LP-tree, the highest acceptable price, and ID of c , respectively. In this setup, consumer c can buy tariffs A s that A s . φ s φ c . For the supplier s , the bids B c is considered if φ s B c . φ c , that is, s S , G s = { B c | c C , φ s B c . φ c } and c C , G c = { A s | s S , A s . φ s φ c } . In these sets G h , the similarity of g LP-trees is compared with h LP-tree; then, E i s that satisfy the condition are sorted in descending order of their trees similarity with h H , G h = { E g | g H ¯ , φ h E g . φ g , H = S , H ¯ = C ; E g . φ g φ h , H = C , H ¯ = S } , so that h , i , j , S I M ( T h , E i . T i ) S I M ( T h , E j . T j ) s c o r e ( i ) s c o r e ( j ) , where H = S or H = C . Matrix C = [ ( c , R c ) | c C ] forms ordered lists of tariffs similar to consumers’ preferences, and matrix S = [ ( s , R s ) | s S ] forms ordered lists of consumers similar to tariffs’ preferences. Because the symmetry of the similarity function is not needed, the matrix C is not necessarily obtainable from S , and vice versa. If in S and C , suppliers are arranged in ascending order, s = [ H , s M | s i , s j H , s M S , 1 i < j < M , E i . φ i E j . φ j ] , and consumers in descending, c = [ H , c N | c i , c j H , c N C , 1 i < j < N , E i . φ i E j . φ j ] , based on the bid price, from matrix C and S , ordered matrix C = [ ( c , R c ) | c c ] and S = [ ( s , R s ) | s s ] are yield, which is arranged in the order of price decrease and price increase, respectively, and contains ordered lists of tariffs similar to consumer preferences and ordered lists of consumer preferences similar to tariffs.

3.3.1. HRECS 1: Consumer’s PLP-Driven Coalition Formation

Building on the general formulation of HRECS, we now present the first algorithmic variant, which serves as the foundation. Having a matrix C from the ordered lists of tariffs in R c for each consumer c C , the most similar tariff is allocated to each consumer according to Algorithm 1 (line 5). The order in which consumers' requests are processed does not affect the outcome, and each consumer receives the only tariff that is the most similar to their preferences, G ( c ) without any restrictions. According to this allocation, by inverting G , for each tariff A s Group G ( s ) is formed from the most similar consumers possible.
Algorithm 1. HRECS1
1: Input: C N × M
2: Output: G M × N
3: Begin
4:  for each c N , do
5:    s C ( c , 1 )
6:    G ( s ) . a p p e n d ( c )    // i.e., add B c to G ( s ) ~ add A s = R c ( 1 ) to G ( c )
7:  end for
8:  return G
9: End

3.3.2. HRECS 2: Supplier’s LP-Driven Coalition Formation

Unlike the HRECS1 approach, this approach allocates tariffs at the request of suppliers. Because each consumer receives its electricity from only one energy supplier through the tariff, concerning the sharing and conflict of the supplier list regarding the most similar consumer preferences, the order of consideration of the suppliers in the result of the consumer allocation affects the suppliers. This approach arranges the tariffs in the sense that the one with the lowest price has the highest priority; consequently, the ordered matrix S containing ordered lists of tariff preferences similar to consumers is applied. This approach prevents suppliers from being ranked lower than consumers with similar preferences, Round Rubin shifts are applied in a cyclic manner.
According to Algorithm 2,
(1)
by starting from the beginning of matrix S , while a tariff A s exists where R s , the most similar c C consumer in the similarity list with the A s tariff is allocated to this tariff (line 6).
(2)
Then, preference B c of the consumer is removed from the list of all tariffs A r in S , 1 r s M (i.e. A s + 1 to A s 1 (line 8).
(3)
In the end, Step (1) continues with a cyclic turn of tariff A s + 1 (or A 1 If s = M ).
Thus, for each tariff A s , group G ( s ) consists of the most similar possible consumers.
Algorithm 2. HRECS2
1:Input:  S M × N
2:Output:  G M × N
3:Begin
4:  while  S  do
5:   foreach  1 s M  do
6:     G ( s ) . a p p e n d ( S ( s , 1 ) )    // i.e., add B c = R s ( 1 ) to G ( s )
7:    foreach  1 r s M  do
8:      S ( r ) . r e m o v e ( S ( s , 1 ) )       // i.e., delete B c from R r
9:    end for
10:   end for
11:  end while
12:return  G 13:End

3.3.3. HRECS 3: Consumer’s PLP-Supplier’s LP-Driven Coalition Formation

The third approach focuses on both sides of the market, a combination of HRECS1 and HRECS2, with the difference that the order and turn is applied to consumers' demands, as well (i.e., matrix C and S ). But for the turn to occur among the consumers and the suppliers and to establish a balance in handling the two sides of the market, a relative turn is applied inside. In this manner, after several sequential hearings on one side, it is the turn of the sequential hearings on the other side (Figure 4). More expensive tariffs and cheaper demands are considered with a delay. All allocations are made at the end of the last matrix and without the need to rotate the turn to the beginning.
According to Algorithm 3, with the priority of starting the first consideration from S or C , this turn is not alternating; it switches between buckets of suppliers (length k S = | b u c k e t S | ) and buckets of consumers (length k C = | b u c k e t C | ): If N = M , the length of the bucket is considered equal on both sides, 1 | b u c k e t C | = | b u c k e t S | < N 2 for simplicity, | b u c k e t C | = | b u c k e t S | = 1 is considered. Although the shorter the bucket length, the better the balance in giving priority to both sides and the count of changes of alternatives, the execution time increases; If N > M , the length of the buckets is considered, | b u c k e t C | = N M , 1 | b u c k e t S | < 2 , for simplicity, | b u c k e t S | = 1 . If M > N , the length of the buckets is considered, 1 | b u c k e t C | < 2 , | b u c k e t S | = M N for simplicity, | b u c k e t C | = 1 .
Beginning with the C matrix and the two counters t S = 1 and t C = 1 , as long as there is a tariff A s S where R s or a d e m a n d B C C where R C ,
(1)
for c o u n t k C of consumers c C , the most similar tariff is assigned to each consumer; that is, demand B c of consumer c is recorded in group G ( s ) for the tariff A s (line 14),
(2)
and the demand B c of this consumer is removed from the list of all tariffs A r in S , 1 r s M (i.e. A s + 1 to A s 1 ) (line 16),
(3)
The pointer t C at the consumers’ side is incremented by 1 bucket (line 18),
(4)
For the count of k S suppliers s S , the most similar consumer c C in the list of similarities to the tariff A s is placed for this tariff, respectively; that is, demand B c of consumer c is recorded in group G ( s ) for the tariff A s (line 22),
(5)
The B c preference line of this consumer is removed from C (line 23),
(6)
Preference B c of this consumer is removed from the list of all tariffs A r in S , 1 r s M (i.e. A s + 1 to A s 1 ) (line 25).
(7)
The supplier pointer t S increases by one bucket (line 27);
(8)
Step (1) continues.
Group G is formed of the most similar consumers possible to the tariffs of each supplier, by this interleaving turns among the preferences of consumers and suppliers.
Algorithm 3. HRECS3
1:Input:  S M × N , C N × M
2:Output:  G M × N
3:Begin
4:   k C , k S   1
5:  if  N > M then
6:    k C   N M
7:  elseif  M > N then
8:    k S   M N
9:  endif
10:   t C , t S 1
11:  while  S or C  do  // i.e., t C < N or t S < M
12:   foreach  t C c < t C + k C
13:     s   C ( c , 1 )
14:     G ( s ) . a p p e n d ( c )
15:    foreach  t S r s M
16:      S ( r ) . r e m o v e ( c )   // i.e., delete B c from R r
17    endfor
18:     t C t C + k C
19:   endfor     // and switches to the other matrix
20:   foreach  t S s < t S + k S
21:     c   S ( s , 1 )
22:     G ( s ) . a p p e n d ( c )
23:     C . r e m o v e ( c )   // i.e., delete B c from C
24:    foreach  t S r s M
25      S ( r ) . r e m o v e ( c )   // i.e., delete B c from R r
26:    endfor
27:     t S t S + k S
28:   endfor     // and switches to the other matrix
29:  endwhile
30:return  G
31:End              

3.4. Tariff Contracts

Contracts are applied after coalition formation to determine allocation outcomes. Because the prices of the proposed tariff may differ from the individual consumer preferences, the tariff implementation protocol must be specified after determining either the tariff for each consumer (Algorithm 1) or the set of consumers assigned to each tariff (Algorithms 2 and 3). Contracts may be defined as either fixed or variable agreements.
In this study, we introduce the concept of lexicographic contract (ContractLex) and lexicographic price (PriceLex), which reflects the changing and dynamic nature of the hybrid renewable energy supply, Section 3.4.1. This section describes how each consumer is assigned to a tariff based on their lexicographic preference tree. The contract details are embedded in the preference tree and offered to all consumers of that tariff. This setup is dynamic because the lexicographic contract is explicitly tied to the changing nature of the hybrid renewable energy supply. The consumer–supplier assignment can adapt as preferences or supply conditions shift, highlighting the flexibility required in hybrid renewable energy systems.
For fixed contracts–that embody static coalition agreements once established—four implementation protocols are presented in Section 3.4.2. Moreover, if a coalition is formed around a given tariff (i.e., the quorum of the minimum required consumers is met), the corresponding group discount is applied to the final tariff contract price. That is, once a coalition is formed and the quorum of consumers is met, the group discount applies, but the contract itself is static — it does not adapt to changes in supply or preferences. Hence, this setup is static, since the protocols lock in the contract terms once agreed, ensuring stability and predictability in coalition outcomes.

3.4.1. Lexicographic Contract: Dynamic Hybrid Renewable Energy Tariff

This section introduces the lexicographic contract of hybrid renewable energy tariffs, which reflects the inherently dynamic nature of both supply conditions and consumer preferences. Unlike fixed agreements, these contracts evolve as preference trees capture changing priorities and resource availability, thereby enabling coalitions to adapt in real time. This formulation highlights the flexibility required in hybrid renewable energy systems, where tariff structures and consumer assignments cannot remain static but must respond to ongoing variations in demand and supply.
Here, G determines the appropriate tariff for each consumer. For each tariff, a group of consumers is assigned; that is, the preference tree of the same tariff states the contract details between the supplier of this tariff and these consumers, and this tree is offered to all. This tree contains many branches and conditions that well express the nature and variable nature of the hybrid renewable energy supply on the values of its attributes. Consumers subject to this lexicographic contract accept the risk that by paying the amount, they receive electrical energy with attributes that range over the values expressed by the solutions of this tariff. Suppliers subject to the same lexicographic contract accept the risk that consumer satisfaction may not be provided, and the tariff contract may be terminated before its expiration date. This type of contract fully reflects the market risks of this energy. Group discount is a way to cover this quality change and increase consumer satisfaction and retention under this contract, Definitions 4 and 5. The price of this contract can also be volatile, according to Proposition 1.
Definition 4 (ContractLex: Lexicographic Contract of hybrid renewable energy). The lexicographic contract of the hybrid renewable energy H ( L ) = G ( L ) , P is the same for all consumers in the group G ( L ) so that its details are tailored by the lexicographic preferences of the tariff L , and its price is a function of the lexicographic price function P ( . ) .
Definition 5 (PriceLexFixed: The fixed minimum price of the lexicographic contract of hybrid renewable energy). With the lexicographic contract H ( L ) = G ( L ) , P consumers and suppliers accept all terms and the fixed price, and the price determined for this contract includes all fluctuations in the range of all solutions of this tariff. This price is based on G ( L ) . Φ , the highest price possible by all consumers c in group G ( L ) of the tariff:
G ( L ) . Φ = m i n c G ( L ) c . φ .
The minimum bid price in this group is the highest price that everyone in the group can pay; therefore, the final price of the contract is P ( L ) = G ( L ) . Φ × ( 1 i = 0 s i g n ( G ( L ) . q L . q ) d × i ) , where G ( L ) . q = | G ( L ) | , indicating that the group has reached the quorum G ( L ) . q L . q 0 , all consumers in this coalition group on this energy tariff receive the same d percent discount (e.g., d =10%).
Proposition 1 (PriceLex: Lexicographic Price of hybrid renewable energy). If the range of values of the attributes of the lexicographic preferences is uniform and the direction is the same for all consumers and suppliers, the price P ( . ) of the energy supplied/received according to the changes in the solution α L provided in the contract H ( L ) = G ( L ) , P becomes P ( α ) = [ L . φ + ( r a n k ( α ) 0.1 ) ( G ( L ) . Φ L . φ ) ] × ( 1 i = 0 s i g n ( G ( L ) . q L . q ) d × i ) , where r a n k ( α ) and Φ corresponds to equations (2) and (4). The distance between this price and the minimum price φ of this tariff is the variable price fluctuation interval of the lexicographic contract of hybrid renewable energy, indicating that the worst solution of this tariff is with the price φ , and the most valuable solution is at the price G ( L ) . Φ . In principle, the same direction means that the order of values is the same among all; both consumers and suppliers consider "solar wind geothermal" as the energy type. Therefore, the best solution is considered the best solution for both.

3.4.2. Fixed Hybrid Renewable Energy Tariff Contract

This section presents the fixed contract protocols of hybrid renewable energy tariffs. A fixed contract represents only one solution from the range of fluctuations of the attributes of this type of energy and at a specific price of this solution; that is, although this energy is inherently prone to price fluctuations subject to contract, consumers and suppliers under a fixed contract agree that the solution is expected and a fixed price is set for it. Four types of fixed non-lexicographic contracts are offered to groups of consumers G ( L ) identified for Lexicographic Tariff L as follows:
Definition 6 (ContractFixed: Best - CFB). In the contract H C F B ( L ) = α , P , the best solution (i.e., the most left solution) of the LP-tree of the tariff L is set for all consumers in G ( L ) . The price of this contract is obtained through the Equation P ( L ) .
Definition 7 (ContractFixed: Worst - CFW). In the contract H C F W ( L ) = α , P , the worst solution (i.e., the most right solution) of the LP-tree of the tariff L is set for all consumers in G ( L ) . The price of this contract follows from the Equation P ( L ) .
Definition 8 (ContractFixed: Average - CFA). In the contract H C F A ( L ) = α , P , the middle solution α in the LP-tree of tariff L (i.e., with a r a n k ( α ) 0.55 for the supplier) is set for all consumers in G ( L ) . The price of this contract is obtained through the Equation P ( L ) .
Definition 9 (ContractFixed: Personalized - CFP). For each consumer c in G ( L ) a specific contract H C F P ( L , c ) = O , P is concluded according to Algorithm 4. The value r a n k c ( α ) for each solution, α L is specified for c and assigned to α . If an α is not obtained from the LP-tree c , r a n k c ( α ) = 0 , the solution α , with the highest value for c , is determined as a contract for this consumer O c , L = a r g m a x α L ( r a n k c ( α ) ) . The fixed price of the contract is set between the average prices φ c and L . φ . If the count of consumers of this tariff G ( L ) . q , reach the quorum of L . q , the contract price for each consumer c in this group is equal to nine-tenths (90 percent) of the specific price set for him, making, P C F P ( O c , L ) = 1 2 × ( L . φ + φ c ) × ( 1 i = 0 s i g n ( G ( L ) . q L . q ) d × i ) .
Algorithm 4. CFP
1:Input:  G M × N
2:Output:  H N × 1  
3:Begin
4:  foreach  L in G do
5:   foreach  c in G ( L ) do
6:     O c , L a r g m a x α L ( r a n k c ( α ) )
7:     P C F P ( O c , L )   1 2 × ( L . φ + φ c ) × ( 1 i = 0 s i g n ( G ( L ) . q L . q ) d × i )
8:     H C F P ( L , c )   O c , L , P C F P ( O c , L )
9:   endfor
10:  endfor
11:return  H C F P
12:End

3.5. Metrics

To assess the functionality of PLPSim between PLP-trees as well as the effectiveness of the proposed coalition formation strategies and contract mechanisms, we introduce a set of evaluation metrics that capture both performance and fairness dimensions.
We evaluate the quality of the coalition outcomes through the Davies-Bouldin dispersion index [22], where the less DB, the better (Definition 10), and Normal Discounted Cumulative Gain [36], where the closer nDCG to 1, the better (Definition 11).
Definition 10 (Davies-Bouldin index). Based on the average similarity in each group of consumers ( S I M G A v g ) measured relative to suppliers' tariffs, the Davies-Bouldin index (based on all M = M ( M 1 ) / 2 pairwise checks among M groups) is D B S I M = 1 M × G = 1 M D G , where, D G = m a x { R G G ' | R G G ' = V a r G S I M V a r G ' S I M | S I M G A v g S I M G ' A v g | , G , G ' } , S I M G A v g = b B , P b G ( T s ) S I M b , T s G ( T s ) . q and V a r G S I M = b B , P b G ( T s ) ( S I M b , T s S I M G A v g ) 2 G ( T s ) . q . Low dispersion of similarity within each group and a high dispersion among the groups are sought; the lower the Davis-Bouldin index, the more appropriate the consumers' groupings.
Definition 11 (Society nDCG). The quality of the SIM method among all consumers and suppliers is equal to the product of nDCG of consumers and suppliers, n D C G S I M = n D C G C S I M × n D C G S S I M , where, for consumer c C , the nDCG of tariffs A 1 to A M obtained through the S I M method is n D C G c S I M = D C G c S I M I D C G c S I M . I D C G c S I M , is similar to D C G c S I M , while on the descending list of suppliers’ tariffs ( S ) in terms of their similarity, D C G c S I M = s = 1 M S I M ( B c , A s ) l o g 2 ( s + 1 ) , I D C G c S I M = s S S I M ( B c , A s ) l o g 2 ( s + 1 ) .
It is a ranking quality metric that evaluates how well a orders items by relevance. It rewards placing highly relevant items at the top of the list and penalizes pushing them lower down. By normalizing against the ideal ranking, nDCG produces a score between 0 and 1, where 1 means the system perfectly matches the ideal order. Higher nDCG means users quickly find what they want.
We also introduce F@Lex, a novel F-measure metric extended for LP-tree representation, that indicates the appropriateness of the contract for the defined parties (Definitions 12—15). That is, the contract that results from implementing the combination of the tariff selection protocol, the coalition formation method, and the similarity method, reveals its effect on consumer and supplier satisfaction as an F-measure. For this purpose, any contract and other solutions related to a lexicographic preference, with degrees based on their rank, are placed in more than one category. Different protocols lead to different satisfaction for consumers and suppliers. The F-measure is a number between 0 and 1 and is best closer to 1.
Definition 12 (F-measure of lexicographic contract for the consumer). The appropriateness of the contract O c , L s of the tariff L s for consumer c by the protocol R is F @ L e x c , s R = 2 × R e c a l l c × P r e c i s i o n c R e c a l l c + P r e c i s i o n c ( P r e c i s i o n c = T P c T P c + F P c , R e c a l l c = T P c T P c + F N c ).
Definition 13 (F-measure of lexicographic contracts for consumers). The appropriateness of contracts O c , L s of tariffs L s for consumers is F @ L e x C R = 1 N × c C F @ L e x c , s R , H ( L s , c ) .
The most valuable solution with a 1-st index of the consumer preferences L c is the solution that is most appropriate for the consumer. If the contract is the highest-ranked solution in consumer preferences, its ranking, r a n k c ( α 1 ) , is added to the T P . According to Algorithm 5, T P c , F N c , F P c a n d T N c are affected by the value of r a n k c ( . )   of the contract rank and the other tariff solutions’ rank.
Definition 14 (F-measure of lexicographic contract for supplier). The appropriateness of the contract O c , L s of the tariff L s for supplier s by protocol s is F @ L e x s , c R = 2 × R e c a l l s × P r e c i s i o n s R e c a l l s + P r e c i s i o n s ( P r e c i s i o n s = T P s T P s + F P s , R e c a l l s = T P s T P s + F N s ).
Definition 15 (F-measure of lexicographic contracts for suppliers). The appropriateness of contracts O c , L s of tariffs L s for suppliers is F @ L e x S R = 1 M × s S F @ L e x s , c R , H ( L s , c ) .
The T P s , F N s , F P s , T N s according to Algorithm 6 are affected by the value of r a n k s ( . ) of the contract rank and other tariff solutions’ rank.
Algorithm 5. Consumer Confusion Matrix
1:Input:  L c , O c , L s
2:Output:  T P c , F N c , F P c , T N c
3:Begin
4:   i i n d e x ( O c , L s , L c )     // i ,   O c , L s = α i L c
5:   T P c , F N c , F P c , T N c   0
6:   L L c L s
7:   T P c T P c + r a n k c ( α i )
8:   F P c F P c +   1 + λ r a n k c ( α i )
9:  forall  α j   ( j i ) L  do
10:    F N c F N c +   1 + λ r a n k c ( α j )
11:    T N c T N c + r a n k c ( α j )
12:  end for
13:return  T P c , F N c , F P c , T N c
14:End
Algorithm 6. Supplier Confusion Matrix
1:Input:  L s , O c , L s
2:Output:  T P s , F N s , F P s , T N s
3:Begin
4:   i i n d e x ( O c , L s , L s )     // i ,   O c , L s = α i L s
5:   T P s , F N s , F P s , T N s   0
6:   T P s T P s + r a n k s ( α i )
7:   F P s F P s +   1 + λ r a n k s ( α i )
8:  forall  α j   ( j i ) L  do
9:    F N s F N s +   1 + λ r a n k s ( α j )
10:    T N s T N s + r a n k s ( α j )
11:  end for
12:return  T P s , F N s , F P s , T N s
13:End
These measures provide a systematic framework for comparing algorithms, quantifying preference similarity, and analyzing satisfaction of both sides through coalition under varying market conditions.

3.6. Formulating Lexicographic Preference Representation

For computational implementation of lexicographic preference trees, we present two data structures. An array representation is introduced as a computational structure that can also be created from a string representation and can be converted to each other. The string representation of lexicographic preference trees is introduced to include all the information of a tree at once.
Let the general lexicographic preference tree L (Figure 5a) with at most n attributes ( X 1 , , X n ), each attribute has at most m values ( x 1 , , x m ), is a tree with the depth of at most n , which is shown in an array with m + 1 columns and ( n × m ) + 1 rows in Figure 5b. Its string representation also has ( n × m ) + 1 parts, each of length m + 1 (Figure 5c). The left branch of the tree contains the best preferences of the user.
In principle, array rows are interdependent and inserted conditionally relative to each other. The structure used is the same as a heap (with offset), where the children of node i , whose conditional parent value is at location m × i (i.e. the column 0 in the array representation), are placed at locations ( m × i ) + 1 to ( m × i ) + m 1 (i.e. the columns 1 to m in the array) according to their priorities. In string representation, the nodes are separated by “*”, and the conditional values of each node are separated by “,”.
In general, it can be said that each part in an array or any part in a string can have three states: 1) ‘dummy’, 2) unconditional: ‘null’ 3) conditional. Rules for generating an array are defined as follows:
  • Row 0 of the array is always assumed to be ‘dummy’.
  • The children of each node in the tree are placed in the rows after this node, according to the number of its attribute values. They also have several states:
    • The node can have no children: Therefore, its children are ‘dummy’. In this case, the node is called a leaf. So, it can be said that if the left child of the node is ‘dummy’, then the other children must have been ‘dummy’.
    • The node can be considered unconditionally: In this case, only the left child of the node is set, the conditional parent value also is set as ‘null’, and the other children are ‘dummy’. Because the conditional node only includes the left child.
By limiting the general representation, we implement the binary lexicographic preference tree (i.e., for the binary attributes) in array representation as follows:
  • In row 0, the array is always ‘dummy’.
  • In other rows, if a node is in i -th row of the array, the left child is in 2 i and the right child is in 2 i + 1 .
  • Now, each row of the array itself contains three parts, such that in the first cell the parent node’s conditional value is located. The second and third cells correspond to the priority of the values of each attribute. The second cell is the value that is preferred over the third one. More precisely:
    • When there is no node (for example, the root parent or the missing child), it is ‘dummy’.
    • When a node is unconditional, in the first cell of the row is ‘null’.
    • When a node is conditional, then the value of the parent condition is placed in the first cell of each row.
Figure 6 illustrates the array and string representation of the binary PLP-tree shown in Figure 2b.

4. Illustration, Experiment, and Discussion

To validate our methodological framework, we conducted a series of experiments applying PLPSim (and other similarity/distance measures, CPSim, LPDis, and PLPDis), coalition formation algorithms (HRECS1, HRECS2, and HRECS3), lexicographic contracts (CLF, CFB, CFW, CFA, CFP) to a hybrid renewable energy tariff case study.
The experimental setup and components used include synthetic consumer preference data expressed as PLP-Trees, supplier tariff structures with hard and soft constraints, and coalition thresholds reflecting group discount conditions. They are close to the reality of the hybrid renewable energy market; some of our experimental settings and assumptions were designed to closely approximate a realistic hybrid renewable energy market.
Outcomes are assessed using both established measures (nDCG, Davies–Bouldin dispersion) and our proposed F@LeX metric, enabling a comprehensive comparison of coalition quality and preference satisfaction.
We demonstrate the asymmetric property of PLPSim in Section 4.1, show synthetic PLP-tree dataset generation in Section 4.2, set up the experiments in Section 4.3, illustrate graphs comparing metric scores across experiments in a case study in hybrid renewable energy tariffs in Section 4.4, and discuss a summary of findings in Section 4.5.

4.1. Step-by-Step Example: PLPSim Asymmetry

This example illustrates Theorems 1 and 2 and shows that measuring similarity in combinational settings is asymmetric. This means that due to the existence of attributes or their domain values ​​that may not be shared between the two LP-trees (or for example, in one direction, one is a subset of the other, but in the other direction, the other is not a subset of the same LP-tree), it cannot be said that if the first is similar to the second to a certain degree, the second is necessarily also similar to the first to the same degree.
The L P T s of a consumer preference and a supplier tariff can be in either a complete (CLPT) or a partial (PLPT) structure. Given the lexicographic preferences of a consumer and a supplier tariff represented in Figure 7a – Figure 7d, and peripheral calculations of solution ranks in Figure 8, calculation of the PLPSim similarity score between their corresponding LP-trees follows one of the following comparisons:
P L P S i m ( C L P T 1 , C L P T 2 ) = 1 3 ( 3 3 + 2 2 + 3.1754 3.7371 ) = 0.94
P L P S i m ( C L P T 2 , C L P T 1 ) = 1 3 ( 3 3 + 2 4 + 3.1754 3.7371 ) = 0.78
Although the same relative similarity score is obtained in some of the permutations, their calculations show differences and therefore the asymmetry of PLPSim across C L P T 1 or C L P T 2 (complete) and P L P T 1 or P L P T 2 (partial):
P L P S i m ( C L P T 1 , P L P T 1 ) =   1 3 ( 3 3 +   1 2 + 0 3.1754 ) =   0.5
P L P S i m ( P L P T 1 , C L P T 1 ) = 1 3 ( 3 3 + 1 2 + 0 3.1754 ) = 0.5
P L P S i m ( C L P T 1 , P L P T 2 ) = 1 3 ( 2 3 + 0 2 + 0 3.1754 ) = 0.22
P L P S i m ( P L P T 2 , C L P T 1 ) = 1 3 ( 2 2 + 0 1 + 0 1.9825 ) = 0.33  
P L P S i m ( C L P T 2 , P L P T 1 ) = 1 3 ( 3 3 + 2 4 + 0 3.1754 ) = 0.55
P L P S i m ( P L P T 1 , C L P T 2 ) = 1 3 ( 3 3 + 2 2 + 0 3.1754 ) = 0.5
P L P S i m ( C L P T 2 , P L P T 2 ) = 1 3 ( 2 3 + 1 4 + 0 3.1754 ) = 0.30
P L P S i m ( P L P T 2 , C L P T 2 ) = 1 3 ( 2 2 + 1 1 + 0 3.1754 ) = 0.66
For comparison, the information of the first tree is placed in the denominator of the fractions, such that in the first comparison, the number of attributes of the first tree is 3 (A, B, C), the number of edges (AB, AC) is 2, and the number of terms in common with the second tree is 2 according to its table. For the fractions, the number of attributes in common between the two trees is 2 (A, C), the number of common edges is 1 (AC), and the number of shared terms is 2.
P L P S i m ( P L P T 1 , P L P T 2 ) = 1 3 ( 2 3 + 1 2 + 0.086 1.9825 ) = 0.40
P L P S i m ( P L P T 2 , P L P T 1 ) = 1 3 ( 2 2 + 1 1 + 0.086 1.9825 ) = 0.69
is the sum of the product of values of shared solutions; (a) CLPT-CLPT category, (b) CLPT-PLPT and PLPT-CLPT categories, (c) PLPT-PLPT category; C L P T 1 = Fig7a (Complete), C L P T 2 = Fig7d (Complete), P L P T 1 = Fig7b (Partial), P L P T 2 = Fig7c (Partial).

4.2. Case Study: Hybrid Renewable Energy Tariffs

As an illustrative application, we contextualize the framework in hybrid renewable energy markets, where consumer PLP-Trees represent tariff preferences and supplier contracts define pricing strategies. Coalitions are formed using PLPSim, and contracts are applied to allocate tariffs. This case study demonstrates the practical utility of the framework while underscoring its generalizability to other multiagent domains.
In a hybrid renewable energy market, three lexicographic preference tariffs of energy suppliers and ten lexicographic preference demands of consumers are tabulated in Table 2 using representations presented in Section 3.6. Consumer and supplier preferences are listed in Figure 9 by applying the PLPSim similarity method. The matrix S , where the demands B c of consumers who have offered a price higher than or equal to the minimum bid price are tabulated in a similar order for each tariff A s , Figure 9a. Matrix lines are in ascending order of tariff prices. The matrix C , where the tariff A s of suppliers that have given a price lower than or equal to the maximum price offered by the consumer are tabulated in Figure 9b, in the order of priority of similarity for each demand B c . The rows of this matrix are arranged in descending order of the price of demand; similarity measurements are performed to obtain these two matrices in two directions, and one cannot be obtained from the other.
The tariff selection methods then determine the tariff and contract price for consumers and suppliers from the groups formed on each tariff of these two matrices. Tariff selection is made by combining the three HRECS1, HRECS2, and HRECS3 methods (to form a consumer coalition, Algorithms 1-3) and five methods, CLF (ContractLex + PriceLexFixed), CFB, CFW, CFA, and CFP (to determine the contract and transaction price, Section 3.4.1 and Section 3.4.2). The details of the contracts concluded by combining coalition methods and tariff selection methods for consumers similar to each tariff by PLPSim are tabulated in Table 3.

4.3. Experimental Setup

To evaluate the proposed approach (PLPSim, HRECSs, ContractLex, PriceLex), we designed a controlled experimental environment that integrates both synthetic preference data and real-world tariff scenarios. The setup ensures reproducibility and allows systematic comparison across coalition formation strategies. Two complementary data sources were employed.
We implemented our method in Python and performed the experiments on Google Colab (https://colab.research.google.com), Table 4. We generated synthetic preference profiles using PLPGen (Appendix) to capture heterogeneity in consumer lexicographic preferences and supplier tariff structures drawn from the hybrid renewable energy case study introduced in Section 4.2 for different numbers of attributes and values. Together, these datasets ensured that the experiments reflected both theoretical diversity and real-world market conditions. Lexicographic preferences can be either conditional, unconditional, or both along the branches of the trees representing the preferences. Based on the number of parameters (i.e., the decision attributes), the trees are generated in a depth of at most this number. LP-trees including nodes corresponding to any number of attributes and values are generated for making either CLP- or PLP-trees. To be comparable, the decision attributes on both sides of the market are the same. Due to computational limitations and without losing the generality of the proposed methods, tests are run with binary attributes' values.
We run two types of experiments in these markets. In the first, the PLPSim similarity method presented in Section 3.2 is compared with LPDis, CPSim, and PLPDis methods in terms of time, memory, and processing consumption, and in the second, the performance of PLPSim for consumer grouping and the performance of different coalitions (Section 3.3), together with the proposed tariff contracts (Section 3.4), are compared across the synthetic data in terms of different criteria introduced in Section 3.5.
This setup provides the methodological foundation for analyzing coalition performance under diverse market conditions. The results of these experiments are presented in Section 4.4.

4.3.1. Experiment I: PLPSim Computational Performance

In the first test, all the data of lexicographic preferences with 2 to 5 attributes are applied. These preferences are similarly measured by the PLPSim, CPSim, LPDis, and PLPDis methods. Lexicographic preferences data are complete and incomplete. The count of attributes of preferences on both sides must be the same because the parties' views must be expressed on a set of specific and identical attributes to be comparable. Table 7 demonstrates specification of the synthetic dataset which address simple to complex markets.
Due to Colab memory limitations (Table 4), all lexicographic preference data are generated by up to 4 binary attributes. It was not possible to load all lexicographic preference (binary) data with 4 attributes and above onto Colab. For 4 attributes, the size of all complete and complete/partial data was 1.4 GB and 3.2 GB, respectively. Since the number of trees gets exponentially large, to be manageable regarding the memory size, we limited the total number of trees per each number of attributes. Hence, for 4 and 5 attributes, 4000 random synthetic lexicographic preferences were generated from each. Moreover, for 2 attributes, the partial lexicographic preference tree (i.e., with 1 attribute) is not defined. For the set containing both complete and partial lexicographic preferences, the same complete set is used for the other side of the test. Table 5 expresses the proportion of the number of complete and partial preferences that it generates.

4.3.2. Experiment II: PLPSim Performance in Group Tariff Selection

In this experiment, we contrast PLPSim with PLPDis existing method for comparing partial lexicographic preferences in coalition formation of consumers for suppliers’ tariffs. This second test is run on 27 synthesized energy markets, including all 2 to 10 complete lexicographic tariffs and 10 to 1000 partial lexicographic preferences of consumers over 2 to 4 binary attributes, Table 6 and Table 7. In each test, the count of consumer groups remains constant and equal to the count of tariffs offered in the market. Here, first, the PLPSim and PLPDis similarity methods applied to complete and partial lexicographic preferences are compared in scenarios based on various attributes of lexicographic preferences, the count of tariffs offered by suppliers, and the count of energy consumer demands. The results are evaluated through the Davies-Bouldin dispersion index (the less, the better; Definition 10) and Normal Discounted Cumulative Gain (nDCG; closer to 1, the better; Definition 11) and are compared with PLPDis performance. We also employ our proposed F@Lex metric (Definitions 12—15) to focus on performance of PLPSim for selecting different contracts in coalition formation systems (presented in Section 3.4 and Section 3.3, respectively). Table 8 lists these combinations, totally resulting in 162 experiment scenarios.
Table 6. Specification of Experiment II dataset for market setting regarding the number of attributes, tariffs, and consumers.
Table 6. Specification of Experiment II dataset for market setting regarding the number of attributes, tariffs, and consumers.
Market 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
#Attributes 2 2 2 2 3 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4 4 4 4 4 3 4
#Tariffs 2 2 5 5 2 2 2 5 5 5 10 10 10 2 2 2 5 5 5 10 10 10 20 20 20 50 50
#Consumers 10 16 10 16 10 100 1000 10 100 1000 10 100 1000 10 100 1000 10 100 1000 10 100 1000 10 100 1000 1000 1000
Table 7. Specification of Experiment II dataset for market setting regarding price range.
Table 7. Specification of Experiment II dataset for market setting regarding price range.
Suppliers tariff price
(currency/kWh)
Quorum for group discount Consumers bid price
(currency/kWh)
1000 4000 5 20 1500 3000
Table 8. Lexicographic similarity measurement methods and group tariff selection in Experiment II.
Table 8. Lexicographic similarity measurement methods and group tariff selection in Experiment II.
Similarity method PLPDis PLPSim
Coalition method HRECS1 HRECS2 HRECS3
Tariff contract CFB CFA CFW CFP

4.5. Experimental Results

Experiments were conducted across distinct market scenarios, encompassing varying scales of consumer populations, ranging from small groups of 10–20 participants to larger markets with more than 200 consumers, tariffs, and prices. The results provide a comprehensive view of how the proposed PLPSim, ContractLex, and PriceLex perform under diverse HRECS coalition formation settings.
According to Figure 10, the family simulation methods and Kendall-based distance sensing methods (LPDis and PLPdis) consume more processing time and memory. There exists a direct relation between the count of attributes of lexicographic preferences and the computational complexity of all methods. The PLPSim method outperforms its counterparts in all three criteria, DB, nDCG, and F@Lex.
As observed in Figure 11, an increase in the count of attributes increases the Davis-Bouldin index of PLPSim and PLPDis methods, where PLPDis yields a higher average. The PLPSim method maintains the quality by increasing the count of attributes, on average. PLPSim outperforms PLPDis in two other HRECSs that focus on consumers only or all parties.
The F@Lex satisfaction criteria (Definitions 12 to 15) indicate the appropriateness of the contract for the defined parties; that is, the contract that results from implementing the combination of the tariff selection protocol, the coalition formation method, and the similarity method, reveals its effect on consumer and supplier satisfaction as an F-measure. For this purpose, any contract and other solutions related to a lexicographic preference, with degrees based on their rank, are placed in more than one category. Different protocols lead to different satisfaction for consumers and suppliers. The F-measure is a number between 0 and 1, and the closer to 1 it is, the better. According to Figures 12—14, it can be deduced that CFP, CFB, CFW, and CFA contracts are appropriate for consumers, respectively, and CFB is appropriate for both consumers and suppliers. The HRECS3 coalition method is better than other coalition methods.

4.4. Findings and Policy Implications,

The evaluation of the proposed methods and protocols reveals several important insights into scalability, similarity performance, coalition efficiency, contract profitability, error minimization, and F-measure outcomes. These findings collectively demonstrate how methodological choices influence consumer welfare, supplier benefits, and overall societal outcomes across different coalition and contract settings:
  • Runtime scalability: PLPSim exhibits linear growth in runtime and scalability with increasing numbers of features (Figure 10a).
  • Memory efficiency: PLPSim is more scalable in terms of memory consumption as the number of features increases (Figure 10b).
  • Similarity performance: PLPSim achieves more favorable nDCG similarity than PLPDis for preferences with fewer facets (Figure 11).
  • Coalition efficiency: PLPSim is more efficient in symmetric coalition methods (HREC3), while PLPDis efficiency decreases (Figure 11).
  • Consumer similarity index: HRECS3 coalition formation yields the smallest Davis–Bouldin index of consumer similarity (Figure 11).
  • Consumer F-measure: CFP protocol produces the best F-measure for consumers (Figure 12).
  • Supplier F-measure: CFB protocol yields the best F-measure for suppliers and, on average, for society (Figure 13).
  • Alternative supplier F-measure: HRECS3 produces the best F-measure for suppliers and, on average, for society (Figure 14).
  • PLPDis comparative performance: PLPDis similarity method achieves slightly better F-measure than PLPSim for consumers, suppliers, and society (Figure 14).
Briefly, the evaluation results indicate that HRECSs combined with any contract protocol employing PLPSim outperform those applying the PLPDis method in terms of Normalized Discounted Cumulative Gain (nDCG) and intra- and inter-group Davies–Bouldin dispersion. With respect to F@LeX, the selection of tariffs adopting HRECS3 + CFP yields the highest satisfaction for consumers, whereas HRECS3 + CFB provides the greatest satisfaction for both parties. The observed improvements in nDCG and F@LeX (F-measure) are not merely statistical; they reflect meaningful advancements in complex markets, including the hybrid renewable energy market case study.
Higher nDCG scores indicate that the most relevant tariffs (i.e., those closely aligned with consumer preferences) are ranked higher in the recommendation list. In practice, this means that:
  • Consumers are more likely to encounter tariffs that match their needs early in the selection process.
  • Decision fatigue is reduced and satisfaction increased, as users spend less time evaluating irrelevant options.
  • Trust in the system’s ability to reflect individual priorities is improved, which can boost adoption rates of HRES.
Improved F-measure, which balances precision and recall, reflects a more accurate and comprehensive matching between consumer bids and supplier offers. This leads to:
  • More successful coalition formations, as consumers are grouped with others who share similar preferences.
  • A higher likelihood of meeting supplier quorum thresholds, unlocking group discounts and lowering energy costs.
  • Enhanced supplier profitability and consumer retention, due to better alignment of expectations and outcomes.
Together, these metrics translate into real-world gains—enhancing market efficiency, boosting consumer satisfaction, and strengthening supplier competitiveness—that are especially vital in decentralized energy systems.

5. Conclusions and Future Works

We introduced PLPSim similarity measurement method, which distinguishes asymmetry in comparing complete or partial lexicographic preferences. To group the consumers concerning renewable energy by applying the most appropriate tariff at a discounted cost, the degree of similarity of lexicographic preferences is applied to calculate the proposed PLPSim and form a group purchase coalition and contract allocation. To operationalize coalition agreements, we defined five types of lexicographic contracts (CLF, CF, CFW, CFA, and CFP), which are applied within three proposed HRECS coalition systems to determine outcomes that maximize fairness and efficiency. In this process, the most appropriate tariff is selected for each consumer. The objective is to provide a planning method for purchasing hybrid renewable energy to manage consumption in smart grids and form a coalition of hybrid renewable energy consumers based on the similarity of preferences and tariff selection. We evaluated our approach vs. existing methods (CPSim, LPDis, and PLPDis) using Davis-Bouldin, nDCG, and proposed F@Lex in coalition formation. Due to the lack of a real-world PLP-tree dataset, we presented PLPGen for generating such synthetic data. According to the evaluation methods over a variety of energy market scenarios, it is possible to adopt the proposed PLPSim method next to different coalition methods and determine the contract protocol in terms of execution time, memory, dispersion, and the essential factor, mutual satisfaction.
In future work, in addition to evaluating these available solutions, the attributes and edges of the LP-tree can be ranked in the PLPSim similarity method, and the percentage of completeness of the solutions and varying pricing conditions can affect the degree of similarity of the lexicographic preferences tree and robustness of coalitions. Similar to CPSim [16], we balanced the weights of components for shared variables, edges, and rank products in Equation (3). A future study could conduct sensitivity analyzes to determine how variations in these weights affect coalition formation outcomes. Although the string and array implementations of the methods bring the fastest calculations for lexicographic representation, specific algorithmic optimizations for functioning in metropolitan-scale energy markets could be the subject of a future study. The reputation of energy suppliers could be considered as their priority for allocating their tariffs to consumers in meeting their consumers' demands. The interdisciplinary nature of this subject allows for innovative solutions that could significantly impact the future of energy consumption and sustainability. Future research could benefit from combining coalition-based tariff personalization with broader market and policy frameworks. Integrating lexicographic preference coalition models with economic efficiency assessments may ensure both consumer satisfaction and financial sustainability [8]. At the same time, exploring synergies with adaptive optimization strategies—drawing on evolutionary game theory and reinforcement learning—could enhance responsiveness to dynamic market conditions [9,14]. Incorporating risk-sharing support schemes may provide a pathway to balance consumer preference aggregation with macro-level risk management, reducing tariff deficits while maintaining investment incentives [10]. Extending coalition-based models to interact with hybrid renewable energy system optimization approaches could further improve system-level efficiency and resilience [11]. Building stronger connections with game-theoretical analyses of electricity markets would reinforce the strategic and policy relevance of coalition models [13]. Taken together, these directions highlight the potential for a unified framework that bridges consumer-centric coalition models with adaptive, sustainable energy market policies.

Author Contributions

Faria Nassiri-Mofakham: Conceptualization, Data curation, Developing algorithms, Formal analysis, Investigation, Methodology, Resources, Supervision, Validation, Visualization, Writing - original draft, and Writing - review & editing. Shadi Farid: Conceptualization, Data curation, Formal analysis, Investigation, Methodology, Resources; Software, Visualization, Writing - original draft. Katsuhide Fujita: Supervision, Validation, and Writing - review & editing.

Funding

This research received no external funding.

Data Availability Statement

The original contributions presented in this study are included in thearticle/supplementary material. Further inquiries can be directed to thecorresponding author(s).

Acknowledgments

The authors would like to thank Editors-in-Chief, Prof. Dr Willy Susilo and Prof. Dr Leandros Maglaras, Assistant Editor, Roda Zhou, MDPI English and Editing services, and especially respected reviewers, who helped us to improve the quality and readability of our manuscript with their constructive comments.

Conflicts of Interest

The authors declare no conflicts of interest.
References

Appendix A. PLPGen: Generating Lexicographic Preference Dataset

Due to lack of real dataset for preferences of consumers and suppliers in lexicographic forms, we present algorithms for generating synthetic data. This section presents the PLPGen method to generate binary lexicographic preference trees with the desired number of attributes, where the LP-tree is either complete or partial. Upon receiving the number of attributes ( n ) as input (Algorithm A1), an array with the size of 3 × 2 n is considered for producing the tree with depth n , where each row of the array has 3 elements.
Algorithm A1. Get-Param
1:Input: INT: desired number of attributes
2:Output: attributes and their values
3:Begin
4:  param int(INT/2)
5:  paramnum int(INT % 2)
6:return (chr(ord(‘a’)+param) + str(paramnum))
7:End
In principle, the structure used is the same as a heap, which is stored in preorder. That is, the left tree rooted at its 2 i child, and then the right tree rooted at its 2 i + 1 child are being processed. First, for each attribute, due to the binary lexicographic preference tree, we consider 2 values and construct the tree according to the attribute values. For example, for A ’s attribute, we consider two values, 0 and 1, and for B , two values, 2 and 3, in making the nodes. Then, the Make-Node Algorithm (Algorithm A2) is used to construct the nodes of the LP-tree. So that we can make each node of the desired trees according to the rules of tree construction mentioned in Section 3.6.
Algorithm A2. Make_Node
1:Input: index, cond, param
2:Output: lexicographic preference
3:Begin
4:  c false
5:  max 0
6:  if len(paramlist) == 0 or ind pow(2 , max) then
7:   yield[]
8:  else if cond == DUMMYCON then
9:   yield[{“ind”: ind , “cond”: cond , “cond1”: -1, “cond2”: -2 }]
10:  else
11:   foreach k , pr in enumerate(paramlist) do
12:    foreach st in [(2*pr , 2*pr+1) , (2*pr+1 , 2*pr)] do
13:     para2list remove index k from paramlist
14:     par1list par2list
15:     if not c and len(paramlist) max and len(par1list) 0 then
16:      lstt [DUMMYNODE , UNCONDITIONALNODE , CONDITIONALNODE]
17:     else if
18:      lstt [UNCONDITIONALNODE , CONDITIONALNODE]
19:     end if len(par1list) 0 then
20:      yield[{“ind”: ind, “cond”: cond, “cond1”: st[0], “cond2”: st[1]}]
21:      foreach right in lstt do
22:       if right == DUMMYNODE then
          yield[{“ind”: 2*ind, “cond”: DUMMYCON, “cond1”: 1, “cond2”: -1}], {“ind”: ind, “cond”: cond, “cond1”: st[0], “cond2”: st[1]}
23:       else if right == UNCONDITIONALNODE then
24:        foreach res1 in list(make_node(2*ind , DUMMYNODE , para1list , c , max)) do
25:         yield res1+[{“ind”: ind , “cond”: cond , “cond1”: st[0], “cond2”: st[1] }]
26:        end for
27:       else
28:        foreach res1 in list(make_node(2*ind,st[0],par1list,c,max)) do
29:         foreach res2 in list(make_node(2*ind+1,st[1],par2list,c,max)) do
30:          if len(res2) == 0 or len(res1) == 0 or res2[len(res2)-1][“cond1”] res1[len(res1)-1][“cond1”] then
31:           yield res1 + res2 + [{“ind”: ind , “cond”: cond , “cond1”: st[0], “cond2”: st[1] }]
32:          end if
33:         end for
34:        end for
35:       end if
36:      end for
37:     end for
38:    end for
39:   end if
40:  end if
41:End
To construct each node, we first examine which of the three states of ‘dummy’, ’null’, or conditional parent value it contains. If it is ‘dummy’, two children of the node are also ‘dummy’. If it is null, the node has only the left child, and if the conditional parent cell has a value, first the right child and then the left child of that node will be completed. After making each node, we check to ensure that no duplicate nodes in each branch of the tree exist. Finally, to print the tree in the output file, we use the Tree-Print Algorithm (Algorithm A3) to convert the generated node in the Make-Node Algorithm into comprehensible, readable parameters and to obtain the desired final representation of the tree.
Algorithm A3. Tree-Print
1:Input: res, param
2:Output: li          // LP-tree
3:Begin
4:for each re in res do
5:  re.sort(key = lambda x: -x[“ind”])
6:  rem 0
7:  c true
8:for each i in re do:
9:  if i[‘cond’] == dummycon then
10:   if i[‘ind’]%2 == 0 then
11:    c true
12:   end if
13:    rem rem + 1
14:   else
15:    break
16:   end if
17: end for
18: rem rem[rem:]
19: re.sort(key = lambda x:x[“ind”])
20: s “dummy”
21: last last -1
22: d 0
23:for each i in re do
24:  if last +1 i[“ind”] and last -1 then
25:   for each wow in range(last +1 , i[“ind”]) do
26:    s s + “dummy”
27:    if wow%2 == 0 then
28:     c false
29:    end if
30:   end for
31:  end if
32:  last i[“ind”]
33:  d max(d , log(last , 2))      // Finding the maximum depth of the tree
34:  cond i[“cond”]
35:   param1 i[“cond1”]
36:  param2 i[“cond2”]
37:  if cond == NULLCOM then
38:   s s + “null” + Get_param(param1) + “,” + Get_param(param2)
39:  else if cond == DUMMYCON then
40:   s s + “dummy”
41:   if last%2 == 0 then
42:    c false
43   end if
44:  else
45:   s s + Get_param(cond) + “,” + Get_param(param1) + “,” + Get_param(param2)
46:  end if
47:    s s + “*”
48: li s[:len(s) -1] , (#I if not c or d < param-1 else #C) // Determining the completeness or partiality of the tree
49:end for
50: return li
51:end for
52:End

References

  1. Booth, R., Y. Chevaleyre, J. Lang, J. Mengin and C. Sombattheera. "Learning conditionally lexicographic preference relations." Presented at ECAI, 2010. 269–74.
  2. Chevaleyre, Y., U. Endriss, J. Lang and N. Maudet. "A short introduction to computational social choice." Presented at International Conference on Current Trends in Theory and Practice of Computer Science, 2007. Springer, 51–69.
  3. Allen, J., X. Liu, K. Umapathy and S. Reddivari. "Clustering partial lexicographic preference trees." Presented at FLAIRS Conference, 2020. 172–75.
  4. Fargier, H., P.-F. Gimenez, J. Mengin and B. N. L. Nguyen. "The complexity of unsupervised learning of lexicographic preferences." In MPREF 2022-13th Multidisciplinary Workshop on Advances in Preference Handling, 2022. 1–8.
  5. Li, C., S. Chawla, U. Rajan and K. Sycara. "Mechanism design for coalition formation and cost sharing in group-buying markets." Electronic Commerce Research and Applications 3 (2004): 341–54. [CrossRef]
  6. Doumpos, M., E. Grigoroudis, N. F. Matsatsinis and C. Zopounidis. "Preference disaggregation analysis: An overview of methodological advances and applications." Intelligent Decision Support Systems: Combining Operations Research and Artificial Intelligence-Essays in Honor of Roman Słowiński (2022): 73–100.
  7. Sandomirskiy, F. and P. Ushchev. "The geometry of consumer preference aggregation." arXiv preprint arXiv:2405.06108 (2024):. [CrossRef]
  8. Kurbatova, T., I. Sotnyk, O. Prokopenko, I. Bashynska and U. Pysmenna. "Improving the feed-in tariff policy for renewable energy promotion in ukraine’s households." Energies 16 (2023): 6773. [CrossRef]
  9. Cheng, L., X. Wei, M. Li, C. Tan, M. Yin, T. Shen and T. Zou. "Integrating evolutionary game-theoretical methods and deep reinforcement learning for adaptive strategy optimization in user-side electricity markets: A comprehensive review." Mathematics (2227-7390) 12 (2024):. [CrossRef]
  10. Algarvio, H. "The economic sustainability of variable renewable energy considering the negotiation of different support schemes." sustainability 15 (2023): 4471. [CrossRef]
  11. Giedraityte, A., S. Rimkevicius, M. Marciukaitis, V. Radziukynas and R. Bakas. "Hybrid renewable energy systems—a review of optimization approaches and future challenges." Applied Sciences. 15 (2025): 1–30. [CrossRef]
  12. Pawar, R., K. P. Dalsania, A. Sircar, K. Yadav and N. Bist. "Renewable energy hybridization: A comprehensive review of integration strategies for efficient and sustainable power generation." Clean Technologies and Environmental Policy 26 (2024): 4041–58. [CrossRef]
  13. Cheng, L., P. Huang, M. Zhang, R. Yang and Y. Wang. "Optimizing electricity markets through game-theoretical methods: Strategic and policy implications for power purchasing and generation enterprises." Mathematics 13 (2025): 373. [CrossRef]
  14. Cheng, L., R. Sun, K. Wang, F. Yu, P. Huang and M. Zhang. "Advancing sustainable electricity markets: Evolutionary game theory as a framework for complex systems optimization and adaptive policy design." Complex & Intelligent Systems 11 (2025): 320. [CrossRef]
  15. Chevaleyre, Y., U. Endriss, J. Lang and N. Maudet. "Preference handling in combinatorial domains: From ai to social choice." AI Magazine 29 (2008): 37. [CrossRef]
  16. El Fidha, S. and N. B. Amor. "Multi-agent conditional preference networks with incomplete and different structure." Presented at 2014 6th International Conference of Soft Computing and Pattern Recognition (SoCPaR), 2014. IEEE, 197–202.
  17. Robu, V., M. Vinyals, A. Rogers and N. R. Jennings. "Efficient buyer groups with prediction-of-use electricity tariffs." IEEE Transactions on Smart Grid 9 (2018): 4468–79. [CrossRef]
  18. Lilliu, F., D. R. Recupero, M. Vinyals and R. Denysiuk. "Incentive mechanisms for the secure integration of renewable energy in local communities: A game-theoretic approach." Sustainable Energy, Grids and Networks 36 (2023): 101166. [CrossRef]
  19. Ghotbi, M. and F. Nassiri-Mofakham. "Aggregating wcp-nets using borda choice." Proceedings of The 11st International Conference on e-Commerce with the focus on e-Tourism, e-Health, and Health Tourism, Isfahan, Iran, 2017. 1––10.
  20. Farid, S. and F. Nassiri-Mofakham. "Hybrid renewable energy tariff selection using providers and consumers lexicographic preferences similarity." International Conference on Applied Energy 2021, Thailand/Virtual, 2021. 4.
  21. Burges, C., T. Shaked, E. Renshaw, A. Lazier, M. Deeds, N. Hamilton and G. Hullender. "Learning to rank using gradient descent." Presented at Proceedings of the 22nd international conference on Machine learning, 2005. 89–96.
  22. Davies, D. L. and D. Bouldin. "A cluster separation measure." IEEE Trans Pattern Anal Mach Intell 1 (1979): 224–27. [CrossRef]
  23. Wang, Y., L. Wang, Y. Li, D. He and T.-Y. Liu. "A theoretical analysis of ndcg type ranking measures." Presented at Conference on learning theory, 2013. PMLR, 25–54.
  24. Abushnaf, J. and A. Rassau. "Impact of energy management system on the sizing of a grid-connected pv/battery system." The Electricity Journal 31 (2018): 58–66. [CrossRef]
  25. Deshmukh, M. and S. Deshmukh. "Modeling of hybrid renewable energy systems." Renewable and Sustainable Energy Reviews 12 (2008): 235–49. [CrossRef]
  26. Kakran, S. and S. Chanana. "Smart operations of smart grids integrated with distributed generation: A review." Renewable and Sustainable Energy Reviews 81 (2018): 524–35. [CrossRef]
  27. Schleifer, A. H., D. Harrison-Atlas, W. J. Cole and C. A. Murphy. "Hybrid renewable energy systems: The value of storage as a function of pv-wind variability." Frontiers in Energy Research 11 (2023): 1036183. [CrossRef]
  28. Pal, H. "Modeling the dynamic effects of tariffs on economic variables and trade policies." Future Business Journal 11 (2025):. [CrossRef]
  29. Stute, J. and M. Klobasa. "How do dynamic electricity tariffs and different grid charge designs interact?-implications for residential consumers and grid reinforcement requirements." Energy Policy 189 (2024): 114062. [CrossRef]
  30. Vardakas, J. S., N. Zorba and C. V. Verikoukis. "A survey on demand response programs in smart grids: Pricing methods and optimization algorithms." IEEE Communications Surveys & Tutorials 17 (2015): 152–78.
  31. Belmar, F., P. Baptista and D. Neves. "Modelling renewable energy communities: Assessing the impact of different configurations, technologies and types of participants." Energy, Sustainability and Society 13 (2023): 18. [CrossRef]
  32. Ferreira, E. C. C. Renewable energy communities: Concepts, approaches and the case study of telheiras neighborhood in lisbon. Universidade NOVA de Lisboa (Portugal), 2023,.
  33. Romero-Lankao, P., N. Rosner, R. A. Efroymson, E. S. Parisch, L. Blanco, S. Smolinski and K. Kline. "Community engagement and equity in renewable energy projects: A literature review." (2023):.
  34. Chen, X., C. Chen, G. Tian, Y. Yang and Y. Zhao. "Comprehensive evaluation research of hybrid energy systems driven by renewable energy based on fuzzy multi-criteria decision-making." Frontiers in Energy Research 11 (2023): 1294391.
  35. Li, M. and B. Kazimipour. "An efficient algorithm to compute distance between lexicographic preference trees." Presented at IJCAI, 2018. 1898–904.
  36. Järvelin, K. and J. Kekäläinen. "Cumulated gain-based evaluation of ir techniques." ACM Transactions on Information Systems (TOIS) 20 (2002): 422–46.
Figure 1. LP-tree.
Figure 1. LP-tree.
Preprints 191637 g001
Figure 2. (a) A Complete LP-tree, (b) A Partial LP-tree, (c) Changing the order of solutions of LP-tree 2b.
Figure 2. (a) A Complete LP-tree, (b) A Partial LP-tree, (c) Changing the order of solutions of LP-tree 2b.
Preprints 191637 g002
Figure 4. Relative interleaved turns between two ordered matrices S and C contain ordered lists of consumers similar to tariff preferences and ordered lists of tariffs similar to consumers' preferences.
Figure 4. Relative interleaved turns between two ordered matrices S and C contain ordered lists of consumers similar to tariff preferences and ordered lists of tariffs similar to consumers' preferences.
Preprints 191637 g004
Figure 5. Representation of the general lexicographic preference tree L with n attributes and $m$ values, (b) Array representation of the lexicographic preference tree L , (c) String representation of the lexicographic preference tree L .
Figure 5. Representation of the general lexicographic preference tree L with n attributes and $m$ values, (b) Array representation of the lexicographic preference tree L , (c) String representation of the lexicographic preference tree L .
Preprints 191637 g005
Figure 6. Binary lexicographic preference tree representation with conditional string and array from the tree in Figure 2b.
Figure 6. Binary lexicographic preference tree representation with conditional string and array from the tree in Figure 2b.
Preprints 191637 g006
Figure 7. Score of solutions for multiple lexicographic preferences with 3 attributes, where r is the sum of squared values of solutions, and V and E are respectively the vertices and edges of the LP-trees; (a) Complete: UI-UP, (b) Partial: CI-UP, (c) Partial: CI-CP, and (d) Complete: CI-CP.
Figure 7. Score of solutions for multiple lexicographic preferences with 3 attributes, where r is the sum of squared values of solutions, and V and E are respectively the vertices and edges of the LP-trees; (a) Complete: UI-UP, (b) Partial: CI-UP, (c) Partial: CI-CP, and (d) Complete: CI-CP.
Preprints 191637 g007
Figure 8. Intermediate calculations for PLPSim similarity of the four lexicographic preference trees of , where s r
Figure 8. Intermediate calculations for PLPSim similarity of the four lexicographic preference trees of , where s r
Preprints 191637 g008
Figure 9. An ordered matrix based on price φ , (a) S contains ordered lists of Tariffs A s preferences similar to the demands B c of consumers, (b) C contains ordered lists of B c preferences of consumers similar to the tariffs A s .
Figure 9. An ordered matrix based on price φ , (a) S contains ordered lists of Tariffs A s preferences similar to the demands B c of consumers, (b) C contains ordered lists of B c preferences of consumers similar to the tariffs A s .
Preprints 191637 g009
Figure 10. Consumption of computational resources as average to run similarity methods LPDis, PLPDis, CPSim, and PLPSim according to the number of attributes of lexicographic preferences (a) time (s), (b) memory (gigabytes), and (c) processing.
Figure 10. Consumption of computational resources as average to run similarity methods LPDis, PLPDis, CPSim, and PLPSim according to the number of attributes of lexicographic preferences (a) time (s), (b) memory (gigabytes), and (c) processing.
Preprints 191637 g010
Figure 11. PLPSim and PLPDis’s nDCG and Davies-Bouldin index of consumer's lexicographic preferences with 2—4 attributes.
Figure 11. PLPSim and PLPDis’s nDCG and Davies-Bouldin index of consumer's lexicographic preferences with 2—4 attributes.
Preprints 191637 g011
Figure 12. Consumers’ F@Lex (satisfaction) for tariff contracts CFP, CFA, CFW, and CFB with the PLPSim method.
Figure 12. Consumers’ F@Lex (satisfaction) for tariff contracts CFP, CFA, CFW, and CFB with the PLPSim method.
Preprints 191637 g012
Figure 13. The social satisfaction (F@Lex) for tariff contracts CFP, CFA, CFW, and CFB with the PLPSim method.
Figure 13. The social satisfaction (F@Lex) for tariff contracts CFP, CFA, CFW, and CFB with the PLPSim method.
Preprints 191637 g013
Figure 14. The social satisfaction (F@Lex) for coalition formations HRECS1, HRECS2, and HRECS3 with the PLPSim method.
Figure 14. The social satisfaction (F@Lex) for coalition formations HRECS1, HRECS2, and HRECS3 with the PLPSim method.
Preprints 191637 g014
Table 1. Comparison of similarity of lexicographic preference tress of Figure 2 by PLPSim, CPSim, LPDis, and PLPDis.
Table 1. Comparison of similarity of lexicographic preference tress of Figure 2 by PLPSim, CPSim, LPDis, and PLPDis.
PLPDis distance LPDis distance CPSim similarity PLPSim similarity Lexicographic preferences
10 7 0.833 0.906 Figure 2a andFigure 2b
8 5 0.833 0.698 Figure 2a andFigure 2c
Table 2. Three complete binary lexicographic preference tariffs A s from 2 suppliers and complete binary lexicographic preferences demand B c from 10 consumers‌.
Table 2. Three complete binary lexicographic preference tariffs A s from 2 suppliers and complete binary lexicographic preferences demand B c from 10 consumers‌.
Partial/Complete Binary Lexicographic Preference (PLP) Bid Consumer
dummy*null,a0,a1*a0,c1,c0*a1,b1,b0*null,b0,b1#1500 B 1 c 1
dummy*null,c0,c1*null,a1,a0#1700 B 2 c 2
dummy*null,a1,a0*a1,c1,c0*a0,b1,b0*null,b1,b0*dummy*b1,c1,c0*b0,c0,c1#2000 B 3 c 3
dummy*null,b0,b1*b0,a0,a1*b1,a1,a0*dummy*dummy*null,c1,c0#1400 B 4 c 4
dummy*null,a1,a0*null,b0,b1*dummy*null,c1,c0#1600 B 5 c 5
dummy*null,a0,a1*null,b1,b0*dummy*null,c0,c1#1500 B 6 c 6
dummy*null,c1,c0*null,b1,b0*dummy*null,a1,a0#1800 B 7 c 7
dummy*null,a0,a1*null,b1,b0*dummy*b1,c1,c0*b0,c0,c1#1700 B 8 c 8
dummy*null,c0,c1*null,b0,b1#1600 B 9 c 9
dummy*null,a0,a1*null,c1,c0*dummy*null,b0,b1#2000 B 10 c 10
(Complete) Binary Lexicographic Preference (LP) Ask Supplier
dummy*null,b0,b1*null,c1,c0*dummy*c1,a0,a1*c0,a1,a0#1500#2#1 A 1 s 1
dummy*null,c1,c0*c1,b1,b0*c0,a1,a0*null,a1,a0*dummy*a1,b0,b1*a0,b1,b0#1700#3#1 A 3 s 1
dummy*null,b1,b0*b1,a1,a0*b0,a0,a1*null,c1,c0*dummy*a0,c0,c1*a1,c1,c0#1600#2#2 A 2 s 2
Table 3. Tariff selection for consumer preferences by PLPSim similarity and HRECS1, HRECS2, and HRECS3 coalition formation methods and CLF, CFB, CFW, CFA, and CFP tariff contracts.
Table 3. Tariff selection for consumer preferences by PLPSim similarity and HRECS1, HRECS2, and HRECS3 coalition formation methods and CLF, CFB, CFW, CFA, and CFP tariff contracts.
CFP CFA CFW CFB CLF Demand Method
Price Contract Price Contract Price Contract Price Contract Price Tariff
1350 b 0 c 1 a 0 1620 b 1 c 0 a 0 1620 b 0 c 0 a 0 1620 b 0 c 1 a 1 1350 A 1 B 1 HRECS1
1440 b 0 c 1 a 0 1620 b 1 c 0 a 0 1620 b 0 c 0 a 0 1620 b 0 c 1 a 1 1350 A 1 B 2
1850 c 1 b 1 a 1 2000 c 0 a 0 b 0 2000 c 1 b 0 a 0 2000 c 1 b 1 a 1 1800 A 3 B 3
- - - - - - - - - - B 4
1395 b 0 c 1 a 0 1620 b 1 c 0 a 0 1620 b 0 c 0 a 0 1620 b 0 c 1 a 1 1350 A 1 B 5
130 b 0 c 1 a 0 1620 b 1 c 0 a 0 1620 b 0 c 0 a 0 1620 b 0 c 1 a 1 1350 A 1 B 6
1750 c 1 b 1 a 1 2000 c 0 a 0 b 0 2000 c 1 b 0 a 0 2000 c 1 b 1 a 1 1800 A 3 B 7
1440 b 0 c 1 a 0 1620 b 1 c 0 a 0 1620 b 0 c 0 a 0 1620 b 0 c 1 a 1 1350 A 1 B 8
1395 b 0 c 1 a 0 1620 b 1 c 0 a 0 1620 b 0 c 0 a 0 1620 b 0 c 1 a 1 1350 A 1 B 9
1800 b 1 a 1 c 1 2000 b 0 a 1 c 0 2000 b 1 a 0 c 0 2000 b 1 a 1 c 1 2000 A 2 B 10
1350 b 0 c 1 a 0 1800 b 1 c 0 a 0 1800 b 0 c 0 a 0 1800 b 0 c 1 a 1 1350 A 1 B 1 HRECS2
1700 c 1 b 1 a 1 1700 c 0 a 0 b 0 1700 c 1 b 0 a 0 1700 c 1 b 1 a 1 1800 A 3 B 2
1575 b 0 c 1 a 0 1800 b 1 c 0 a 0 1800 b 0 c 0 a 0 1800 b 0 c 1 a 1 1350 A 1 B 3
- - - - - - - - - - B 4
1395 b 0 c 1 a 0 1800 b 1 c 0 a 0 1800 b 0 c 0 a 0 1800 b 0 c 1 a 1 1350 A1 B 5
1350 b 0 c 1 a 0 1800 b 1 c 0 a 0 1800 b 0 c 0 a 0 1800 b 0 c 1 a 1 1350 A 1 B 6
1530 b 1 a 1 c 1 1800 b 0 a 1 c 0 1800 b 1 a 0 c 0 1800 b 1 a 1 c 1 2000 A 2 B 7
1700 c 1 b 1 a 1 1700 c 0 a 0 b 0 1700 c 1 b 0 a 0 1700 c 1 b 1 a 1 1800 A 3 B 8
1440 b 1 a 1 c 1 1800 b 0 a 1 c 0 1800 b 1 a 0 c 0 1800 b 1 a 1 c 1 2000 A 2 B 9
1620 b 1 a 1 c 1 1800 b 0 a 1 c 0 1800 b 1 a 0 c 0 1800 b 1 a 1 c 1 2000 A 2 B 10
1350 b 0 c 1 a 0 1530 b 1 c 0 a 0 1530 b 0 c 0 a 0 1530 b 0 c 1 a 1 1350 A 1 B 1 HRECS3
1440 b 0 c 1 a 0 1530 b 1 c 0 a 0 1530 b 0 c 0 a 0 1530 b 0 c 1 a 1 1350 A 1 B 2
1850 c 1 b 1 a 1 2000 c 0 a 0 b 0 2000 c 1 b 0 a 0 2000 c 1 b 1 a 1 1800 A 3 B 3
- - - - - - - - - - B 4
1395 b 0 c 1 a 0 1530 b 1 c 0 a 0 1530 b 0 c 0 a 0 1530 b 0 c 1 a 1 1350 A 1 B 5
1350 b 0 c 1 a 0 1530 b 1 c 0 a 0 1530 b 0 c 0 a 0 1530 b 0 c 1 a 1 1350 A 1 B 6
1485 b 0 c 1 a 0 1530 b 1 c 0 a 0 1530 b 0 c 0 a 0 1530 b 0 c 1 a 1 1350 A 1 B 7
1440 b 0 c 1 a 0 1530 b 1 c 0 a 0 1530 b 0 c 0 a 0 1530 b 0 c 1 a 1 1350 A 1 B 8
1395 b 0 c 1 a 0 1530 b 1 c 0 a 0 1530 b 0 c 0 a 0 1530 b 0 c 1 a 1 1350 A 1 B 9
1850 c 1 b 1 a 1 2000 c 0 a 0 b 0 2000 c 1 b 0 a 0 2000 c 1 b 1 a 1 1800 A 3 B 10
Table 4. Configuration of Google Colab used for experiments.
Table 4. Configuration of Google Colab used for experiments.
CPU Intel(R) Xenon(R) CPU @ 2.20GHz
GPU Tesla P100-PCIE-16GB 3584 CUDA cores , 16GB vRAM
RAM 12.6 GB
Table 5. Specification of Experiment I dataset for comparing Lexicographic Preferences similarity methods.
Table 5. Specification of Experiment I dataset for comparing Lexicographic Preferences similarity methods.
Lexicographic Preference Data Number of attributes
2 3 4 5
Count of all complete LP-trees 16 1248 4000 4000
All complete LP-tree data capacity (KB) 1 93 492 806
Count of complete/partial LP-trees - 1920 4000 4000
Complete/partial LP-tree data capacity (KB) - 103 367 553
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings

© 2026 MDPI (Basel, Switzerland) unless otherwise stated