Home > Software design >  How to find 3d point with minimum sum of euclidean distances to all given segments?
How to find 3d point with minimum sum of euclidean distances to all given segments?

Time:10-09

N segments in 3d space are given. Segment is represented by 2 points. The problem is to find the point with minimal possible sum of distances to all segments.

CodePudding user response:

Let the segments be p1 q1, …, pn qn. We formulate an optimization problem:

minimize ∑i ‖x − ((1 − yi) pi yi qi)‖
subject to
x ∈

  • Related