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 ∈