Redian新闻
>
[转载] 请问一下有没有人比较过C and matlab写的GA的速度
avatar
[转载] 请问一下有没有人比较过C and matlab写的GA的速度# Computation - 科学计算
r*e
1
【 以下文字转载自 Mathematics 讨论区 】
【 原文由 redtree 所发表 】
现在要用GA算个函数的极值,用matlab试了试,发现真是慢
不知道用 C的会不会快点?
从网上下了些源代码,发现看起来真是庞大。。。。有没有做过这方面的铜锈给点建议
1. 用c编的GA会不会快点?
2. 推荐一下哪里的c的源代码好用点?
bow
avatar
w*w
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 的大作中提到】
: 【 以下文字转载自 Mathematics 讨论区 】
: 【 原文由 redtree 所发表 】
: 现在要用GA算个函数的极值,用matlab试了试,发现真是慢
: 不知道用 C的会不会快点?
: 从网上下了些源代码,发现看起来真是庞大。。。。有没有做过这方面的铜锈给点建议
: 1. 用c编的GA会不会快点?
: 2. 推荐一下哪里的c的源代码好用点?
: bow

avatar
w*d
3

i guess it depends on how you write your code in C.

【在 w**w 的大作中提到】
: 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.

avatar
w*w
4
many code in the internet has been written very well.

【在 w**d 的大作中提到】
:
: i guess it depends on how you write your code in C.

avatar
w*d
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 的大作中提到】
: many code in the internet has been written very well.
avatar
r*e
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 的大作中提到】
: 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.

avatar
r*e
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) 的大作中提到: 】
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。