Click here to Skip to main content
15,891,943 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
pls i need your help ,,, i am working on a project. i need to program with visual basic.net on facility layout problem using simulated annealing algorithm to get the best allocation of departments in the facility. pls i need the codes to do this successfully. i am most grateful. thanks. sam
Posted
Updated 12-Oct-12 10:34am
v2
Comments
OriginalGriff 12-Oct-12 5:59am    
And what have you tried?
Akande Oluwaseun Samuel 12-Oct-12 16:54pm    
i have challenges writing the codes in VB.NET... can u please help me write the codes.... send me email address>>
OriginalGriff 13-Oct-12 3:26am    
"send me email address"
No.
I receive enough emails every day, without you adding more.
Be glad that the system swallowed yours, (it was in the email version).
Never post your email address in any forum, unless you really like spam! If anyone replies to you, you will receive an email to let you know
Akande Oluwaseun Samuel 13-Oct-12 12:32pm    
how do i contact you
OriginalGriff 13-Oct-12 15:31pm    
You post a message here! :laugh:

First of all, this is a Serious Algorithm. And the Serious Algorithms are very rarely implemented using something which has the words "Visual Basic" in it. Like it or not, this is just the real fact of life. It it could be VB.NET, it would be much easier, because you could possibly find C# or C++ implementation, which you could compile for .NET (in case of C++, using C++/CLI managed project) and use in your assembly written in VB.NET. (However, I don't know a single reason to write anything in any kind of Basic except VB.NET, so this option could be applicable anyway).

Please see, and the references to this article:
http://en.wikipedia.org/wiki/Simulated_annealing[^].

In very worst case, you can learn how algorithm works and write/rewrite it in the language you want.

[EDIT: after OP's clarification: this is VB.NET:]

Thank you for clarification. As this is VB.NET, all my suggestions can work. For C++ way, please see:
http://www.technical-recipes.com/2012/c-implementation-of-hill-climbing-and-simulated-annealing-applied-to-travelling-salesman-problems/[^].

I already explained what to do with that: created a C++/CLI managed (.NET) project, wrap this code in managed "ref" classes or structures, make them public, reference resulting assembly in your VB.NET project.

This is a CodeProject on C# implementation:
Simulated Annealing Example in C#[^].

I would also consider just reading the pseudo-code from the Wikipedia article referenced first, above, and implementing it directly.

Good luck,
—SA
 
Share this answer
 
v2
Comments
Kenneth Haugland 12-Oct-12 15:36pm    
"learn how algorithm works and write/rewrite it in the language you want." You can, thats amazing ;-) Oh, 5'ed.
Sergey Alexandrovich Kryukov 12-Oct-12 15:41pm    
I hope OP can do it ;-)
Thank you, Kenneth.
--SA
Simulating annealing is really a simple algorithm to implement (a bit harder is choosing the right heuristics), just read the suggested documentation and start coding.
It is worth reading the original article of S. Kirkpatrick; C. D. Gelatt; M. P. Vecchi, I found it enlightening.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 12-Oct-12 16:28pm    
Right. Any references to this article? Anyway, it's described elsewhere, not a big deal to understand...
--SA
Akande Oluwaseun Samuel 12-Oct-12 17:03pm    
SA send me your email so i can send it as attachment to you [e-mail address removed -- SA]
thanks
Sergey Alexandrovich Kryukov 12-Oct-12 17:22pm    
Thank you very much, please see my CodeProject profile, my Web site, "Contact me" page.
Please don't publish your e-mail address openly; it can get you a lot of spam.
--SA
Akande Oluwaseun Samuel 13-Oct-12 2:25am    
i couldnt access your profile. pls if you can access mine, pls send ur contact address to my email address...thanks for all your help
CPallini 13-Oct-12 6:08am    
Did you try Google? :-)
http://www.google.it/search?q=S.+Kirkpatrick%3B+C.+D.+Gelatt%3B+M.+P.+Vecchi&oq=S.+Kirkpatrick%3B+C.+D.+Gelatt%3B+M.+P.+Vecchi&sugexp=chrome,mod=0&sourceid=chrome&ie=UTF-8

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900