ramo.printing package
Submodules
ramo.printing.printing module
- ramo.printing.printing.print_all_ne(ne_lst)
Pretty print a list of Nash equilibria.
- Parameters:
ne_lst (List[List[ndarray]]) – A list of Nash equilibria.
Returns:
- ramo.printing.printing.print_monfg(monfg, name='MONFG', highlight_cells=None)
Visualise an MONFG as a matrix for two-player games or list of payoff matrices for n-player games.
- Parameters:
monfg (MONFG) – An MONFG object.
name (str, optional) – The name of the game. (Default value = ‘MONFG’)
highlight_cells (List[array_like], optional) – Cell coordinates to highlight. (Default value = None)
Returns:
- ramo.printing.printing.print_ne(ne, joint_strategy, decimals=None)
Pretty print a Nash equilibrium
- Parameters:
ne (bool) – Whether the joint strategy is a Nash equilibrium.
(List[ndarray] (joint_strategy) – The joint strategy that is a Nash equilibrium.
decimals (int, optional) – Round the mixed strategies to a given number of decimals. (Default value = None)
Returns:
- ramo.printing.printing.print_payoff_matrices(monfg, name='MONFG', highlight_cells=None)
Visualise an MONFG as a list of payoff matrices.
- Parameters:
monfg (MONFG) – An MONFG object.
name (str, optional) – The name of the game. (Default value = ‘MONFG’)
highlight_cells (List[array_like], optional) – Cell coordinates to highlight. (Default value = None)
Returns:
- ramo.printing.printing.print_psne(monfg, psne_lst, name='MONFG')
Pretty print a list of PSNE.
- Parameters:
monfg (MONFG) – An MONFG object.
psne_lst (List[ndarray]) – A list of PSNE.
name (str, optional) – The name of the game. (Default value = ‘MONFG’)
Returns:
- ramo.printing.printing.print_start(algorithm)
Pretty print the introduction to an algorithm.
- Parameters:
algorithm (str) – The name of the algorithm.
Returns:
- ramo.printing.printing.print_two_player_monfg(monfg, name='MONFG', highlight_cells=None)
Visualise a two-player MONFG as a single payoff matrix.
- Parameters:
monfg (MONFG) – An MONFG object.
name (str, optional) – The name of the game. (Default value = ‘MONFG’)
highlight_cells (List[array_like], optional) – Cell coordinates to highlight. (Default value = None)
Returns:
Module contents
- ramo.printing.print_all_ne(ne_lst)
Pretty print a list of Nash equilibria.
- Parameters:
ne_lst (List[List[ndarray]]) – A list of Nash equilibria.
Returns:
- ramo.printing.print_monfg(monfg, name='MONFG', highlight_cells=None)
Visualise an MONFG as a matrix for two-player games or list of payoff matrices for n-player games.
- Parameters:
monfg (MONFG) – An MONFG object.
name (str, optional) – The name of the game. (Default value = ‘MONFG’)
highlight_cells (List[array_like], optional) – Cell coordinates to highlight. (Default value = None)
Returns:
- ramo.printing.print_ne(ne, joint_strategy, decimals=None)
Pretty print a Nash equilibrium
- Parameters:
ne (bool) – Whether the joint strategy is a Nash equilibrium.
(List[ndarray] (joint_strategy) – The joint strategy that is a Nash equilibrium.
decimals (int, optional) – Round the mixed strategies to a given number of decimals. (Default value = None)
Returns:
- ramo.printing.print_payoff_matrices(monfg, name='MONFG', highlight_cells=None)
Visualise an MONFG as a list of payoff matrices.
- Parameters:
monfg (MONFG) – An MONFG object.
name (str, optional) – The name of the game. (Default value = ‘MONFG’)
highlight_cells (List[array_like], optional) – Cell coordinates to highlight. (Default value = None)
Returns:
- ramo.printing.print_psne(monfg, psne_lst, name='MONFG')
Pretty print a list of PSNE.
- Parameters:
monfg (MONFG) – An MONFG object.
psne_lst (List[ndarray]) – A list of PSNE.
name (str, optional) – The name of the game. (Default value = ‘MONFG’)
Returns:
- ramo.printing.print_start(algorithm)
Pretty print the introduction to an algorithm.
- Parameters:
algorithm (str) – The name of the algorithm.
Returns:
- ramo.printing.print_two_player_monfg(monfg, name='MONFG', highlight_cells=None)
Visualise a two-player MONFG as a single payoff matrix.
- Parameters:
monfg (MONFG) – An MONFG object.
name (str, optional) – The name of the game. (Default value = ‘MONFG’)
highlight_cells (List[array_like], optional) – Cell coordinates to highlight. (Default value = None)
Returns: