Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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 11-Oct-12 23:57pm
Edited 12-Oct-12 10:34am
v2
Comments
OriginalGriff at 12-Oct-12 5:59am
   
And what have you tried?
Akande Oluwaseun Samuel at 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 at 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 at 13-Oct-12 12:32pm
   
how do i contact you
OriginalGriff at 13-Oct-12 15:31pm
   
You post a message here! :laugh:
Wes Aday at 12-Oct-12 10:46am
   
I must have read this too fast.... I missed whatever question was in here.
Sergey Alexandrovich Kryukov at 12-Oct-12 15:35pm
   
Believe or not, I managed to provide a constructive solution, please see :-)
--SA
Sergey Alexandrovich Kryukov at 12-Oct-12 15:29pm
   
First of all, what do you call "Visual Basic", exactly? VB.NET? something else? Why?
--SA
Akande Oluwaseun Samuel at 12-Oct-12 16:58pm
   
its VB.NET i want it written
Akande Oluwaseun Samuel at 12-Oct-12 17:04pm
   
its VB.NET
 
Sergey Alexandrovich Kryukov at 12-Oct-12 17:15pm
   
I got it. Then, please add the tag to the question: "VB.NET", to avoid any confusion.
And, in this case, my solution is quite applicable. All the choices I suggested are a ways to go: 1) learn the algorithm and write in VB.NET; 2) find C++ code, put it in C++/CLI project, expose as managed public classes/structures, reference it in your VB.NET project; 3) same #2, if you can find C# implementation.
 
I'll add some links to my answer.
If you agree this is reasonable, please accept it formally (green button) -- thanks.
--SA
Sergey Alexandrovich Kryukov at 12-Oct-12 17:21pm
   
Done, please see my updated answer, after [EDIT].
--SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
v2
Comments
Kenneth Haugland at 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 at 12-Oct-12 15:41pm
   
I hope OP can do it ;-)
Thank you, Kenneth.
--SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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.
  Permalink  
Comments
Sergey Alexandrovich Kryukov at 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 at 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 at 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 at 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 at 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
Akande Oluwaseun Samuel at 13-Oct-12 11:51am
   
thanks.... writing the codes in VB.NET is my major challenge... can u please help me .. i shall be very grateful
Sergey Alexandrovich Kryukov at 14-Oct-12 1:30am
   
What else do you need help with? If writing the code in some language is a "major challenge", you need to lean it as well as programming technique. There are not by-pass ways. Unfortunately, we don't have resources to assist you in learning languages. This is, so to speak, is a prerequisite, but we can help with some selected difficult aspect, if there is a confusion.
--SA
Sergey Alexandrovich Kryukov at 14-Oct-12 1:35am
   
Sure, it worked. Would be great if you simply add a reference you consider most adequate in the answer. It's what it takes.
Thank you very much.
--SA

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 428
1 CHill60 310
2 BillWoodruff 183
3 DamithSL 163
4 OriginalGriff 163


Advertise | Privacy | Mobile
Web03 | 2.8.141022.1 | Last Updated 12 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100