decrease resource amount in resource pool

조회 수: 4 (최근 30일)
ivan mcgregor
ivan mcgregor 2020년 12월 3일
댓글: Joep Eijkenduijn 2021년 4월 13일
大家好
hello everyone
Please answer to me, how can I decrease resource amount in resource pool via signal port?
increase is not problem , with message.data = x, i can increase on x items.
but how about decrease.
thanx a lot
  댓글 수: 1
Joep Eijkenduijn
Joep Eijkenduijn 2021년 4월 13일
Hi Ivan,
I don't know how to decrease the amount of resources. Documentations say it is not possible. But I have found a simple workaround:
Build the following system outside of your main system:
Entity generator: 1/s
First server: server time, you put the time point at which the decrement in resources must happen. Server capacity = infinite.
Resource acquirer: acquire the amount of resources by which you want it to decrease.
Second server: Server time, long enough that it will keep the entity during the entire simulation. Capacity = 1.
And last a terminator.
This system holds the resources during the simulation which in practice seems like a decrease. Hope this helps.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Application Deployment에 대해 자세히 알아보기

태그

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by