Jump to content

Failure event


sldbtc
 Share

Recommended Posts

Hello,


   I am trying program a model , I need to know if is possible programing failure event in a objet SINK and SOURCE.

the model has SINK and SOURCE elements and a vehicle, the vehicle is responsible for carrying bodies from the Source points to SINK, vehicles are subject to failure and this in its definition, but I need that SINK is also found 20% of the time fails.

there any native method to do so?, with an event I can generate timer events scheduled but I need to SINK probabilistic variable.

this change or what process should be carried out in the model or have to copy the object and create a new process?. Not able to find some simbits failure to occupy, if anyone has any examples or know how.


Regards Cristian.

Link to comment
Share on other sites

I was already trying copying the SINK element but has failed me.

create a property and a FAIL state to account for failure events but I can not see them from the model, my idea was to show a panel the number of failures.

   Additionally makes probabilistically make it fail.


As data, try to copy editing a vehicle does not allow me to save object because it tells me I have too many objects. The ape license I have is student

Link to comment
Share on other sites

The standard student version is limited to creating 5 object definitions. So I recommend using add-on processes to create custom object behavior.


While it is possible to add a failure to any object, this requires some expertise to do so. Resources already have failures and states built-in. I would recommend seizing and releasing a resource using add-on processes and then applying the failures to that resource.


Timer is just one way to create an event. Events can be triggered in many ways. For example, you could use the OnRunInitialized process in your model and have a series of Delay -> Fire steps (or more complex logic) to trigger a series of events.

Link to comment
Share on other sites

I thought working with TIMER type RATE TABLE, in order to generate the probabilistic part, now how can I do for example if I have 5 SINK I can generate a process that simulate a playing capacity of PATH fails, but I do not want to happen to SINK all at once and if I create a process for each SINK the model would not be scalable because failure would have as many processes as SINK in my model.

Link to comment
Share on other sites

I tried creating a process model to simulate a failure , for this what you realizadoes create a Timer event and a process that does is change the Current Capacity of the Path that connects my Sink with the rest of the model.

   The problem is I have a Node List where this point, while there is no event of failure in the Sink model runs smoothly , the Vehicle Trasnportes items from Source to the Sink, almomento a fault occur Path 's ability to change 0 as was to do processing, but equally my vehicle gets stuck on waiting Path to go to that Sink , rather than reevaluate and go elsewhere Sink.

  I tried changing the InputSink CurrentTravelCapacity and CurrentCapacity but equally I feel the same hopes to enter the Vehicle .


  How can I do to make the Vehicle reevaluate where to go to leave the body ? . the list of nodes containing 5 Sink logic Vehicle is go to the nearest Sink.


Please show your support

Link to comment
Share on other sites

Thank you,


I attach a file, I create a process that is triggered with Timer "MantencionPV" and what it does is change the CurrentTravelerCpacity 0.

    In my model to the Source Selection Goal I defined as the shortest distance, withthe condition that the destination node is greater than its CurrentTravelCapacity 0.

  if you run the example command until time 2 works fine, the vehicle carries the elements of the soruce Sink gatillarse but when this event gets stuck at that point and what you should do is to continue functioning but not taking into account that CurrentTravelerCapacity Sink with 0.


Regards Cristian

ejemplo.spfx

Link to comment
Share on other sites

The main issue is that the entities are making the decision about which sink to go to well in advance of getting the single vehicle in the system. Therefore, the sink may fail anytime between that decision and the vehicle arriving and the entity will still have the same DestinationNode specified. I will send additional information through technical support incident.

Link to comment
Share on other sites

Thanks for the information which I understand is the problem.

Now working on the solution, I'm doing a process that does is check CurrentCapacityTravelers is less than 0, so if I make a SetNode and other sending to the other Sink.

Now the problem is that to send to another must evaluate Sink 2 things.

-What the closest.

- The other is not Sink also less than or equal to 0 capacity.


puedohacer this last as a process?, evaluate which is the nearest Sink and who is not capacity = 0.


thump_8724082evalua.jpg


Regards Cristian

Link to comment
Share on other sites

  • 2 weeks later...

regarding this problem I managed to evaluate whether the vehicle to the point you have to go with this ability or not, and by means of step ROUTING achievement to go to a new point. So far so good, the problem is now no point in going to download the entity at that point and falls into a loop.


I Attach a file for your Help please.


Regards Cristian

SIMIO001 (2).spfx

Link to comment
Share on other sites

  • 3 weeks later...

I have done a trace of my simulation, I have a problem when reassessed a route.

the vehicle makes a new Routing to go to a new node, but to get there no download the entity gives the following message "Transporter 'lhd1 [1]' failed to drop off a rider at node 'Input @ Sink1." not eligible riders to drop off. ". This is apparently because the entity has a routing to another node. How is it possible that when you change the target vehicle also change the object that carries?


Regards Cristian

Link to comment
Share on other sites

If the vehicle arrives at a destination (which was the entity destination), you can change the destination of the entity by first using a Search step to search the Collection Type of 'QueueState' and the Queue State Name of 'Vehicle.RideStation.Contents' (in the 'Entering' add on process of the node it is in, for example) - leave Search Type as 'Forward' and no Match Condition - it will find the entity (if there is just 1) that is riding on the vehicle. Then, from the Found exit, you can use the SetNode step to set the entity destination to the new location you want it to go to - also, use the SetNode to change the vehicle destination to that same location as well so it doesn't continue on its way to the original destination, but will also drop off the entity at the correct location. See small example attached.

ChangeEntityDestination.spfx

Link to comment
Share on other sites

Thank you very much for your answer.

I tried another way but still have a problem but in the end I do not understand because I passed.

I first wanted to comment that seemed weird to occupy the variable "Vehicle.RideStation.Contents" but this does not unfold in the expression builder, I had limited myself to expressions giving the builder being who knew all these properties objects.

Now to the problem...


there are 5 SINK, when one enters mantencion (capacity 0), I have the car I reevaluate your destination and the entity that carries.

en el ROUTE_1 reevaluo la ruta y el destino del vehiculo , este punto funciona segun se ve en el trace , luego en el ROUTE_4 reevalue el destino y ruta del la entidad que lleva el vehiculo. Pero en el ROUTE 4 , el cual deberia dar el mismo resultado que el ROUTE_1 este se queda en la condicion "Waiting in Routing Group 1".

the second option SET NODE try following the example they give me, but equally according to the trace both setean well but left in a deadlock.


   Under the two examples if I can tell which is the right way and you fail? In theory both should get the same result.


option 1


thump_8757168route.png


thump_8757171trace.jpg


option 2


thump_8757173setnode.jpg


thump_8757174trace2.jpg


Regards Cristian

1Y.spfx

1YSETNODE.spfx

Link to comment
Share on other sites

 Share

×
×
  • Create New...