Click here to Skip to main content
15,171,303 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 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
Updated 12-Oct-12 11:34am
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"
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:
[no name] 12-Oct-12 10:46am
I must have read this too fast.... I missed whatever question was in here.
Sergey Alexandrovich Kryukov 12-Oct-12 15:35pm
Believe or not, I managed to provide a constructive solution, please see :-)
Sergey Alexandrovich Kryukov 12-Oct-12 15:29pm
First of all, what do you call "Visual Basic", exactly? VB.NET? something else? Why?
Akande Oluwaseun Samuel 12-Oct-12 16:58pm
its VB.NET i want it written
Akande Oluwaseun Samuel 12-Oct-12 17:04pm
its VB.NET

Sergey Alexandrovich Kryukov 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.
Sergey Alexandrovich Kryukov 12-Oct-12 17:21pm
Done, please see my updated answer, after [EDIT].

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:[^].

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:[^].

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,
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.
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.
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...
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]
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.
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? :-),mod=0&sourceid=chrome&ie=UTF-8
Akande Oluwaseun Samuel 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
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.
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.

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