Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

car on a racecourse, limited acceleration #290

Closed

Conversation

Peter230655
Copy link
Contributor

@Peter230655 Peter230655 commented Dec 30, 2024

I had pushed this earlier, from wrong branch.

A car must move from start to finish on a windy road as fast as possible.

The road is modelled as two functions with f ( x ) > g ( x ) ∀ x .
I take number of points P ( x i | y i ) evenly spaced on the body of the car and ensure that $f ( x_i ) > y_i > g ( x_i )$
This is done by using additional state variables $Pupper_ i , Plower_i$ , set, say, $Pupper_i = f ( x_i ) − y_i$ and bound $Pupper_i > 0.0$
This exactly like my car parking in a garage, just a bit more elaborate, so I think at most one of them should be merged.

I also limit the maximum accelerations for the front and the end of the car, to mimick slowing down in curves.

NB: opty always arranged the car to "drive backwards" ,like a fork lift. Apparently better to solve this problem.

@Peter230655 Peter230655 mentioned this pull request Dec 30, 2024
@Peter230655
Copy link
Contributor Author

Nothing new here compared to #285 , so I close it.
As I thing, it is quite nice, I moved it to pst-notebooks.

@Peter230655 Peter230655 closed this Jan 4, 2025
@Peter230655 Peter230655 deleted the car-on-racecourse-new branch January 4, 2025 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant