Jump to content

AGarcia

Members
  • Posts

    25
  • Joined

  • Last visited

Posts posted by AGarcia

  1. Hi,

    Thank you so much for taking the trouble of creating the doc document! I am afraid that the three first images refer to the same step (first Search), and the properties of Decide1 and Assign1 cannot be seen.

    I have tried to open the model with the academic licence I have and have the same issue (I am using in 8.139.13727 release).

    Sorry for the inconvenience and many thanks for your help.

    Best regards,

  2. Hi,

    many thanks for your interest.

    I have created a new and simplified versión of my issue with a commercial version (attached).


    Entities flow along a series of servers. The user will select a server so that every time an entity is processed in that server a user defined event will be triggered.

    For that the model contains:

    • Source, servers, sink and an entity.

    • An object list containing all server names (lstServers)

    • A list property (rpSelectedServer).

    • A process that it’s called within the entered add-on process of every server.

    • A state (stRowInList) that will get the number row in the list that contains the name of the server corresponding to the server when the process is run.

    When an entity is processed, by means of Process1, I can get the number in the list corresponding to the server that just processed the entity.

    What cannot do is how to compare the element in that row of the list with the value of the property containing the element in the list.

    Many thanks for your assistance.

    Regards,

    simple_example.spfx

  3. Many thanks for your interest and your post.

    I understood the reason why it is not working. Since I am comparing a name and a number.

    I tried with the double search. In the first search through the list i getto store the index found corresponding to the station where the entity is, but I could not figure what to do in the second search.

    If you could provide me with some help, I would appreciate.

    Regards,

  4. Hi,

    Many thanks for your reply.

    I have created a Seach step that searches through the list lstStations with the Match Condition candidate.Object.Name == ModelEntity.Location.Parent.Name and I get Station8, wich is the object were the entity is.

    I would like to compare this with the value of rpSynchroStation, but this I am having trouble with.

    Many thanks, anyways. I am aware that if you cannot open the model, it is not easy to figure what my issue is.

    Regards,

  5. Hello,

    This model corresponds to an assembly line for three models.

    ModelA and ModelB are processed from Station1 to Station9 and the leave the line.

    ModelC must have additional work, which is to be done in Auxiliar (in between Station 8 and Station9), so that it leaves the line after Station 8and gets back to Station9 after the extra operations.

    A sucbomponent must be ordered in advance to be integrated to ModelC in Auxiliar.

    The logic I want to implement is the following.

    I have a list containing all stations (object list lstStations).

    A list property pointint to that list (rpSynchroStation).

    For every output node of every station, I want to check if the list property coincides with the name of the corresponding station (and if it's model C in that station). If so, an event is triggered, and a source corresponding to the supplier produces a part that will be delivered some time later.

    The problem I am having is within the decide step, when comparing:


    ModelEntity.Location.Parent.Name == rpSynchroStation && ModelEntity.EntityType == ModelC


    In Decide2 step in procCheckIfSynchro process.

    I get an error when comparing ModelEntity.Location.Parent.Name == rpSynchroStation.

    Could you please help me with this?

    Many thanks

    Best regards,

    model_tractors.spfx

  6. Hi,

    I would like to model the following. Having information stored in every entity instance containing the information to a set of tasks that can be performed to that entity and, whether they have been performed.

    I have created a model. There is a set of entities that will enter the model. This is stores in a table (allEntities).

    Some tasks can be done to entities. This is in another table (allTasks).

    Every single entity will have several tasks associated among all possible tasks. This is in a third table (infoEntities).

    When an entity enters the model, I would like each of them to have that information and, as those tasks are done, keep some record that they have been done.

    I have created a repeat group property within the ModelEntity object to grasp info from infoEntities table and the make use of it. But I have not been able to make it work.

    Could you provide me with some hints to progress?

    A model and a document with images is attached.

    Many thanks.

    description.pdf

    model.spfx

  7. 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

  8. Hi,

    I have created a simple object to which I may add more complexity in the future.

    It is a batch server, which processes a certain amount of entities in a batch.

    It has the following properties:

    - Input and Output Buffer Capacities

    - Batch Size

    - Processing Time.

    I wanted to share it in case any one can debug it or make use of it.

    Regards,

    batch.spfx

  9. Many thanks for your reply.


    I do have a step assign after the search step. That I had.

    I tried

    modelEntity.Population.Name == tabPartsInfo.EntityType.Name

    but I got the following error (at the bottom).


    I am attaching the model. It is kanban model and the problem is related to the process procAssignColorStringAndPicture which is called from input@MachiningGears


    Many thanks for your guidance.


    Error

    Item: modelEntity 'gear.63'

    A runtime error was detected at time 0.0 Hours at the following process step:

    Object: Model

    Process: procAssignColorStringAndPicture

    Token: Token.11

    Step: [search] SearchPic

    Step Property: Match Condition

    Error evaluating the value of property 'Match Condition'.

    Item: modelEntity 'gear.63'

    A runtime error was detected at time 0.0 Hours at the following process step:

    Object: Model

    Process: procAssignColorStringAndPicture

    Token: Token.11

    Step: [search] SearchPic

    Step Property: Match Condition

    Error evaluating the value of property 'Match Condition'.

    Invalid operation because types of operands must match. Both must be numeric or string.

    modelo_kanban_20131121.spfx

  10. Hi,


    I am having some trouble with the search step.


    My model has three entities (instances of the Default Entity):

    • Gear

    • Housing

    • Pinion


    Entities have a string property called stColor


    I have a table, tabPartsInfo, where I have the following fields

    • EntityType (object reference property)

    • Color (string property)

    • Picture (integer)


    Every row of this table contains the combination of what picture should be assigned to every type of entity according to their color. For example picture 1, might mean white for gears but blue for pinions.


    Entities of each of the types enter the model and are given a value for stColor.


    After that I want to use the search step so that I find the row where

    • EntityType is the corresponding entity and

    • Color is the corresponding stColor for that entity.


    I have configured the step search as follows


    Collection Type: TableRows

    Table Name: tabPartsInfo

    Match Condition: modelEntity.stColor==tabPartsInfo.Color && modelEntity = tabPartsInfo.EntityType

    Although diffent values for stColor are given to entities, the picture does not change.


    I hope you can provide me with some help.

    Regards,

  11. This is a very simple question that is common to many models.

    Let's imagine I just want an element where entities will be stored untill some other element 'pulls' from them.

    What is the easiest way to imlement having rich information on the amount of entities stored in that element, their average throughput time, etc?

    Many thanks.

  12. Many thanks for your comments and your advice and for the quick response.

    I am just new to Simio and this activity is kind of a way to learn. This hint allows my focusing in the right approach or at least to have some idea about what are the advantages and disadvantages of each approach.

    I understand your point, though.

  13. I am trying to model a server with several failures, where each failure may have a different explanation and thus, a different pattern.

    One obvious approach is subclassing a Server and defining additional elements, such as Failure, Timers, etc and modify the processes so that several failures can cause the downtime of the server.

    However, I do not feel very comfortable with the scalabitliy of this approach. I mean, if a server has three types of failures I will have to add two new Failure elements, 8 timers, 4 corresponding to each Failure and so on.

    If at some point in time I need to add an additional failure, I would need to do the adding all over again, an so on.


    I am considering two different approaches for this, but I do not know if these are feasible or if there is a far better approach.


    Approach 1.

    I would like to subclass the server and create a Repeat Group property so that the user, by means of adding rows, may characterize as many failures as desired.

    The thing is, is is possible to modify the processes so that they are general enough to reflect any number of failures (with their corresponding characterization)?



    Approach 2.

    I was thinking of creating a new object, let us call it objFailure, which contains definitions and processes to reproduce the behaviour of a failure type.

    The idea would be that this objFailure has a property which would contain the number of an element within the project, so that when objFailure fails, the corresponding object fails.

    This way, modelling a server with several types of failures woukd consist in creating that server and as many objFailure as required, which would cause the server to fail as they themselves fail.

    The issue with this approach is that it may not be that easy to represent interferences among failures. For example, if objFailure1 is a count based event failure and objFailure is a Processing Time based failure, when objFailure1 occurs, the server stops and the time during which is down should not be taken into account by objFailure2. This may very complex to program effectively and efficiently.

×
×
  • Create New...