Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Optimize circle position and radius to maximize coverage

AMS_Helpdesk
5 - Atom

Hi all,

 

Currently I have a shape of a region and I want to determine where to place the center point of circle(s) to maximize overlap with the shape (coverage). The circle has a radius that can vary between a minimum and maximum.

 

Is it possible in Alteryx to determine the optimal configuration?

 

See image below as example. Black outline is the region, orange circles are optimally placed circles.

example_alteryx_fill_region.png

 

Thank you in advance.

 

Best,

Nick

3 REPLIES 3
OllieClarke
15 - Aurora
15 - Aurora

Hi @AMS_Helpdesk I've come up with this:

OllieClarke_0-1573040414445.png

It's an iterative macro that splits the polygon into a grid of user defined size, and then finds the best square to start the circle. It runs through this process a user defined number of times. (this is what 1 circle looks like:)

OllieClarke_1-1573040531095.png

The workflow I've attached will also output the % of the original polygon covered

OllieClarke_2-1573040669235.png

 

Hope that helps,

 

Ollie

 

edit: Just realised I misread your question, I'll be back 🙂

OllieClarke
15 - Aurora
15 - Aurora

@AMS_Helpdesk Sorry about that, this is more in-line with what you're after:

OllieClarke_0-1573041289744.png

AMS_Helpdesk
5 - Atom

@OllieClarke,

 

This is exactly what I'm looking for. Thank you.

 

Best,

Nick

Labels