Y********x 发帖数: 322 | 1 I wrote a genetic algorithm based program using Matlab. There
are several loops in it. The speed is damn slow! How can i
speed it up? |
l******n 发帖数: 9344 | 2 如果是你自己的算法问题,重新设计算法
matlab里边的东西都是优化过的,一般已经很难在改进了,除非你是使用得很特殊的情形
【在 Y********x 的大作中提到】 : I wrote a genetic algorithm based program using Matlab. There : are several loops in it. The speed is damn slow! How can i : speed it up?
|
c***r 发帖数: 63 | 3 vectorize your loops
【在 Y********x 的大作中提到】 : I wrote a genetic algorithm based program using Matlab. There : are several loops in it. The speed is damn slow! How can i : speed it up?
|
p*****e 发帖数: 310 | 4 preallocate memory
【在 c***r 的大作中提到】 : vectorize your loops
|
p*****e 发帖数: 310 | 5 use profile to get bottleneck
【在 p*****e 的大作中提到】 : preallocate memory
|