question

Amandine P avatar image
0 Likes"
Amandine P asked Amandine P commented

How to do a production scheduling with preemption (SRPT)?

Hello!

I’m trying to simulate production with arrival schedule and arrival time different to zero. I want that schedule follow the SRPT rule that is the shortest remaining processing time. Therefore, if a product is in production on the machine 1 and another product with a smaller processing time than the processing time remaining on the current product, the production of the latter is stopped and the new replaces it.

I don’t know how to do it, I have tried with process flow but without result.

Could you help me?

Thanks,

preemptionproduction schedule
5 |100000

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

1 Answer

Clair A avatar image
1 Like"
Clair A answered Amandine P commented

Hi @Amandine P,

I have built a sample model 2019-08-13-shortest-remaining-processing-time-srpt.fsm based on this arrival schedule:

(source: https://en.wikipedia.org/wiki/Shortest_remaining_time)

I used a Basic Processor logic as a starting point:

To build some kind of SRPT process flow:

The item trace gantt chart shows the same results as the wikipedia example:

Product #6 has been preempted twice by a product with a shorter remaining processing time.

The key behind the logic is a list with all products:

To find the product with the shortest remaining processing time, the query is:

ORDER BY RemainingTime ASC

Hope this helps.


· 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.

Amandine P avatar image Amandine P commented ·

@Clair A

Thank you very much,that's what I want! But I don't have the same version of FlexSim, I have version 16.2 and I can't find the right function for expression in ItemList1.

0 Likes 0 ·
itemlist1.png (26.0 KiB)
Clair A avatar image Clair A Amandine P commented ·

Why are you using such an old version of the software ? I do recommend to update to the latest release.

0 Likes 0 ·
Amandine P avatar image Amandine P Clair A commented ·

Because I have the license for this version.

0 Likes 0 ·