r*****e 发帖数: 7 | 1 【 以下文字转载自 Mathematics 讨论区 】
【 原文由 redtree 所发表 】
现在要用GA算个函数的极值,用matlab试了试,发现真是慢
不知道用 C的会不会快点?
从网上下了些源代码,发现看起来真是庞大。。。。有没有做过这方面的铜锈给点建议
1. 用c编的GA会不会快点?
2. 推荐一下哪里的c的源代码好用点?
bow |
w**w 发帖数: 5391 | 2 if you use matlab as an interpreter, C is much faster for sure. But if you can
use some compiled module in Matlab, it could be even faster than C.
【在 r*****e 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 【 以下文字转载自 Mathematics 讨论区 】 : 【 原文由 redtree 所发表 】 : 现在要用GA算个函数的极值,用matlab试了试,发现真是慢 : 不知道用 C的会不会快点? : 从网上下了些源代码,发现看起来真是庞大。。。。有没有做过这方面的铜锈给点建议 : 1. 用c编的GA会不会快点? : 2. 推荐一下哪里的c的源代码好用点? : bow
|
w**d 发帖数: 2334 | 3
i guess it depends on how you write your code in C.
【在 w**w 的大作中提到】![](/moin_static193/solenoid/img/up.png) : if you use matlab as an interpreter, C is much faster for sure. But if you can : use some compiled module in Matlab, it could be even faster than C.
|
w**w 发帖数: 5391 | 4 many code in the internet has been written very well.
【在 w**d 的大作中提到】![](/moin_static193/solenoid/img/up.png) : : i guess it depends on how you write your code in C.
|
w**d 发帖数: 2334 | 5 i know many module in matlab are written in c or fortran. So how could
they be faster than the original version.
【在 w**w 的大作中提到】![](/moin_static193/solenoid/img/up.png) : many code in the internet has been written very well.
|
r*****e 发帖数: 7 | 6 would you tell me what is the diffrence between interprter and compiled module?
I just use some M. files, interpreter means 从C里面调用matlab?
thanks
【在 w**w 的大作中提到】![](/moin_static193/solenoid/img/up.png) : if you use matlab as an interpreter, C is much faster for sure. But if you can : use some compiled module in Matlab, it could be even faster than C.
|
r*****e 发帖数: 7 | 7 sigh, the problem is so many code in internet about GA, seems I have to try
to understand them first, so many!【 在 wwww (water) 的大作中提到: 】 |