Hi, I am a new user to JaamSim and am attempting my first model to help in a facility layout at my company. I have previous experience in Arena so the learning curve hasn't been too steep so far. The main entities in my model are Lots, which have the attribute Lot Size.
I would like to write a lambda function which samples a normal distribution once for each part in the Lot to generate Service Times for a given process. To do this, I am thinking of using a for loop, but I don't see anything in the documentation about this. Is this possible?
Here is the non-working code I have so far:
|Qty,ServiceTime|(
for i in Qty {
ServiceTime = ServiceTime + [NormalDistribution2].Value
}
)(this.obj.LotQty,0)
Another general question, can I write functions that will be used elsewhere in my mode, or am I limited to lambda functions?
Any help here would be much appreciated,