Skip to content

CLinkConfigsGenAlg

Samuel Gomes edited this page Jul 12, 2024 · 1 revision

CLinkConfigsGenAlg

This class is a child of ConfigsGenAlg. It contains a group formation procedure inspired by the C-Link algorithm (see this paper for more information about C-Link), an heuristic algorithm based on data clustering.

Even though our implementation is optimized via a binary representation and a C++ solver, we suspended our support for this approach and so it is recommended to apply the other ConfigsGenAlg sub-classes.

Constructor and Members

Constructor

CLinkConfigsGenAlg(
        player_model_bridge: PlayerModelBridge,        
        interactions_profile_template: InteractionsProfile,         
        quality_eval_alg: QualityEvalAlg,
        pers_est_alg: PersonalityEstAlg,
        preferred_num_players_per_group: int = None,
        min_num_players_per_group: int = 2,
        max_num_players_per_group: int = 5,
        joint_player_constraints: string = "",
        separated_player_constraints: string = ""): void

Members

Name: expected type Default value Description
__quality_eval_alg: QualityEvalAlg - The algorithm to be used for evaluating the quality of a group configuration.
__pref_est_alg: PreferencesEstAlg - The algorithm used to build players' preference estimates
__coalitions_profiles: decimal[][] - The InteractionsProfile of each group, stored in their flat representations.
__coalitions_avg_characteristics: decimal[][] - The PlayerCharacteristics of each group, stored in their flat representations.
__coalitions_values: decimal[] - The computed qualities of each group, updated before group formation in each organize call.

Functions

__compute_all_coalitions_values(): decimal[]

Description

Returns all group quality values, resorting to the QualityEvalAlg passed as a parameter.

Overrides organize() (see ConfigsGenAlg).

Clone this wiki locally