Jump to content

Welcome to the Simio Forum

Welcome to the Simio Forum! Experience the full experience of the forum by becoming a Simio Insider!


New Software Release

Our latest release, Simio 10.174, will be live in July 2018!

Save the Date!

Simio Sync is May 14-15, 2018! More details coming next month.


  • Content count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About mjansen


    simulation specialist and consultant at LOGIO
    Prague, Czech Republic
  1. mjansen

    Import Objects From Spreadsheet

    Hi Glen, I ran into a modelling challenge where i have to build a network based upon user input. First i was planning to create complete graph(fully connected)in simio and using input to activate/deactivate nodes and links. ( But i wasnt looking forward to creating this graph( around 20 nodes and 20*19 edges)) Then i ran into this add-in. This seems like a way more elegant way to solve this! Getting it working was surprisingly easy! I only have one issue, i need the object to be automatically imported upon opening the model( so without the need to click "Load Objects and Links from an external spreadsheet" ). Since opening and and running the model is done through the api in the solution that i am trying to build. I was thinking that it could be possible to create a custom step to call the loading of the object and links, but i guess it wouldn't be possible to add these types of objects to a already running model. Could you advice me on the best way to achieve this? Any help/input is greatly appreciated!
  2. Thank you for your reply! That's a very clear story. When i tried to use to route step before i encountered some restrictions which have led me to create my own simple routing logic(so i can see exactly whats going on). I have changed two things in the model you added to illustrate these restrictions. - I added another criteria for the routing to be allowed( in this model BlockedState). When i set this BlockedState to false(in the model after 5 min) I want the entity's to immediately start going to the servers, or at least have step to trigger the routinggroup to attempt it. I cannot find a step like this, is it there? - At this moment when the next entity is created and goes through the route step this entity is the first one to pass(even though the routinggroup is set to FirstinFirstOut), after this first entity the entities are send correctly to the servers. ConstrainedEntityFlowNew2.spfx
  3. I have had encountered this same problem and explored the three options presented. What i find strange is when using the last option (select available only) a lot of entities will queue up at the top source(not more or less equal as with the second option). Why does this happen?
  4. mjansen

    Agent Based Modelling Test

    I started building the first model. Formulation: • The space is a two-dimensional grid of dimensions 100 x 100. The space is toroidal, meaning that if bugs move off one edge of the grid they appear on the opposite edge. • 100 bug agents are created. They have one behavior: moving to a randomly chosen grid location within +/- 4 cells of their current location, in both the X and Y directions. If there already is a bug at the location (including the moving bug itself—bugs are not allowed to stay at their current location unless none of the neighborhood cells are vacant), then another new location is chosen. This action is executed once per time step. • The bugs are displayed on the space. Bugs are drawn as red circles. The display is updated at the end of each time step. • Instead of specifying which random number generation algorithm to use, the default generator for each platform is used. Now i create 100 instances of Defaultentity put them randomly in a field of a 100x100. I added 1 process to Modelentity so it every minute it changes it's location, if it would go outside the border it goes to the other side. I also made a state in the (main) Model which represents the grid. What i want to do but can't figure out how is, get the entity everytime it wants to move, check in this grid if there is something on that location. And upload his position on this grid after he moves. But i can't seem to access the (global) variable i declared in the model within the entities. If i put: Model.Grid it does recognize its a matrix(i can enter rows and coloms) but when i run the simulation it crashes. Giving the error: Invalid Object Reference. Any help would be greatly appreciated!
  5. I am researching the Agent Based modeling capabilities of Simio. I wanted to do this by implementing a series of simple models, which have been used to review a set of ABM platforms. The review can be found here: http://www.humboldt.edu/~ecomodel/documents/ABMPlatformReview.pdf A description of the simple models (called stupid model) can be found here: http://condor.depaul.edu/~slytinen/abm/StupidModelFormulation.pdf I went trough this model and formulated some of the functions which i think are necessary to implement these models. * Checking for an object on a specific grid point, not only if there is something but also who it is and being capable to interact with this specific agent. E.g. see if there something on a location before deciding to go there or not, or changing states of a specific agent. (Model 1). *Scheduling the order of actions to be performed, between agents and of a specific agent. E.g. Decide which instance of an agent type gets to go first, and which action of an agent goes first. I was wondering if anyone knows if this is possible in Simio. Furthermore if anyone has succesfully build an ABM in Simio i would be very interested to see/hear more about that!
  6. I am trying to build a model which simulates an ambulance process. The model isn't very hard. What i want to do is have the model interact with my own interface. On initializing I want to read in things like what hospital to use distances and the amount of ambulances to dispatch at the start. All of this is not a problem thanks to the easy interaction with excel/csv files when initializing. Now the problem: I also want to be able to influence the model while running from my own interface.(e.g. dispatch more ambulances). I thought about interacting trough a txt file, since there is an option to read/write to a txt. I ran into a problem, because it seems that Simio keeps the text file empty until the end of the run en than writes everything at once. Is it possible to close a text file while running? Or is it necessary to make my own extension? And will that make it possible? Thanks in advance!