System configurations to run the CVX problem

As a part of our research work, we come across the following optimization problem.

subject to a_i^TFa_j = 0 \forall i\neq j..
In this problem, matrix is of higher dimension(eg. 4096\times4096.). While running in MATLAB by using CVX tool box we got error ’out \, of \, memory'. This error we got when we used machine with configuration ‘4GB’ RAM and intel \, core \, i5 processor.

Could you please suggest, what should be the system configurations so that this optimization problem can be solved.