Scaling service time proportionally within an entity processor

27 views
Skip to first unread message

Vinith Gollapudi

unread,
Jun 12, 2025, 12:18:58 PMJun 12
to JaamSim Users Discussion Group
Hi all,

I had a very quick basic question. What I would like to do is scale the Service time within an EntityProcessor proportioanlly by the same amount factor of entities it is working on currently. e.g. 1 entity gives a service time of two hours, 3 entities gives a service time of 6 hours.

Within the Service Time field I put in: 2 * [SM/A].EntiySize
With SM/A being the name of the EntityProcessor.

The Jaamsim software comes up with an error but dont know what to use for it? Would someone be able to help me please? :)

Best wishes,
Vinith

Harry King

unread,
Jun 12, 2025, 1:45:44 PMJun 12
to JaamSim Users Discussion Group
EntiySize (and EntitySize) are not valid outputs for EntityProcessor. Use the Input Builder to help you build an input expression with the correct syntax.

Your ServiceTime input should probably be something like: '2[h] * this.UnitsInUse'

Harry

Vinith Gollapudi

unread,
Jun 18, 2025, 9:23:57 AMJun 18
to Harry King, JaamSim Users Discussion Group
Hi Harry and team, 

Thank you for responding Harry. 

In the same vein of solving this problem for my simulation, I am now trying to have ServiceTime within an EntityProcessor scale proportionally with an InputValue (Client_Projects), which in my case is 10. 

Client_Projects is an InputValue, which I have valued at 10.0, with UnitType DimensionlessUnit. 
The formula within ServiceTime, I want to write something like ’0.5 [h] * Client_Projects’, however this is not a valid input.

I have tried the below screen shot, which seems to work, but Ideally I would like to reference the “Client”Projects” InputValue in the ServiceTime only. I tried using the InputBuilder but couldnt find a way unfortunately. Would anyone know how to do this? 


PastedGraphic-1.png

Best wishes, 
Vinith

--
You received this message because you are subscribed to the Google Groups "JaamSim Users Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jaamsim-user...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/jaamsim-users/3555c3dd-e76a-4b44-94a5-dc4b1067da27n%40googlegroups.com.

Harry King

unread,
Jun 18, 2025, 6:13:41 PMJun 18
to JaamSim Users Discussion Group
To use an InputValue in an expression, you must reference its 'Value' output, i.e.

'0.5[h] * [Client_Projects].Value'

Harry

Vinith Gollapudi

unread,
Jun 19, 2025, 3:09:01 AMJun 19
to Harry King, JaamSim Users Discussion Group
Hi Harry, 

Thank you for correcting my Syntax!

Best wishes, 
Vinith

--
Vinith Gollapudi
Senior Operations Associate, PentaBind

"PentaBind has been shortlisted as New Startup of the Year by Cancer Research Horizons, and also as Deep Tech Investment of the Year by the UK Business Angels Association, a prestigious award sponsored by the Royal Academy of Engineering"

Reply all
Reply to author
Forward
0 new messages