Next Article in Journal
An SQL Query Description Problem with AI Assistance for an SQL Programming Learning Assistant System
Previous Article in Journal
PhishCluster: Real-Time, Density-Based Discovery of Malicious URL Campaigns from Semantic Embeddings
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

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

by
Faria Nassiri-Mofakham
1,*,
Shadi Farid
1 and
Katsuhide Fujita
2,*
1
Faculty of Computer Engineering, University of Isfahan, Isfahan 81746-73441, Iran
2
Institute of Global Innovation Research, Tokyo University of Agriculture and Technology, Tokyo 184-8588, Japan
*
Authors to whom correspondence should be addressed.
This article is a revised and expanded version of a paper entitled Hybrid Renewable Energy Tariff Selection Using Providers and Consumers Lexicographic Preferences Similarity, which was presented at the International Conference on Applied Energy, Thailand/Virtual, November–December 2021.
Information 2026, 17(1), 62; https://doi.org/10.3390/info17010062
Submission received: 31 October 2025 / Revised: 25 December 2025 / Accepted: 4 January 2026 / Published: 9 January 2026

Abstract

Lexicographic preference trees (LP-Trees) provide a compact and expressive representation for modeling complex decision-making scenarios, yet 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 CLF, CFB, CFW, CFA, CFP) for coalition-based contract and pricing strategies, along with a new evaluation metric, F@Lex, which is 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 consumers’ PLP-Trees are aggregated and matched with suppliers’ tariff contracts. Experiments across 162 market scenarios, evaluated using Normalized Discounted Cumulative Gain (nDCG), Davies–Bouldin dispersion, and F@Lex, demonstrate that PLPSim-based coalitions outperform baseline approaches. The combination HRECS3 + CFP yields the highest consumer satisfaction, while HRECS3 + CFB achieves balanced satisfaction for both consumers and suppliers. While electricity tariffs and renewable energy contracts—static and dynamic—serve as the motivating example, the proposed framework generalizes to diverse multi-agent systems, offering a foundation for preference-driven coalition formation, adaptive policy design, and sustainable market optimization.

Graphical Abstract

1. Introduction

