def _main():
    import examples
    (A_star, B_star) = examples.unstable_laplacian_dynamics()
    Q = (0.001 * np.eye(3))
    R = np.eye(3)
    (_, K_init) = utils.dlqr(A_star, B_star, (0.001 * np.eye(3)), np.eye(3))
    rng = np.random
    env = SLS_FIRStrategy(Q=Q, R=R, A_star=A_star, B_star=B_star, sigma_w=1, sigma_explore=0.1, reg=1e-05, epoch_multiplier=10, truncation_length=12, actual_error_multiplier=1, rls_lam=None)
    env.reset(rng)
    env.prime(250, K_init, 0.5, rng)
    for idx in range(500):
        env.step(rng)
    env = SLS_CommonLyapunovStrategy(Q=Q, R=R, A_star=A_star, B_star=B_star, sigma_w=1, sigma_explore=0.1, reg=1e-05, epoch_multiplier=10, actual_error_multiplier=1, rls_lam=None)
    env.reset(rng)
    env.prime(250, K_init, 0.5, rng)
    for idx in range(500):
        env.step(rng)
def _main():
    import examples
    (A_star, B_star) = examples.unstable_laplacian_dynamics()
    Q = (0.001 * np.eye(3))
    R = np.eye(3)
    (_, K_init) = utils.dlqr(A_star, B_star, (0.001 * np.eye(3)), np.eye(3))
    rng = np.random
    env = SLS_FIRStrategy(Q=Q, R=R, A_star=A_star, B_star=B_star, sigma_w=1, sigma_explore=0.1, reg=1e-05, epoch_multiplier=10, truncation_length=12, actual_error_multiplier=1, rls_lam=None)
    env.reset(rng)
    env.prime(250, K_init, 0.5, rng)
    for idx in range(500):
        env.step(rng)
    env = SLS_CommonLyapunovStrategy(Q=Q, R=R, A_star=A_star, B_star=B_star, sigma_w=1, sigma_explore=0.1, reg=1e-05, epoch_multiplier=10, actual_error_multiplier=1, rls_lam=None)
    env.reset(rng)
    env.prime(250, K_init, 0.5, rng)
    for idx in range(500):
        env.step(rng)