apollo icon indicating copy to clipboard operation
apollo copied to clipboard

The purpose of adding a scale factor for PiecewiseJerkPathProblem?

Open renjiefly opened this issue 6 years ago • 2 comments

Hi, all. I notice that a scale factor of {1.0, 10.0, 100.0} was added on the PiecewiseJerkPathProblem: piecewise_jerk_problem.set_scale_factor({1.0, 10.0, 100.0}); in piecewise_jerk_path_optimizer.cc. I want to know the reason behind doing this and what improvement can be brought. Thank you so much.

renjiefly avatar Aug 25 '20 03:08 renjiefly

To improve the numerical stability. So the decision variables is d, 10 * dl, 100 * ddl now, and they are in the same range approximately.

"The chance for numerical instability and rounding errors is considerably larger when the input data contains both large and small numbers. So to improve stability, one must try to work with numbers that are somewhat in the same range. "

zerolover avatar Aug 25 '20 07:08 zerolover

To improve the numerical stability. So the decision variables is d, 10 * dl, 100 * ddl now, and they are in the same range approximately.

"The chance for numerical instability and rounding errors is considerably larger when the input data contains both large and small numbers. So to improve stability, one must try to work with numbers that are somewhat in the same range. "

I'm still confused about what "stability" means in this context. Does this approach fasten convergence, or just reduce the error of the optimal solution?

renjiefly avatar Aug 25 '20 07:08 renjiefly