
Guest
Guest
Guests
Hi everybody.
Can anyone help me with a simple greedy/nearest neighbour heuristic in VBA?
I have a distance matrix of 36x36 where 1 is the "starting point". I need to go from index 1 to the nearest point (column) in the matrix. I need to update an array called used() to make sure that I don't revisit any indexes where I have already been.
Finally, I need to print the visiting sequence in a row.
I have been stuck with this for quite a while, and I figured that somebody in might be able for come up with some code for this quickly.
In advance, thank you so much!
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Mynda Treacy, Terry Hedditch, Barbara Murray
Guest(s) 11
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 880
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 237
Jessica Stewart: 219
A.Maurizio: 213
Aye Mu: 201
Hans Hallebeek: 185
Newest Members:
Kwaje Alfred Mogga
thong nguyen
Appiagyei Kofi Frimpong
Hilary Burchfield
Richie Wright
Adel Kock
Barbara Murray
Doug Milne
Siobhan Stringer
Rob Rooth
Forum Stats:
Groups: 3
Forums: 24
Topics: 6542
Posts: 28647
Member Stats:
Guest Posters: 49
Members: 32830
Moderators: 2
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: Velouria, Riny van Eekelen
© Simple:Press —
