Skip to content

Commit

Permalink
pendulum
Browse files Browse the repository at this point in the history
  • Loading branch information
Bharath2 authored Nov 7, 2021
1 parent 2351618 commit b79a198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/pendulum.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit b79a198

Please sign in to comment.