Modulus

General Simio discussions. THIS IS *NOT* A GOOD PLACE FOR SUPPORT QUESTIONS.
To limit spam this and all Public Forums have very limited ability to attach files. We recommend that support issues and more technical topics be initiated inside one of the Simio Insider (SI) forums below where you can attach your model and see example solutions. See above Welcome forum to join Simio Insiders.
Post Reply
hasnan
Posts: 3
Joined: Sun Sep 13, 2015 11:29 am

Modulus

Post by hasnan » Tue Nov 17, 2015 11:28 pm

Hi
Anybody know how to write math expression modulus in Simio. For example I want to write ' modelentity.processingtime is divisible by 3'. I tried (modelentity.processingtime/3==0) it doesn't work. Thanks in advance.

willem
Posts: 105
Joined: Wed Jul 03, 2013 12:07 pm

Re: Modulus

Post by willem » Wed Nov 18, 2015 12:34 am

Hi,

Math.Remainder(ModelEntity.ProcessingTime, 3) = 0
Additionally you should just check if it is larger than 0.

Unless you assigned a ProcessingTime variable or property to your ModelEntity it will not work. Usually the processing time is linked to a Server.

Regards,
Willem

hasnan
Posts: 3
Joined: Sun Sep 13, 2015 11:29 am

Re: Modulus

Post by hasnan » Wed Nov 18, 2015 1:12 pm

Thanks Willem. Appreciate it.

Post Reply