parameters: (self, num_strats, num_players)
return_statement: return (init_dist, init_y, init_anneal_steps)
docstring: Initialize solver parameters.
docstring_summary: Initialize solver parameters.
docstring_tokens: Initialize solver parameters .
function: def init_vars(self, num_strats, num_players):
      """Initialize solver parameters."""
      self.num_players = num_players
      if self.rnd_init:
        init_dist = self.random.rand(num_strats)
      else:
        init_dist = np.ones(num_strats)
      init_dist /= init_dist.sum()
      init_y = np.zeros(num_strats)
      init_anneal_steps = 0
      if self.cheap and self.vr:
        self.pm_vr = np.zeros((num_strats, num_strats))
      return (init_dist, init_y, init_anneal_steps)
function_tokens: def init_vars ( self , num_strats , num_players ) : self . num_players = num_players if self . rnd_init : init_dist = self . random . rand ( num_strats ) else : init_dist = np . ones ( num_strats ) init_dist /= init_dist . sum ( ) init_y = np . zeros ( num_strats ) init_anneal_steps = 0 if self . cheap and self . vr : self . pm_vr = np . zeros ( ( num_strats , num_strats ) ) return ( init_dist , init_y , init_anneal_steps )