Class GameTheoryEngine
java.lang.Object
org.episteme.social.economics.GameTheoryEngine
Computes strategic outcomes and equilibria for game theoretic models.
Supports finding Pure Nash Equilibria and solving 2x2 mixed strategy games.
- Since:
- 1.0
- Version:
- 1.1
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordDetails of a strategic equilibrium point.static final recordData model for a 2-player game in normal form. -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<double[]> Calculates the mixed strategy probabilities for a symmetric 2x2 game.static List<GameTheoryEngine.NashEquilibrium> Identifies all pure strategy Nash equilibria in a normal form game.Factory for the classic Prisoner's Dilemma.
-
Method Details
-
findPureNashEquilibria
public static List<GameTheoryEngine.NashEquilibrium> findPureNashEquilibria(GameTheoryEngine.NormalFormGame game) Identifies all pure strategy Nash equilibria in a normal form game.- Parameters:
game- the game to analyze- Returns:
- a list of pure equilibria
-
findMixedNashEquilibrium2x2
Calculates the mixed strategy probabilities for a symmetric 2x2 game.- Returns:
- Optional array [p, q] where p is P1's probability for first strategy, q is P2's.
-
prisonersDilemma
Factory for the classic Prisoner's Dilemma.
-