(self, control_cost_coef, random=None)
Initializes an LQR level with cost = sum(states^2) + c*sum(controls^2).

    Args:
      control_cost_coef: The coefficient of the control cost.
      random: Optional, either a `numpy.random.RandomState` instance, an
        integer seed for creating a new `RandomState`, or None to select a seed
        automatically (default).

    Raises:
      ValueError: If the control cost coefficient is not positive.
Initializes an LQR level with cost = sum(states^2) + c*sum(controls^2).
Initializes an LQR level with cost = sum ( states^2 ) + c * sum ( controls^2 ) .
def __init__(self, control_cost_coef, random=None):
    """Initializes an LQR level with cost = sum(states^2) + c*sum(controls^2).

    Args:
      control_cost_coef: The coefficient of the control cost.
      random: Optional, either a `numpy.random.RandomState` instance, an
        integer seed for creating a new `RandomState`, or None to select a seed
        automatically (default).

    Raises:
      ValueError: If the control cost coefficient is not positive.
    """
    if control_cost_coef <= 0:
      raise ValueError('control_cost_coef must be positive.')

    self._control_cost_coef = control_cost_coef
    super().__init__(random=random)
def __init__ ( self , control_cost_coef , random = None ) : if control_cost_coef <= 0 : raise ValueError ( 'control_cost_coef must be positive.' ) self . _control_cost_coef = control_cost_coef super ( ) . __init__ ( random = random )