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 CenterFile Exchange에서 Operators and Elementary Operations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by