用于模拟退火的Matlab代码 [英] Matlab code for simulated annealing

查看:66
本文介绍了用于模拟退火的Matlab代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我有这个项目,这个代码我仍然试图在手动方程中理解这个代码是如何工作的。



如果兰特<0.25,那么

DO ...



我希望有人可以帮助我,因为我还是新手学习Matlab。谢谢你的帮助



我的尝试:



尝试阅读matlab书并在互联网上搜索,仍然想确定它在手动方程式中的工作方式

So I have this project, and there's this code which I'm still trying to understand how this code working, in manual equation.

if rand <0.25, then
DO ...

I hope someone can help me cause I'm still new to learn about Matlab. Thank you for the help

What I have tried:

Trying to read a matlab book and searching on the internet, still want to make sure how it works in manual equation

推荐答案

这意味着:

It means:
If the next random number (rand)
is less than (<)
0.25
Then execute the following block (DO).





我建议你买一本关于编程的书。发布这样的基本问题不是一个好的学习方法。



I suggest you buy a book on programming. Posting basic questions like this is not a good way to learn.


这篇关于用于模拟退火的Matlab代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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