Skip to main content
POST
/
quantlib
/
economics
/
games
/
mixed-nash
Find Mixed Nash Equilibria
curl --request POST \
  --url https://finceptbackend.share.zrok.io/quantlib/economics/games/mixed-nash \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "payoff_matrix_1": [
    [
      3,
      0
    ],
    [
      0,
      3
    ]
  ],
  "payoff_matrix_2": [
    [
      2,
      0
    ],
    [
      0,
      2
    ]
  ]
}
'
{
  "success": true,
  "data": {
    "nash_equilibria": [
      {
        "strategy_1": [
          1,
          0
        ],
        "strategy_2": [
          1,
          0
        ]
      },
      {
        "strategy_1": [
          0,
          1
        ],
        "strategy_2": [
          0,
          1
        ]
      },
      {
        "strategy_1": [
          0.4,
          0.6
        ],
        "strategy_2": [
          0.6,
          0.4
        ]
      }
    ],
    "count": 3
  }
}

Authorizations

X-API-Key
string
header
required

API key for authentication. Get your key at https://finceptbackend.share.zrok.io/auth/register

Body

application/json
payoff_matrix_1
number[][]
required

Payoff matrix for Player 1

Example:
[[3, 0], [0, 3]]
payoff_matrix_2
number[][]
required

Payoff matrix for Player 2

Example:
[[2, 0], [0, 2]]

Response

Successful Response

success
boolean
Example:

true

data
object