From b79a198ce2c7417e44b3da223aa345c2d5800bf6 Mon Sep 17 00:00:00 2001 From: Bharath chandra Date: Sun, 7 Nov 2021 20:51:58 +0530 Subject: [PATCH] pendulum --- examples/pendulum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pendulum.py b/examples/pendulum.py index 5bc512c..310ad70 100644 --- a/examples/pendulum.py +++ b/examples/pendulum.py @@ -40,7 +40,7 @@ def f(x, u): R = np.diag([0.1]) QT = np.diag([0, 100, 100]) #Add constraints on torque input (2Nm to -2Nm) -cons = Constrain(u, max_u = [2], min_u = [-2]) +cons = Bounded(u, high = [2], low = [-2]) SwingUpCost = Cost.QR(Q, R, QT, x_goal, cons)