def br_dict(Game, N, Level, L0Dist=None, delta=1, tol=30, beta=None): """A helper function to generate the player_spec dictionary for best response. If optional arguments are specified, they are set for all decision nodes. :arg Game: A SemiNFG :type Game: SemiNFG .. seealso:: See the BestResponse documentation (above) for details of the optional arguments """ if beta is None: return input_dict(Game, [('Level', Level), ('delta', delta)], [('L0Dist', L0Dist), ('N', N), ('tol', tol)]) else: return input_dict(Game, [('Level', Level), ('delta', delta)], [('L0Dist', L0Dist), ('N', N), ('tol', tol), ('beta', beta)])
def br_dict(Game, N, Level, L0Dist=None, delta=1, tol=30, beta=None): """A helper function to generate the player_spec dictionary for best response. If optional arguments are specified, they are set for all decision nodes and all players. The idea is to use br_dict to great a shell of parameters and then modify them accordingly. :arg Game: A SemiNFG :type Game: SemiNFG .. seealso:: See the BestResponse documentation (above) for details of the optional arguments """ if beta is None: return input_dict(Game, [('Level', Level), ('delta', delta)], [('L0Dist', L0Dist), ('N', N), ('tol', tol)]) else: return input_dict(Game, [('Level', Level), ('delta', delta)], [('L0Dist', L0Dist), ('N', N), ('tol', tol), ('beta', beta)])
def rlk_dict(Game, M=None, Mprime=None, Level=None, L0Dist=None, SDist=None): """ A helper function to generate the player_spec dictionary for relaxed level K. If optional arguments are specified, they are set for all decision nodes. :arg Game: A SemiNFG :type Game: SemiNFG .. seealso:: See the rlk documentation (above) for details of the optional arguments """ return input_dict(Game, [("Level", Level)], [("M", M), ("Mprime", Mprime), ("L0Dist", L0Dist), ("SDist", SDist)])
def rlk_dict(Game, M=None, Mprime=None, Level=None, L0Dist=None, SDist=None): """ A helper function to generate the player_spec dictionary for relaxed level K. If optional arguments are specified, they are set for all decision nodes. :arg Game: A SemiNFG :type Game: SemiNFG .. seealso:: See the rlk documentation (above) for details of the optional arguments """ return input_dict(Game, [('Level', Level)], [('M', M), ('Mprime', Mprime), ('L0Dist', L0Dist), ('SDist', SDist)])