-
Notifications
You must be signed in to change notification settings - Fork 224
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
Time cost in nonlinear optimization #36
Comments
Hi Marcelino, the implementation follows Burri et al. where the segment times enter the cost quadratically (Eq. 11). Feel free to test both cost functions and tell us about the results. |
@rikba, thanks! I guess I was looking into the wrong reference! |
Okay, I got news on this! Proceeding on this, I chose a set of 10 waypoints, fixed the final time and computed the minimum snap with optimal segment times. Then, I changed the final time and observed how the cost changed when the final time (tf) changed. The relation between the cost and final time can be seen in the following log-log plot: We can see a perfect slope in this plot. When I fit this "curve" to a polynomial, I get a perfect linear polynomial with slope |
When reading polynomial_optimization_nonlinear_impl.h, in line 283, we have this:
cost_time = total_time * total_time * optimization_data->optimization_parameters_.time_penalty;
Thus, the time is constrained quadratically, instead of linearly as in the referenced paper. Is there any reason for this to be so?
I feel like that we can obtain better results (and more predictable) if the time is constrained linearly, instead of quadratically.
The text was updated successfully, but these errors were encountered: