Zero-Sum Games
Game solver for the row player
OperationsResearchModels.Game.game
— Functiongame(decisionMatrix::Matrix{<:Real}; verbose::Bool = false)::Array{GameResult,1}
Solves a zero-sum game using the simplex method.
Arguments
decisionMatrix
: The payoff matrix of the game.verbose
: If true, prints the model information.
Returns
- An array of
GameResult
objects containing the probabilities and value of the game.
Game solver for both the row and the column players
OperationsResearchModels.Game.game_solver
— Functiongame_solver(gamematrix::Matrix{<:Real}; verbose::Bool = false)::GameResult
Solves a zero-sum game using the simplex method.
Arguments
gamematrix
: The payoff matrix of the game.verbose
: If true, prints the model information.
Returns
- A
GameResult
object containing the probabilities and value of the game.
GameResult
OperationsResearchModels.Game.GameResult
— TypeGameResult
Description
A structure to hold the result of a game.
Fields
probabilities
: Probabilities of the strategiesvalue
: Value of the game
end