question

Aditya Prakash avatar image
3 Likes"
Aditya Prakash asked Ben Wilson edited

Identify different shifts from a Time table

I have a model, where my resources are operated based on a Shift Time table [Scheduled down]. [Three shifts max in day]. I need to compute certain cost at the end of each day and write in an output_table.

Problem is how do I identify which of three were active?

FlexSim 16.0.1
timetablesshifts
· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

We try to ask just a single question per 'question' to help keep the community organized and help people more easily find the information they're looking for. As such, I split out your 2nd question regarding current date and posted it here.

0 Likes 0 ·
Brandon Peterson avatar image Brandon Peterson ♦ commented ·

Aditya,

I am not entirely clear on what you are trying to accomplish. When you say that you need to know "which of the three were active". Do you mean that you want to know how long an operator/machine/etc. was operational, down, etc? Or, do you mean that there is a different cost associated with each state based on the shift in which it occurred (shift 1 operators are more expensive than shift 2, etc.)?

Brandon

0 Likes 0 ·
Aditya Prakash avatar image Aditya Prakash Brandon Peterson ♦ commented ·

Yah, I have different cost functions depending on shift. Ex. Morning shift and Night shift have different Facility management cost, etc. I need to uniquely identify these shifts.

0 Likes 0 ·

1 Answer

Brandon Peterson avatar image
4 Likes"
Brandon Peterson answered Ben Wilson edited

Aditya,

If you have unique functions per shift then I think that the easiest answer to your question would be to calculate the costs at the end of each shift (possibly at the end of each day if that does not correlate to the end of a shift) and adding them to the other costs for the current day.

You can use the OnDown or DownFunction triggers of the TimeTable to execute the code for the calculations.

I hope this gets you where you wanted to be,

Brandon

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.