From 1948d3168a15c78f4256d7de79a1d3f0f3ce7376 Mon Sep 17 00:00:00 2001 From: mahdinobar Date: Fri, 22 Mar 2024 22:47:11 +0100 Subject: [PATCH] adding tworr with PID and SAC environment, dev, #1 --- spinup/backup_gym/gym/envs/classic_control/tworr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spinup/backup_gym/gym/envs/classic_control/tworr.py b/spinup/backup_gym/gym/envs/classic_control/tworr.py index 0e040cc61..d82bda3db 100644 --- a/spinup/backup_gym/gym/envs/classic_control/tworr.py +++ b/spinup/backup_gym/gym/envs/classic_control/tworr.py @@ -146,7 +146,7 @@ def f(t, s): s[3] ** 2)] return dsdt # Define time spans, initial values, and constants - tspan = np.linspace(0, 1, 2) + tspan = np.linspace(0, 1, 100) # Solve differential equation sol = solve_ivp(lambda t, s: f(t, s), [tspan[0], tspan[-1]], s_init, t_eval=tspan, rtol=1e-5)