Random Solver
Ver. 1.0.1 (2024-01-12)
This module provides solver with random GT strategy.
- class mlpro.gt.pool.native.solvers.randomsolver.RandomSolver(p_strategy_space: MSpace, p_id=None, p_visualize: bool = False, p_logging=True, **p_param)
Bases:
GTSolver
A solver that generates random actions for each dimension of the underlying strategy space.
- C_NAME = 'RandomSolver'
- _compute_strategy(p_payoff: GTPayoffMatrix) GTStrategy
A method to compute a strategy from the solver. This method needs to be redefined.
- Parameters:
p_payoff (GTPayoffMatrix) – Payoff matrix of a specific player.
- Returns:
The computed strategy.
- Return type: