question

Pieter Cecat avatar image
0 Likes"
Pieter Cecat asked Pieter Cecat commented

Limit monthly processor availability to value in global table

Hi fellow FlexSimmers!

I am working on a model (time unit: hours) to simulate a production plan. I have 1 processor and would like to limit its capacity each month (1 month=720 hours) to the sum of 2 values (regular + overtime) defined in a global table (see below):

CAPACITY 1 2 3 4 5 6
Regular 480 480 480 480 480 480
Overtime 0 45 0 120 0 0

For instance:

During the first month (0-720 hours), the processor is available for 480 + 0 = 480 hours. Then it becomes unavailable for processing until the start of the second month (720-1440 hours).

During the second month, the processor is available for 480 + 45 = 525 hours, thus from 720 (end of first month) till 1245 hours, after which it becomes unavailable again until the start of the third month.

Et cetera.

I was thinking of using process flow here but assume there is an easier way for doing this.

Any hints? All help would be appreciated.

Have a good afternoon everyone!

Kindest regards

Pieter

FlexSim 16.0.7
process flowglobal tableprocessorcapacity
· 2
5 |100000

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

Kari Payton avatar image
3 Likes"
Kari Payton answered
@Pieter Cecat

One way you can do this without using process flow is to use a custom time table that is linked to an excel file. Use excel to calculate the start time of the breakdown and the duration of the breakdown. Then link it to a timetable that is referenced by the processor.

1. In the excel file, I made a column to calculate the scheduled down time for the processor. So from that chart above "720 - working hours" for each month. Then for the information needed by the time table, I took the cumulative monthly time - scheduled down to get the start time of the scheduled down. The duration or the breakdown is the same as the scheduled down time.

2. Link the excel file to a time table. Add a new time table toolbox -> add -> Time Table. On the time table, click the button in the top right corner that says "add table to MTEI". Now in your toolbox you should see a reference to Import/Export Excel. There you add the file path for your excel table.

Hope this helps!customscheduleprocessor.fsm


5 |100000

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

Pieter Cecat avatar image
0 Likes"
Pieter Cecat answered Pieter Cecat commented

@Kari Payton

Thanks for your quick and clear reply! I am following your logic and tried to do as you said. However, I cannot seem to add an excel file to my FlexSim. Everytime I push the 'add table to MTEI' button, it returns the following error in the system console:

exception: Exception caught in flexscript execution of VIEW:/active/TimeTable Parameters2843403040/tabcontrol/Table/Add Table to MTEI>OnPress line 9 instruction 34. Discontinuing execution. exception: Exception caught in TreeNode::callMemberFunction() flexscript execution VIEW:/active/TimeTable Parameters2843403040/tabcontrol/Table/Add Table to MTEI>OnPress c: VIEW:/active/TimeTable Parameters2843403040/tabcontrol/Table/Add Table to MTEI

Any idea what I am doing wrong?

Thanks again for your assistance, appreciate it.

Regards

Pieter

· 6
5 |100000

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