Decision-making in multi-agent 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 the PLP-tree dataset, we generate a synthetic dataset by presenting the PLPGen algorithm. Together, PLPSim, ContractLex and PriceLex variants, and F@Lex form a methodological framework that advances preference-driven coalition formation in multi-agent 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 system 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 system 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, personalized 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 multi-agent 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 multi-agent 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]. In particular, the contemporary PLPDis method computes the distance between complete or partial lexicographic preferences (PLPs) [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 (HRESs) 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 system 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 system 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 the total order of the set of outcomes, which is reflexive, asymmetric, and transitive, and all the attributes of the set members are related to each other. If not all the members are 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 the 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 multi-agent environments where preferences are expressed lexicographically. We also present the PLPGen method for generating lexicographic preference synthetic datasets (Appendix A). 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 for 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; Section 3.5 introduces the evaluation metrics for PLP-trees; and Section 3.6 presents a computational representation of 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 preorder 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’s sake, 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 (PLPs), 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 have 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 preference L (LP-tree) are ranked according to Equation (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 (Equation (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 (Equation (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 for comparing two complete or partial lexicographic preference trees ( T 1 and T 2 ), PLPDis, 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 . To address this issue, we introduced the rank of solutions (Definition 3) and by adapting, extending, and improving CPSim (in the CP-nets context) [16] to lexicographic preferences, present the 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 the PLPSim of L P T j to L P T i through Equation (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 with lexicographic preferences, as follows.
Theorem 1
(PLPSim Total order). The similarity of lexicographic preference L P T j with lexicographic preference L P T i , satisfying 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 a structure T is similar to a structure T to a certain degree, then T must necessarily be similar to T to 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 1
(Novelty compared to symmetric measures). Unlike symmetric measures such as CPSim [16], which assumes 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 (Figure 2a) and two partial LP-trees (Figure 2b,c) representing two consumers’ 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, which suffers from forgetting some information in traversing partial trees [3], along with LPDis, which does not work well in partial LP-trees [35].
The 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 represents 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.
The sets of suppliers and consumers of hybrid renewable energy systems (HRECSs) 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 fewest number of people required for forming a coalition over the tariff, and the 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 the ID of c , respectively. In this setup, consumer c can buy tariffs, A s , that is, A s . φ s     φ c . For the supplier, s , the bid, 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, the 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 a matrix S = [ ( s , R s ) | s S ] forms ordered lists of consumers similar to the tariffs’ preferences. Because the symmetry of the similarity function is not needed, 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 order, 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, being arranged in the order of price decrease and price increase, respectively, and containing 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 only receives the 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 the 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:      for each 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:        for each 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 are 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 the sake of 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 , and, for the sake 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 , or for the sake of simplicity, | b u c k e t C | = 1 .
It begins 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 increased by one 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 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:     else if M > N then
8:       k S   M N
9:     end if
10:     t C , t S 1
11:    while S or C do    // i.e., t C < N or t S < M
12:      for each t C c < t C + k C
13:        s   C ( c , 1 )
14:        G ( s ) . a p p e n d ( c )
15:       for each t S r s M
16:          S ( r ) . r e m o v e ( c )     // i.e., delete B c from R r
17:       end for
18:        t C t C + k C
19:      end for           // and switches to the other matrix
20:      for each 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:       for each t S r s M
25:           S ( r ) . r e m o v e ( c )     // i.e., delete B c from R r
26:       end for
27:        t S t S + k S
28:      end for           // and switches to the other matrix
29:    end while
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—which 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 clearly 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 discounts are 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 for 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 Φ correspond 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, having 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 the 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 them, 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:    for each L in G do
5:       for each 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:      end for
10:    end for
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 with 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 and 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 an ordered list ranks 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 when it is 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 first 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 ) .
T P s , F N s , F P s ,   a n d   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:      for all  α 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:    for all  α 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 the satisfaction of both sides through coalition under varying market conditions.

3.6. Formulating Lexicographic Preference Representation

For the 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 ), where each attribute has at most m values ( x 1 , , x m ), be a tree with a 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”, and (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 is also set as ”null”, and the other children are “dummy”. 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 the 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 the parent node’s conditional value is located in the first cell. 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, 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), and lexicographic contracts (CLF, CFB, CFW, CFA, and 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, which 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–d, and peripheral calculations of solution ranks in Figure 8, the 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

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 multi-agent 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, 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 conducted 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, see 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 3.7.4 and performed the experiments on Google Colab (https://colab.research.google.com) (Table 4). We generated synthetic preference profiles using PLPGen (Appendix A) 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 two to five 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 5 demonstrates the specification of the synthetic dataset, which addresses simple to complex markets.
Due to Colab memory limitations (Table 4), all lexicographic preference data are generated by up to four binary attributes. It was not possible to load all the lexicographic preference (binary) data with four attributes and above onto Colab. For four attributes, the size of all complete and complete/partial data was 1.4 GB and 3.2 GB, respectively. Since the number of trees becomes exponentially large, to be manageable regarding the memory size, we limited the total number of trees for each number of attributes. Hence, for four and five attributes, 4000 random synthetic lexicographic preferences were generated from each. Moreover, for two attributes, the partial lexicographic preference tree (i.e., with one 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 the existing PLPDis 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; the 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 the 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, resulting in 162 experiment scenarios.

4.4. 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 the 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–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 Figure 12, Figure 13 and Figure 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.5. 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’s efficiency decreases (Figure 11).
  • Consumer similarity index: the HRECS3 coalition formation yields the smallest Davis–Bouldin index of consumer similarity (Figure 11).
  • Consumer F-measure: the CFP protocol produces the best F-measure for consumers (Figure 12).
  • Supplier F-measure: the 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: the PLPDis similarity method achieves a 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 the 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 could be ranked using the PLPSim similarity method, and the effect of the percentage of completeness of the solutions and varying pricing conditions on the degree of similarity of the lexicographic preferences tree and robustness of coalitions could be determined. 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 analyses 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 and adaptive, sustainable energy market policies.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/info17010062/s1, Python codes S1: PLPGen.zip.

Author Contributions

F.N.-M.: Conceptualization, Data curation, Developing algorithms, Formal analysis, Investigation, Methodology, Resources, Supervision, Validation, Visualization, Writing—original draft, and Writing—review and editing. S.F.: Conceptualization, Data curation, Formal analysis, Investigation, Methodology, Resources; Software, Visualization, Writing—original draft. K.F.: Supervision, Validation, and Writing—review and editing. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The original contributions presented in this study are included in the article/Supplementary Material. Further inquiries can be directed to the corresponding authors.

Acknowledgments

The authors would like to thank the 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.

Appendix A. PLPGen: Generating Lexicographic Preference Dataset

Due to the lack of a 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 three elements.
Algorithm A1. Get-Param.
// Attributes and their values
// Please refer to Supplementary Material.
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 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 two 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, as mentioned in Section 3.6.
Algorithm A2. Make_Node.
// Lexicographic preference
// Please refer to Supplementary Material.
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”, the 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 exist in each branch of the tree. 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.
// LP-tree
// Please refer to Supplementary Material.

References

  1. Booth, R.; Chevaleyre, Y.; Lang, J.; Mengin, J.; Sombattheera, C. Learning conditionally lexicographic preference relations. In Proceedings of the European Conference on Artificial Intelligence (ECAI), Lisbon, Portugal, 16–20 August 2010; pp. 269–274. [Google Scholar]
  2. Chevaleyre, Y.; Endriss, U.; Lang, J.; Maudet, N. A short introduction to computational social choice. In Proceedings of the International Conference on Current Trends in Theory and Practice of Computer Science, Harrachov, Czech Republic, 20–26 January 2007; Springer: Berlin/Heidelberg, Germany, 2007; pp. 51–69. [Google Scholar]
  3. Allen, J.; Liu, X.; Umapathy, K.; Reddivari, S. Clustering partial lexicographic preference trees. In Proceedings of the FLAIRS Conference, North Miami Beach, FL, USA, 17–20 May 2020; pp. 172–175. [Google Scholar]
  4. Fargier, H.; Gimenez, P.-F.; Mengin, J.; Nguyen, B.N.L. The complexity of unsupervised learning of lexicographic preferences. In Proceedings of the MPREF 2022-13th Multidisciplinary Workshop on Advances in Preference Handling, Vienna, Austria, 23–25 July 2022; pp. 1–8. [Google Scholar]
  5. Li, C.; Chawla, S.; Rajan, U.; Sycara, K. Mechanism design for coalition formation and cost sharing in group-buying markets. Electron. Commer. Res. Appl. 2004, 3, 341–354. [Google Scholar] [CrossRef]
  6. Doumpos, M.; Grigoroudis, E.; Matsatsinis, N.F.; Zopounidis, C. Preference disaggregation analysis: An overview of methodological advances and applications. In Intelligent Decision Support Systems: Combining Operations Research and Artificial Intelligence-Essays in Honor of Roman Słowiński; Springer: Berlin/Heidelberg, Germany, 2022; pp. 73–100. [Google Scholar]
  7. Sandomirskiy, F.; Ushchev, P. The geometry of consumer preference aggregation. arXiv 2024, arXiv:2405.06108. [Google Scholar] [CrossRef]
  8. Kurbatova, T.; Sotnyk, I.; Prokopenko, O.; Bashynska, I.; Pysmenna, U. Improving the feed-in tariff policy for renewable energy promotion in Ukraine’s households. Energies 2023, 16, 6773. [Google Scholar]
  9. Cheng, L.; Wei, X.; Li, M.; Tan, C.; Yin, M.; Shen, T.; Zou, T. Integrating evolutionary game-theoretical methods and deep reinforcement learning for adaptive strategy optimization in user-side electricity markets: A comprehensive review. Mathematics 2024, 12, 3241. [Google Scholar] [CrossRef]
  10. Algarvio, H. The economic sustainability of variable renewable energy considering the negotiation of different support schemes. Sustainability 2023, 15, 4471. [Google Scholar] [CrossRef]
  11. Giedraityte, A.; Rimkevicius, S.; Marciukaitis, M.; Radziukynas, V.; Bakas, R. Hybrid renewable energy systems—A review of optimization approaches and future challenges. Appl. Sci. 2025, 15, 1744. [Google Scholar] [CrossRef]
  12. Pawar, R.; Dalsania, K.P.; Sircar, A.; Yadav, K.; Bist, N. Renewable energy hybridization: A comprehensive review of integration strategies for efficient and sustainable power generation. Clean Technol. Environ. Policy 2024, 26, 4041–4058. [Google Scholar] [CrossRef]
  13. Cheng, L.; Huang, P.; Zhang, M.; Yang, R.; Wang, Y. Optimizing electricity markets through game-theoretical methods: Strategic and policy implications for power purchasing and generation enterprises. Mathematics 2025, 13, 373. [Google Scholar] [CrossRef]
  14. Cheng, L.; Sun, R.; Wang, K.; Yu, F.; Huang, P.; Zhang, M. Advancing sustainable electricity markets: Evolutionary game theory as a framework for complex systems optimization and adaptive policy design. Complex Intell. Syst. 2025, 11, 320. [Google Scholar] [CrossRef]
  15. Chevaleyre, Y.; Endriss, U.; Lang, J.; Maudet, N. Preference handling in combinatorial domains: From AI to social choice. AI Mag. 2008, 29, 37. [Google Scholar] [CrossRef]
  16. El Fidha, S.; Amor, N.B. Multi-agent conditional preference networks with incomplete and different structure. In Proceedings of the 2014 6th International Conference of Soft Computing and Pattern Recognition (SoCPaR), Tunis, Tunisia, 11–14 August 2014; IEEE: New York, NY, USA, 2014; pp. 197–202. [Google Scholar]
  17. Robu, V.; Vinyals, M.; Rogers, A.; Jennings, N.R. Efficient buyer groups with prediction-of-use electricity tariffs. IEEE Trans. Smart Grid 2018, 9, 4468–4479. [Google Scholar] [CrossRef]
  18. Lilliu, F.; Recupero, D.R.; Vinyals, M.; Denysiuk, R. Incentive mechanisms for the secure integration of renewable energy in local communities: A game-theoretic approach. Sustain. Energy Grids Netw. 2023, 36, 101166. [Google Scholar]
  19. Ghotbi, M.; Nassiri-Mofakham, F. Aggregating wcp-nets using borda choice. In Proceedings of the 11st International Conference on e-Commerce with the focus on e-Tourism, e-Health, and Health Tourism, Isfahan, Iran, 5–8 November 2017; pp. 1–10. [Google Scholar]
  20. Farid, S.; Nassiri-Mofakham, F. Hybrid renewable energy tariff selection using providers and consumers lexicographic preferences similarity. In Proceedings of the International Conference on Applied Energy 2021, Bangkok, Thailand, 29 November–5 December 2021; p. 4. [Google Scholar]
  21. Burges, C.; Shaked, T.; Renshaw, E.; Lazier, A.; Deeds, M.; Hamilton, N.; Hullender, G. Learning to rank using gradient descent. In Proceedings of the 22nd International Conference on Machine Learning, Bonn, Germany, 7–11 August 2005; pp. 89–96. [Google Scholar]
  22. Davies, D.L.; Bouldin, D. A cluster separation measure. IEEE Trans. Pattern Anal. Mach. Intell. 1979, 1, 224–227. [Google Scholar] [CrossRef] [PubMed]
  23. Wang, Y.; Wang, L.; Li, Y.; He, D.; Liu, T.-Y. A theoretical analysis of NDCG type ranking measures. In Proceedings of the Conference on Learning Theory, Princeton, NJ, USA, 12–14 June 2013; PMLR: Mc Kees Rocks, PA, USA, 2013; pp. 25–54. [Google Scholar]
  24. Abushnaf, J.; Rassau, A. Impact of energy management system on the sizing of a grid-connected PV/Battery system. Electr. J. 2018, 31, 58–66. [Google Scholar] [CrossRef]
  25. Deshmukh, M.; Deshmukh, S. Modeling of hybrid renewable energy systems. Renew. Sustain. Energy Rev. 2008, 12, 235–249. [Google Scholar] [CrossRef]
  26. Kakran, S.; Chanana, S. Smart operations of smart grids integrated with distributed generation: A review. Renew. Sustain. Energy Rev. 2018, 81, 524–535. [Google Scholar] [CrossRef]
  27. Schleifer, A.H.; Harrison-Atlas, D.; Cole, W.J.; Murphy, C.A. Hybrid renewable energy systems: The value of storage as a function of PV-wind variability. Front. Energy Res. 2023, 11, 1036183. [Google Scholar] [CrossRef]
  28. Pal, H. Modeling the dynamic effects of tariffs on economic variables and trade policies. Future Bus. J. 2025, 11, 83. [Google Scholar] [CrossRef]
  29. Stute, J.; Klobasa, M. How do dynamic electricity tariffs and different grid charge designs interact?-Implications for residential consumers and grid reinforcement requirements. Energy Policy 2024, 189, 114062. [Google Scholar] [CrossRef]
  30. Vardakas, J.S.; Zorba, N.; Verikoukis, C.V. A survey on demand response programs in smart grids: Pricing methods and optimization algorithms. IEEE Commun. Surv. Tutor. 2015, 17, 152–178. [Google Scholar]
  31. Belmar, F.; Baptista, P.; Neves, D. Modelling renewable energy communities: Assessing the impact of different configurations, technologies and types of participants. Energy Sustain. Soc. 2023, 13, 18. [Google Scholar] [CrossRef]
  32. Ferreira, E.C.C. Renewable Energy Communities: Concepts, Approaches and the Case Study of Telheiras Neighborhood in Lisbon. Master’s Thesis, Universidade NOVA de Lisboa, Lisbon, Portugal, 2023. [Google Scholar]
  33. Romero-Lankao, P.; Rosner, N.; Efroymson, R.A.; Parisch, E.S.; Blanco, L.; Smolinski, S.; Kline, K. Community Engagement and Equity in Renewable Energy Projects: A Literature Review; National Renewable Energy Laboratory: Golden, CO, USA, 2023.
  34. Chen, X.; Chen, C.; Tian, G.; Yang, Y.; Zhao, Y. Comprehensive evaluation research of hybrid energy systems driven by renewable energy based on fuzzy multi-criteria decision-making. Front. Energy Res. 2023, 11, 1294391. [Google Scholar] [CrossRef]
  35. Li, M.; Kazimipour, B. An efficient algorithm to compute distance between lexicographic preference trees. In Proceedings of the International Joint Conference on Artificial Intelligence (IJCAI), Stockholm, Sweden, 13–19 July 2018; pp. 1898–1904. [Google Scholar]
  36. Järvelin, K.; Kekäläinen, J. Cumulated gain-based evaluation of IR techniques. ACM Trans. Inf. Syst. 2002, 20, 422–446. [Google Scholar] [CrossRef]
Figure 1. LP-tree; D: contract duration, E: energy type, and S: ancillary services.
Figure 1. LP-tree; D: contract duration, E: energy type, and S: ancillary services.
Information 17 00062 g001
Figure 3. Conceptual visualization: comparison of assigning each tariff to a group of similar consumers by using HRECS1, HRECS2, and HRECS3 matching.
Figure 3. Conceptual visualization: comparison of assigning each tariff to a group of similar consumers by using HRECS1, HRECS2, and HRECS3 matching.
Information 17 00062 g003
Figure 4. Relative interleaved turns between two ordered matrices, S and C , containing ordered lists of consumers similar to tariff preferences and ordered lists of tariffs similar to consumers’ preferences. Each box at C - side represents a bucket of consumers’ demands, each box at S - side represents the suppliers’ tariffs, blue and orange vertical arrows represent the flow of sequential hearings at C - and S - sides, respectively, and middle arrows represent switching the turns between consumers or suppliers buckets.
Figure 4. Relative interleaved turns between two ordered matrices, S and C , containing ordered lists of consumers similar to tariff preferences and ordered lists of tariffs similar to consumers’ preferences. Each box at C - side represents a bucket of consumers’ demands, each box at S - side represents the suppliers’ tariffs, blue and orange vertical arrows represent the flow of sequential hearings at C - and S - sides, respectively, and middle arrows represent switching the turns between consumers or suppliers buckets.
Information 17 00062 g004
Figure 2. (a) A complete LP-tree, (b) a partial LP-tree, (c) and changing the order of solutions of LP-tree 2b.
Figure 2. (a) A complete LP-tree, (b) a partial LP-tree, (c) and changing the order of solutions of LP-tree 2b.
Information 17 00062 g002
Figure 5. (a) 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 . The nodes are separated by “*”, conditional values of each node are separated by “,”, and bold box determines the preference tree information.
Figure 5. (a) 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 . The nodes are separated by “*”, conditional values of each node are separated by “,”, and bold box determines the preference tree information.
Information 17 00062 g005
Figure 6. Binary lexicographic preference tree representation with conditional string and array from the tree in Figure 2b. The nodes are separated by “*”, conditional values of each node are separated by “,”, and bold box determines the preference tree information.
Figure 6. Binary lexicographic preference tree representation with conditional string and array from the tree in Figure 2b. The nodes are separated by “*”, conditional values of each node are separated by “,”, and bold box determines the preference tree information.
Information 17 00062 g006
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 .
Information 17 00062 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.
Information 17 00062 g010aInformation 17 00062 g010b
Figure 11. PLPSim and PLPDis’s nDCG and Davies–Bouldin index of consumers’ lexicographic preferences with 2–4 attributes; for nDCG, * means multiplication.
Figure 11. PLPSim and PLPDis’s nDCG and Davies–Bouldin index of consumers’ lexicographic preferences with 2–4 attributes; for nDCG, * means multiplication.
Information 17 00062 g011
Figure 12. Consumers’ F@Lex (satisfaction) for tariff contracts CFP, CFA, CFW, and CFB with the PLPSim method ( C is for consumers).
Figure 12. Consumers’ F@Lex (satisfaction) for tariff contracts CFP, CFA, CFW, and CFB with the PLPSim method ( C is for consumers).
Information 17 00062 g012
Figure 13. The social F@Lex for tariff contracts CFP, CFA, CFW, and CFB with the PLPSim method ( M groups of consumers).
Figure 13. The social F@Lex for tariff contracts CFP, CFA, CFW, and CFB with the PLPSim method ( M groups of consumers).
Information 17 00062 g013
Figure 14. The social F@Lex for coalition formations HRECS1, HRECS2, and HRECS3 with the PLPSim method.
Figure 14. The social F@Lex for coalition formations HRECS1, HRECS2, and HRECS3 with the PLPSim method.
Information 17 00062 g014
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.
Information 17 00062 g007
Figure 8. Intermediate calculations for PLPSim similarity of the four lexicographic preference trees of Figure 7, where s r 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 = Figure 7a (Complete), C L P T 2 = Figure 7d (Complete), P L P T 1 = Figure 7b (Partial), P L P T 2 = Figure 7c (Partial).
Figure 8. Intermediate calculations for PLPSim similarity of the four lexicographic preference trees of Figure 7, where s r 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 = Figure 7a (Complete), C L P T 2 = Figure 7d (Complete), P L P T 1 = Figure 7b (Partial), P L P T 2 = Figure 7c (Partial).
Information 17 00062 g008
Table 1. Comparison of the similarity of lexicographic preference trees in Figure 2 by PLPSim, CPSim, LPDis, and PLPDis.
Table 1. Comparison of the similarity of lexicographic preference trees in Figure 2 by PLPSim, CPSim, LPDis, and PLPDis.
Lexicographic PreferencesPLPSim SimilarityCPSim SimilarityLPDis DistancePLPDis Distance
Figure 2a,b0.9060.833710
Figure 2a,c0.6980.83358
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.
ConsumerBidPartial/Complete Binary Lexicographic Preference (PLP)
c 1 B 1 dummy*null,a0,a1*a0,c1,c0*a1,b1,b0*null,b0,b1#1500
c 2 B 2 dummy*null,c0,c1*null,a1,a0#1700
c 3 B 3 dummy*null,a1,a0*a1,c1,c0*a0,b1,b0*null,b1,b0*dummy*b1,c1,c0*b0,c0,c1#2000
c 4 B 4 dummy*null,b0,b1*b0,a0,a1*b1,a1,a0*dummy*dummy*null,c1,c0#1400
c 5 B 5 dummy*null,a1,a0*null,b0,b1*dummy*null,c1,c0#1600
c 6 B 6 dummy*null,a0,a1*null,b1,b0*dummy*null,c0,c1#1500
c 7 B 7 dummy*null,c1,c0*null,b1,b0*dummy*null,a1,a0#1800
c 8 B 8 dummy*null,a0,a1*null,b1,b0*dummy*b1,c1,c0*b0,c0,c1#1700
c 9 B 9 dummy*null,c0,c1*null,b0,b1#1600
c 10 B 10 dummy*null,a0,a1*null,c1,c0*dummy*null,b0,b1#2000
SupplierAsk(Complete) Binary Lexicographic Preference (LP)
s 1 A 1 dummy*null,b0,b1*null,c1,c0*dummy*c1,a0,a1*c0,a1,a0#1500#2#1
s 1 A 3 dummy*null,c1,c0*c1,b1,b0*c0,a1,a0*null,a1,a0*dummy*a1,b0,b1*a0,b1,b0#1700#3#1
s 2 A 2 dummy*null,b1,b0*b1,a1,a0*b0,a0,a1*null,c1,c0*dummy*a0,c0,c1*a1,c1,c0#1600#2#2
The nodes are separated by “*”, conditional values of each node are separated by “,”, and additional information are separated by “#”.
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.
MethodDemandCLF CFB CFW CFA CFP
TariffPrice ContractPrice ContractPrice ContractPrice ContractPrice
HRECS1 B 1 A 1 1350 b 0 c 1 a 1 1620 b 0 c 0 a 0 1620 b 1 c 0 a 0 1620 b 0 c 1 a 0 1350
B 2 A 1 1350 b 0 c 1 a 1 1620 b 0 c 0 a 0 1620 b 1 c 0 a 0 1620 b 0 c 1 a 0 1440
B 3 A 3 1800 c 1 b 1 a 1 2000 c 1 b 0 a 0 2000 c 0 a 0 b 0 2000 c 1 b 1 a 1 1850
B 4 -- -- -- -- --
B 5 A 1 1350 b 0 c 1 a 1 1620 b 0 c 0 a 0 1620 b 1 c 0 a 0 1620 b 0 c 1 a 0 1395
B 6 A 1 1350 b 0 c 1 a 1 1620 b 0 c 0 a 0 1620 b 1 c 0 a 0 1620 b 0 c 1 a 0 130
B 7 A 3 1800 c 1 b 1 a 1 2000 c 1 b 0 a 0 2000 c 0 a 0 b 0 2000 c 1 b 1 a 1 1750
B 8 A 1 1350 b 0 c 1 a 1 1620 b 0 c 0 a 0 1620 b 1 c 0 a 0 1620 b 0 c 1 a 0 1440
B 9 A 1 1350 b 0 c 1 a 1 1620 b 0 c 0 a 0 1620 b 1 c 0 a 0 1620 b 0 c 1 a 0 1395
B 10 A 2 2000 b 1 a 1 c 1 2000 b 1 a 0 c 0 2000 b 0 a 1 c 0 2000 b 1 a 1 c 1 1800
HRECS2 B 1 A 1 1350 b 0 c 1 a 1 1800 b 0 c 0 a 0 1800 b 1 c 0 a 0 1800 b 0 c 1 a 0 1350
B 2 A 3 1800 c 1 b 1 a 1 1700 c 1 b 0 a 0 1700 c 0 a 0 b 0 1700 c 1 b 1 a 1 1700
B 3 A 1 1350 b 0 c 1 a 1 1800 b 0 c 0 a 0 1800 b 1 c 0 a 0 1800 b 0 c 1 a 0 1575
B 4 -- -- -- -- --
B 5 A 1 1350 b 0 c 1 a 1 1800 b 0 c 0 a 0 1800 b 1 c 0 a 0 1800 b 0 c 1 a 0 1395
B 6 A 1 1350 b 0 c 1 a 1 1800 b 0 c 0 a 0 1800 b 1 c 0 a 0 1800 b 0 c 1 a 0 1350
B 7 A 2 2000 b 1 a 1 c 1 1800 b 1 a 0 c 0 1800 b 0 a 1 c 0 1800 b 1 a 1 c 1 1530
B 8 A 3 1800 c 1 b 1 a 1 1700 c 1 b 0 a 0 1700 c 0 a 0 b 0 1700 c 1 b 1 a 1 1700
B 9 A 2 2000 b 1 a 1 c 1 1800 b 1 a 0 c 0 1800 b 0 a 1 c 0 1800 b 1 a 1 c 1 1440
B 10 A 2 2000 b 1 a 1 c 1 1800 b 1 a 0 c 0 1800 b 0 a 1 c 0 1800 b 1 a 1 c 1 1620
HRECS3 B 1 A 1 1350 b 0 c 1 a 1 1530 b 0 c 0 a 0 1530 b 1 c 0 a 0 1530 b 0 c 1 a 0 1350
B 2 A 1 1350 b 0 c 1 a 1 1530 b 0 c 0 a 0 1530 b 1 c 0 a 0 1530 b 0 c 1 a 0 1440
B 3 A 3 1800 c 1 b 1 a 1 2000 c 1 b 0 a 0 2000 c 0 a 0 b 0 2000 c 1 b 1 a 1 1850
B 4 -- -- -- -- --
B 5 A 1 1350 b 0 c 1 a 1 1530 b 0 c 0 a 0 1530 b 1 c 0 a 0 1530 b 0 c 1 a 0 1395
B 6 A 1 1350 b 0 c 1 a 1 1530 b 0 c 0 a 0 1530 b 1 c 0 a 0 1530 b 0 c 1 a 0 1350
B 7 A 1 1350 b 0 c 1 a 1 1530 b 0 c 0 a 0 1530 b 1 c 0 a 0 1530 b 0 c 1 a 0 1485
B 8 A 1 1350 b 0 c 1 a 1 1530 b 0 c 0 a 0 1530 b 1 c 0 a 0 1530 b 0 c 1 a 0 1440
B 9 A 1 1350 b 0 c 1 a 1 1530 b 0 c 0 a 0 1530 b 1 c 0 a 0 1530 b 0 c 1 a 0 1395
B 10 A 3 1800 c 1 b 1 a 1 2000 c 1 b 0 a 0 2000 c 0 a 0 b 0 2000 c 1 b 1 a 1 1850
Table 4. Configuration of Google Colab used for experiments.
Table 4. Configuration of Google Colab used for experiments.
CPUIntel(R) Xenon(R) CPU @ 2.20 GHz
GPUTesla P100-PCIE-16 GB 3584 CUDA cores, 16 GB vRAM
RAM12.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 DataNumber of Attributes
2345
Count of all complete LP-trees16124840004000
All complete LP-tree data capacity (KB)193492806
Count of complete/partial LP-trees-192040004000
Complete/partial LP-tree data capacity (KB)-103367553
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.
Consumers CountTariffs CountAttributes CountMarket
10221
16222
10523
16524
10235
100236
1000237
10538
100539
10005310
1010311
10010312
100010313
102414
1002415
10002416
105417
1005418
10005419
1010420
10010421
100010422
1020423
10020424
100020425
100050326
100050427
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 DiscountConsumers Bid Price
(Currency/kWh)
1000 40005 201500 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 MethodPLPDisPLPSim
Coalition methodHRECS1HRECS2HRECS3
Tariff contractCFBCFACFWCFP
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.

Share and Cite

MDPI and ACS Style

Nassiri-Mofakham, F.; Farid, S.; Fujita, K. Lexicographic Preferences Similarity for Coalition Formation in Complex Markets: Introducing PLPSim, HRECS, ContractLex, PriceLex, F@Lex, and PLPGen. Information 2026, 17, 62. https://doi.org/10.3390/info17010062

AMA Style

Nassiri-Mofakham F, Farid S, Fujita K. Lexicographic Preferences Similarity for Coalition Formation in Complex Markets: Introducing PLPSim, HRECS, ContractLex, PriceLex, F@Lex, and PLPGen. Information. 2026; 17(1):62. https://doi.org/10.3390/info17010062

Chicago/Turabian Style

Nassiri-Mofakham, Faria, Shadi Farid, and Katsuhide Fujita. 2026. "Lexicographic Preferences Similarity for Coalition Formation in Complex Markets: Introducing PLPSim, HRECS, ContractLex, PriceLex, F@Lex, and PLPGen" Information 17, no. 1: 62. https://doi.org/10.3390/info17010062

APA Style

Nassiri-Mofakham, F., Farid, S., & Fujita, K. (2026). Lexicographic Preferences Similarity for Coalition Formation in Complex Markets: Introducing PLPSim, HRECS, ContractLex, PriceLex, F@Lex, and PLPGen. Information, 17(1), 62. https://doi.org/10.3390/info17010062

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop