Skip to content

Commit

Permalink
adding tworr with PID and SAC environment, dev, openai#1
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdinobar committed Mar 22, 2024
1 parent 42e0b5e commit 1948d31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spinup/backup_gym/gym/envs/classic_control/tworr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1948d31

Please sign in to comment.