Common Stock with subscripted structures
Posted: Fri Nov 20, 2009 4:41 pm
Is it possible to have subscripted structures draw from a common un-subscripted stock, and update the value of that stock during the current time step, so that subsequent subscripted structures in the same time step can use the update stock value?
For example:
A car parts store has a stock of 3 alternators (the common stock). Five customers come in at the same time needing the same alternator for their car (the car is the subscripted structure). Three will go home happy, but 2 will need to wait until the stock has been replenished.
The problem arises when I try to remove a part from the common stock using the subscripted structure. The subscript appears on the right hand of the equation, but not the left.
Thanks!
For example:
A car parts store has a stock of 3 alternators (the common stock). Five customers come in at the same time needing the same alternator for their car (the car is the subscripted structure). Three will go home happy, but 2 will need to wait until the stock has been replenished.
The problem arises when I try to remove a part from the common stock using the subscripted structure. The subscript appears on the right hand of the equation, but not the left.
Thanks!