Strategies
Participation Strategy
Bases: Protocol
Source code in src/agents/strategies.py
9 10 | |
Voting Strategy
Bases: Protocol
Build a ballot as raw oppose-scores over options.
Contract: - Returns np.ndarray shape (num_options,) - Values are in [0,1] - Lower = better - No normalization (do not force sum==1)
IMPORTANT: must not mutate/reshuffle agent knowledge sampling.
agent.known_cells is assumed to have been populated by Area._tally_votes().
Source code in src/agents/strategies.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 | |
Default Participation Strategy
Adaptive probabilistic participation using agent.q_participation.
Source code in src/agents/strategies.py
29 30 31 32 33 34 35 36 | |
Default Voting Strategy
Two-mode ballot scoring with altruism_factor as mode probability.
- self-regarding mode: return agent-held precomputed
self_regarding_oppose_scores - altruistic mode: estimate reality -> ordering -> option oppose-scores
Source code in src/agents/strategies.py
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | |