Simevents: Changing resources in pool
조회 수: 4 (최근 30일)
이전 댓글 표시
Hi,
I am trying to change the amount of resources in a resource pool between a day shift and a night shift (different number of forklifts).
I have created a system which sends a signal of four during the day hours and two during the night but this gets added when the message is sent to the resource pool (added all the time so I end up with well over 200 forklifts).
What is the correct way to vary resources in a pool since the input value cannot be negative (so cannot withdraw resources).
댓글 수: 0
답변 (1개)
Abdolkarim Mohammadi
2021년 2월 5일
One way is to create a Gate, and not to let entities when the resource is not sufficient. The other way, which is the better but harder way, is to use MATLAB Discrete-Event System (MDES) block.
MATLAB Discrete-Event System (MDES): https://www.mathworks.com/help/simevents/ref/matlabdiscreteeventsystem.html
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Discrete-Event Simulation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!