I have data contained in square matrix. The data is the distance in meters between two locations. I'd like to create/output lists from this data matrix based on the following scheme:
- All of the locations (the numbers in the matrix) are ranked based on "Priority Level", the .1, .2 or .3 following the number indicates priority level. Any selection between any points will need to have a distance greater than 16100.
- I would like the lists to be created "randomly" I say I have placed randomly in quotes because I want a preference given to priority level (i.e. 1>2>3 ).
- I don't know if this is possible, but I would like to start out by "randomly" choosing a priority 1 location and then adding as many priority 1 locations, then priority 2, and finally priority 3 locations, given that all points are greater than 16100 apart, for like 50 runs.
I don't care how the data is stored ( text file, excel, csv, etc )
Does this sound plausible to do in VB macro in excel, python or VBscript. I'd be greatly appreciative of any annotated code so that I might learn what you did.