Genetic Algorithm

4 次查看(过去 30 天)
Yasmin Tamimi
Yasmin Tamimi 2011-3-23
In solving a problem using ga, I'll use this command :ga(fitnessfcn,nvars,A,b,Aeq,beq,LB,UB,nonlcon,options). My question is that: Can matlab accept matrix A to be of size(2616 X 1130) and b of size (1130 X 1) or I'll have Java.lang out of memory error???

采纳的回答

the cyclist
the cyclist 2011-3-23
This document has detailed memory info:
Do you have MATLAB installed? If so, you can just create a variable that large, and empirically see if it works.
  1 个评论
Yasmin Tamimi
Yasmin Tamimi 2011-3-25
Thanx a lot. I tried rand(#rows, #columns) with the dimensions I need and it worked.

请先登录,再进行评论。

更多回答(2 个)

the cyclist
the cyclist 2011-3-23
Might depend on your machine and operating system. I have no problem with that size array on my Mac running 64-bit MATLAB. I suspect 32-bit would be a problem, but I forget the exact size limitation.

Yasmin Tamimi
Yasmin Tamimi 2011-3-23
Actually I'm using win32-bit and a RAM of 2G only!!
So from where can I know the size limitation??
Thanks in advance.

类别

Help CenterFile Exchange 中查找有关 Genetic Algorithm 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by