Dear all,
I'm currently running a multisector Calvo model. The pre-processing works perfectly but once I run the generated m-files I run into issues with Matlab. Specifically, I get the following error message:
Error using assignin
The current workspace already has too many variables; there is no room for "w_186_50",
where w_186_50 is a parameter. I initialize the parameters using the following code:
@#for i in sectors
parameters
@#for j in sectors
w_@{i}_@{j}
@#endfor
@#endfor
where sector is 350. I assign values according to
@#for i in 1:num
@#for j in 1:num
set_param_value('w_@{i}_@{j}',weights_sector(@{(i-1)*num+j}));
@#endfor
@#endfor
where weights_sector is a 1 x (350 times 350) vector.
Is there a way to to just define a paramter vector W and then access different entries in the model section?
I also thought of way to manipulating the ex-post generated m files.
Any (alternative) suggestions are highly appreciated.
Many thanks in advance!
Michael