Class NashEquilibriumSolver

java.lang.Object
org.episteme.social.economics.models.NashEquilibriumSolver

public class NashEquilibriumSolver extends Object
Solves for Nash Equilibria in non-cooperative games.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Method Details

    • findPureStrategyNE

      public static int[] findPureStrategyNE(Matrix<Real> payoffMatrixA, Matrix<Real> payoffMatrixB)
      Finds a pure strategy Nash Equilibrium in a 2-player normal-form game.
      Parameters:
      payoffMatrixA - Payoffs for Player A (row player).
      payoffMatrixB - Payoffs for Player B (column player).
      Returns:
      Array of indices {row, col} representing the strategy profile, or null if none found.