Search the Community
Showing results for 'can one us an if statement in an expression'.
-
Hello, If I have created a list state variable (The list just contains each day of the week. ie: "Sunday", "Monday", "Tuesday", etc...) and I want to assign a new value in a state assignment of the facility to a particular day within the list state variable how can I do this? It seems like I can only reference the List State Variable as a whole but I don't know how to assign values to the contents of the variable.... Thanks!
-
Hi, I am trying to access Tank Level Mark thru an expression. Any suggestions on what this expression should be? I tried "Tank1.FlowContainer.TankLevelMarks.MidMark" but that did not work. Thanks!
-
Hi, Is it possible to access the filter expression of standard Dynamic Selection Rules for use in processes? Basically I want to filter queues based on some Entity properties, eg, being a specific material. However standard dispatching rules only apply the filter if multiple entities are in the queue. Eg, if a an entity of "wrong" type arrives to the InputBuffer of a Server and the input buffer is empty it will seize the queue anyway. In my case I want to keep the server starved until an entity of correct type arrives. I found a way to implement that by filtering the queue with the same expression as used in the dynamic selection rule, however I need to add another property for that expression, which is a bit confusing. Thanks for your help Michael
-
Hello, How to search for a particular row in a table using an expression? I am using a time path and want to select the time in that path from a table depending upon the type of entity. There is an option to write an expression in the 'Time' field in time path, but I don't now how to search table using an expression. Thanks
-
Hi, I have a problem when that I describe bellow in full detail. I have seen a simbit which is similar to my issue but do not know how to extend it. I have uploaded the model the description refers to. Your help is highly appreciated. Regards, Overview The idea is to allow the user choose the processing time for a server but not his entering the experssion himself, but by means of some intermmediate option. In particular, the user is have two options: ‘regular’ or ‘reduced’ for the processing time. According to the user’s pick, regular and reduced will lead to specific expresions contained in a table. The model There are three objects: • Source1 (default values from the estándar library) • Server1 (the processing time is to be chosen by the user) • Sink1 (default values from the estándar library) List There is a String List (named strUserOptions) containing the user can choose from, and contains two ítems: “Regular” and “Reduced”. Properties There is a List Reference Property rpUserOption, whose list is strUserOptions, so that the user can pick one of the above mentioned ítems. Its Display Name property is “Server Processing Time Speed” Table There is a Data Table (tabUserOptionInfo), with two columns: • Column 1 (name UserOption), List Property = strUserOptions • Column 2 (name ProcessingTime): Expression, Unit Type = Time, Default Units = Hours The table has two rows, as follows: Regular random.exponential(5) Reduced random.exponential(4.5) The objective My intention is that the user chooses either Regular or Reduced from the model property window and the corresponding value for the Server Processing Time is chosen for Server1 case_unsolved.spfx description.docx
-
Hello, i want to model time varying arrival rates for my entities. If I choose rate tables I can't select random arrival rates. Is there any possibility to do so? Regards Nadine