Closed weisongwen closed 3 years ago
Weisong thats hard to say. your position has to push against the velocity bounds to be affected by it and that will depend on the full optimization problem and the specific values. It is hard to say anything more by just looking at this cost function.
Hi @sandwichmaker ,
Thanks for your kind reply, I really like this Ceres-solver community!
Yes, I agree. But overall, you mean that the bound of the velocity can definitely affect the estimation of the position although the final impacts are determined by the overall optimization problem, am I correct?
One more thing, I really interested in how you achieve this optimization problem with bound constraints? Could you please kindly recommend any papers on solving this?
Thanks a lot for your kind suggestions in advance,
Best, Weisong,
Yes you are correct. The correct implementation of bounds constrained optimization is basically a bounds constrained line search after computing the trust region step. The reference we use is
C. Kanzow, N. Yamashita and M. Fukushima, Levenberg-Marquardt methods with strong local convergence properties for solving nonlinear equations with convex constraints, Journal of Computational and Applied Mathematics, 177(2):375-397, 2005.
but our implementation is not entirely correct. You can see it in trust_region_minimizer.cc
hi @sandwichmaker
Thanks for the reply and the recommendation of the paper. I will look into the code you recommend first.
Thanks, Weisong,
Hi @sandwichmaker Thanks again for your great sharing on this package. In my project, I wish to estimate the position of the vehicle based on the sensor data. Since I already know the velocity of the vehicle is smaller. Therefore, I wish to set an upper and lower bound to the velocity state using the following code:
In my implementation, I correlate the velocity and the position using a constant velocity model, in other words, the velocity can also constrain the position. After I use the function
SetParameterUpperBound
, I found the velocity is well-bounded. But it seems that the position (x, y, z) is not affected by the bounds of the velocity. In other words, the position estimation is not affected by the velocity bounds.Do you have any ideas on this?
The connection between the position and the velocity is as follows:
Best, Weisong,