I have defined a stock as an array. Nevertheless it does not allow me do definte different initial values for the stock.
This is - as far as I know - one of the basic ideas of arrays. If I want to model a population of men and women by using
an arrayed model, I need different initial values.
I am looking forward to your help on this question.
Steffen Bayer — 22.10.07
You can write the initial values of all the array elements of the stock in the initial value field of the stock
variable. You need to put these in curvy brackets, i.e. something like {100, 200}.
Dibpin Khadtha — 06.11.07
Hi! I found the way to initialize an array in Bass Diffusion Arrays example: define a parameter of type Java Class with
HyperArray in the java class field. Put 'new HyperArray( new double[] { 10000, 11000 }, Gender )' to its initial value.
10k and 11k are values for different array elements. Then use this parameter in initial value for a stock.