Skip to content

Commit

Permalink
Merge pull request #33 from csu-hmc/issue-26
Browse files Browse the repository at this point in the history
Added interval value to objective, fixes issue #26.
  • Loading branch information
moorepants committed Jun 30, 2015
2 parents 7436d23 + 5abcc14 commit 7776246
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/pendulum_swing_up.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
def obj(free):
"""Minimize the sum of the squares of the control torque."""
T = free[2 * num_nodes:]
return np.sum(T**2)
return interval_value * np.sum(T**2)


def obj_grad(free):
Expand Down

0 comments on commit 7776246

Please sign in to comment.