You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The true_and_accurate_surface_distance is supposed to handle this issue.
Currently, a brute-force estimate of the distance of a point to the surface is determined by evaluating the minimal distance to all given surface points. This works, but needs high resolution of the surface and coarse-grained density field. This can be quite inefficient and is undesirably expensive for accurate analyses.
Already implemented are the following other options:
Perform a constrained optimization of the distance to the surface under the constraint that the points are on the surface (handled as equality constraint, and optimized using the NLOPT library).
Transform the equality constraint in I) using a Lagrangian with the corresponding constraint added and then perform a multidimensional root-finding (using GSL) to solve for a stationary point.
Both algorithms have significant disadvantages:
can get stuck and the optimization will never finish. It would be nice to catch these cases and handle them in an efficient and transparent manner (time/iteration limit, create new guess...)
can also optimize to a local maximum instead of a local minimum. depends on which algorithm is used in the background, and how good the initial guess is.
1 and 2 give basically the same results for short distances from the surface, but differ for points that are in the bulk, far away from the surface.
It would be nice to have a reference algorithm that is accurate and doesn't get stuck.
The text was updated successfully, but these errors were encountered:
The true_and_accurate_surface_distance is supposed to handle this issue.
Currently, a brute-force estimate of the distance of a point to the surface is determined by evaluating the minimal distance to all given surface points. This works, but needs high resolution of the surface and coarse-grained density field. This can be quite inefficient and is undesirably expensive for accurate analyses.
Already implemented are the following other options:
Perform a constrained optimization of the distance to the surface under the constraint that the points are on the surface (handled as equality constraint, and optimized using the NLOPT library).
Transform the equality constraint in I) using a Lagrangian with the corresponding constraint added and then perform a multidimensional root-finding (using GSL) to solve for a stationary point.
Both algorithms have significant disadvantages:
can get stuck and the optimization will never finish. It would be nice to catch these cases and handle them in an efficient and transparent manner (time/iteration limit, create new guess...)
can also optimize to a local maximum instead of a local minimum. depends on which algorithm is used in the background, and how good the initial guess is.
1 and 2 give basically the same results for short distances from the surface, but differ for points that are in the bulk, far away from the surface.
It would be nice to have a reference algorithm that is accurate and doesn't get stuck.
The text was updated successfully, but these errors were encountered: