MATLAB Answers

Simulation of an production system

1 view (last 30 days)
Hi,
I have a problem with the implementation of a project and would like to hear if and how it can be sensibly implemented.
I would like to simulate a production system in Simulink. The procedure is as follows: A sorting algorithm is to put the orders in a sensible processing order and the order is then processed in the Simulink model. The orders are to be planned at most 2 weeks in advance, so I would like to stop the simulation after 2 weeks and run through the sorting algorithm again. After sorting, the simulation should continue at the same working point with the new orders. For me, at the same working point means that there are still orders being processed in the production system. I hope I have been able to explain my problem well, as my research has not really yielded much. Is this possible and if so, how?
My idea was to solve it via the save Operating Point, but I can't find any exact information there about how I can access the individual data, about the traceability of the orders in production and how I can use the Operating Point sensibly.
Many greetings and thanks in advance
Christian

Accepted Answer

Abdolkarim Mohammadi-Balani
If I have understood you well, you need to re-run the sorting algorithm in certain time intervals. If that is the case, you need a MATLAB Discrete-Event System block (MDES). You should view the execution of the sorting algorithm as an event. A time-based entity generator with fixed intergeneration periods can serve well here. After this block, you need a MDES with two storages (one for incoming tasks and one for the event of the execution of the sorting algorithm). In the entry event action of the second storage, you can impelement your sorting algorithm and re-sort the entities.

More Answers (0)

Products


Release

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!