How can I define a matrix that exceeds maximum array size?

1 回表示 (過去 30 日間)
ALiaa Tarik
ALiaa Tarik 2019 年 6 月 23 日
I try to solve a nonlinear optimization problem using fmincon. the initial value x0 is a 467856 by 1 vector. when calling fmincon I have got this error
Error using zeros
Requested 467856x467856 (1630.9GB) array exceeds maximum array size preference.
when I typed 'memory' in the workspace, it showed the following information
Maximum possible array: 11812 MB (1.239e+10 bytes) *
Memory available for all arrays: 11812 MB (1.239e+10 bytes) *
Memory used by MATLAB: 1703 MB (1.785e+09 bytes)
Physical Memory (RAM): 16223 MB (1.701e+10 bytes)
* Limited by System Memory (physical + swap file) available.
Is there any help?

回答 (0 件)

カテゴリ

Help Center および File ExchangeOperators and Elementary Operations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by