使用模拟退火算法在Visual Basic.net中进行编程的设施布局 [英] facility layout using simulated annealing algorithm to program in visual basic.net

查看:80
本文介绍了使用模拟退火算法在Visual Basic.net中进行编程的设施布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮助我,我正在做一个项目.我需要使用Visual Basic.net使用模拟退火算法对设施布局问题进行编程,以获得设施中部门的最佳分配.请我需要代码才能成功完成此操作.我非常感谢.谢谢. sam

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

推荐答案

首先,这是一个严重算法.而且严重算法很少使用带有"Visual Basic"字样的东西来实现.不管喜欢与否,这只是生活的真实事实.可能是VB.NET,它会容易得多,因为您可能会找到C#或C ++实现,可以为.NET进行编译(在C ++的情况下,使用C ++/CLI受管项目)并在编写的程序集中使用在VB.NET中. (但是,除了VB.NET,我不知道有任何原因可以用任何一种Basic语言编写任何东西,因此该选项仍然适用.)

请参阅,以及对本文的引用:
http://en.wikipedia.org/wiki/Simulated_annealing [ http://www.technical-recipes.com/2012/c-implementation-of-hill-climbing-and-simulated-annealing-applied-travelling-salesman-problems/ [
这是有关C#实现的CodeProject:
C#中的模拟退火示例 [
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.



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


模拟退火实际上是一种易于实现的算法(选择正确的启发式算法会有点困难),只需阅读建议的文档并开始编码. br/> 值得阅读 S的原始文章.柯克·帕特里克(Kirkpatrick) C. D. Gelatt; M. P. Vecchi ,我发现它很有启发性.
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.


这篇关于使用模拟退火算法在Visual Basic.net中进行编程的设施布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