My feed
Premium

Please
or
to access all these features

Join the discussion on our Education forum.

Education

For the mathematicians amongst you ...

21 replies

blinkinheck · 25/11/2014 23:49

If you have a cluster of n randomly distributed geographical points within a polygon, and you want to calculate the location of a new point that is also within the polygon but which is as far as possible from all of the other points, is there a standard way of doing it?

OP posts:
Report
blinkinheck · 26/11/2014 06:54

I don't think its weighted mean centres because that will pull the new point closer to the cluster. I perhaps need something that is the inverse of that.

OP posts:
Report
TeenAndTween · 26/11/2014 10:01

Oooh. That sounds interesting. No idea, not sure I even ever did.

Report
bobs123 · 26/11/2014 10:04

Marking place to ask DD when she comes home from school (Doing A Level Maths)
Me? haven't the foggiest Grin

Report
lljkk · 26/11/2014 10:13

THIESsen polygons, but I'd have to puzzle the algorithm out unless it already exists.
Geography not math problem.

Report
TeenAndTween · 26/11/2014 11:40

Suppose all the points already are at (x1,y1) (x2, y2) etc.

Your point is going to be at (a,b)

The distance your point is away from any point (X, Y)

is sqrt( (X-a)2 + (Y-b)2) ) (Pythag).

So you need the value of (a,b) for which the sum of all the Distances is greatest, but for which (a,b) is within your polygon.

You could solve it using a sledgehammer via a computer program under those conditions I guess.

As a matter of interest, why do you want to know?


Can't work out whether you could turn it into 2 linear problems, solving for a and b separately. That would probably make it 'trivial'.

Report
skylark2 · 26/11/2014 11:54

I don't think you can solve a and b separately because for a you'll just get plus and minus infinity.

I'm also not sure that you want the sum of the distances - don't you want to maximise the minimum distance?

I'm also thinking brute force and computation, but that may be coloured by me being a computer programmer these days and not having done any pure maths in a while...

bobs, don't terrify your daughter if she can't do it. I think it's quite hard.

Report
TeenAndTween · 26/11/2014 12:02

Skylark

You won't get plus or minus infinity as they have to be within the polygon. If all the points are on the edge of the polygon, you'd expect the required point to end up dead centre. (Though my gut feel is that you can't separate the problem).

Sum the distances or maximise the minimum distance depends on what 'as far away as possible from all of the other points' means.
Does it mean 'so that the distance to the nearest point is as large as possible' or does it mean 'so that the average distance to the other points is as large as possible' ? OP Which do you mean?

(I preferred computational maths to pure maths)

Report
PausingFlatly · 26/11/2014 12:04

Definitely can't solve for a and b separately, as answers are dependent. Also bloody hard to do by algorithm unless your polygon is "nice".

Erm, that wasn't very helpful, was it?

I think I'd try to generate the locus of points 1 away from all current points, 2 away from current points, 3 away... Like contour lines.

And then overlay on your polygon and see what's still inside.

Agree that geographers or maybe logistics managers may have a standard solution!

Report
PausingFlatly · 26/11/2014 12:05

Oh, assuming the meaning was "distance to nearest point is as large as possible".

Report
TeenAndTween · 26/11/2014 12:08

So Pausing you are going for 'distance to the nearest point is as large as possible' rather than my interpretation?

OP - are you trying to work out where in the UK you can live away from any possible in-laws?? Grin

Report
TeenAndTween · 26/11/2014 12:08

xpost

Report
PausingFlatly · 26/11/2014 12:09

Grin at in-law avoidance!

Report
PausingFlatly · 26/11/2014 12:14

(Oops, that sounded like I was calling other posters unhelpful: no, just myself.)

Report
howtodrainyourflagon · 26/11/2014 22:29

Construct the Voronoi regions around the points then check the vertices of those regions one by one.

Report
blinkinheck · 26/11/2014 23:23

Thanks all. My DH worked out how to do it iteratively using Excel Solver.

We were actually trying to find the point in the Local Authority that was furthest away from any of the local schools (don't ask!), but I like the in-law idea too. Smile

OP posts:
Report
bobs123 · 26/11/2014 23:26

I liked the in-law idea too Grin
I asked DD (doing Geography A Level as well as Maths) - she looked at me blankly!!!!! Confused
Glad you got it sorted!

Report
NoSundayWorkingPlease · 30/11/2014 00:19

I got an A at A Level maths, 9 years ago.

I have no friggin idea what that op means. Having children has literally killed my brain I think :/

Report
blinkinheck · 30/11/2014 08:31

Don't worry NoSunday. DH is an Operational Research professional, so optimisation techniques are his bread and butter - I should have thought to ask him in the first place!

OP posts:
Report
PausingFlatly · 30/11/2014 10:57

Grin at high regard for MN that you asked here before asking your very own Op Research expert!

Report
blinkinheck · 30/11/2014 11:15

He was at work! Grin

OP posts:
Report
blinkinheck · 30/11/2014 11:16

Actually no, looking at the time of my OP .... he'd gone to bed! Blush

OP posts:
Report
Please create an account

To comment on this thread you need to create a Mumsnet account.