Hi guys,

I have a problem with Rockwell Arena 12.

I'd like to create a "Shopping model" for a supermarket, with an Entrance (create), shopping process (delay), n different cash points(process) and an exit(dispose).

To determine the distribution of the arrival times I divided the arrival rates in 15 minutes time intervals (8:00 am, 8:15am, 8:30am...22:00pm) for each weekday (monday, tuesday.. saturday).

Now i want to write an expression in the create module which should "check on/search for" the actual weekday and time interval.

here an example(not an arena expression!):

IF(weekday(TNOW)=="monday" && Time Inverval(TNOW) >=08:00am && Time Interval(TNOW) <=08:15)

THEN normal distribution (0.7,0.15)

IF(weekday(TNOW) == "monday" && Time Interval(TNOW) >= 08:15am &&Time Interval(TNOW) <= 08:30)

THEN normal distribution (0.6,0.15)

..

IF(weekday(TNOW)=="saturday"&&Time Interval(TNOW)>=21:45pm &&Time Interval(TNOW) <= 22:00pm)

THEN normal distribution (0.4,0.05)

I hope u guys understand what i am trying to achieve with that statement and somebody can help me to find a solution.

Thanks for your help!

__________________