Last active
December 19, 2017 20:46
-
-
Save cipher982/27646ffc34278afc9967f837ac9b4d52 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // actuator shock absorber | |
| if (t < N - 2) { | |
| //steering | |
| fg[0] += 30000.0*CppAD::pow(vars[delta_start + t + 1] - vars[delta_start + t], 2); | |
| //acceleration | |
| fg[0] += CppAD::pow(vars[a_start + t + 1] - vars[a_start + t], 2); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment