Jump to content

GFurtado

Members
  • Posts

    81
  • Joined

  • Last visited

  • Days Won

    15

Posts posted by GFurtado

  1. If you right-click on the Standard Library you'll see a Show Deprecated Objects option.

    The Workstation should appear in your library after that, but you could try to solve this using servers instead as a bonus challenge.

    • Like 1
  2. It is possible to reference a column in a expression property ( e.g.: Table1[1].Separator1 )

    But I suggest:

    1. Working with Work Schedules on your Data tab
    2. Or rearrange your table to include a Object Instance Property column containing all your servers, following by Integer Property column with its capacities. This should make the referecing easier.
  3. (state where the object is stored).(type of the object).(expression)

    So, in your example you should type: Tab1[1].Obj.Resource.CurrentCapacity.

    Same logic applies to object state variables. If you want to know the current capacity of a resource stored in a object state variable named ObjState, call it as ObjState.Resource.CurrentCapacity

     

    I attached a file if you want to see it in action. I'm not sure if this works with vectors, I never tried it.

    Object Referencing.spfx

  4. Each entity running on a model is actually an instance of another model (a model entity).

    You'll se each individual distance travaled if you add an attached label on your ship entity, or else you'd need to reference that particular instance somehow.

     

    In the model attached in this post, I get the distance traveled of the last entity created.

    You also could set a "checkpoint" that assigns ModelEntity.TotalDistanceTraveled to a state whenever that entity goes through it.

    AttachedLabel.spfx

  5. 11 hours ago, Nadere said:

    2) Are there any options to consider congestion such as considering a segment of a road is decomposed into cells based on the free flow velocity and length of discrete time step. By this division, vehicles can move only to adjacent cells in unit time. The connectors between cells are dummy arcs indicating the direction of flow between cells. For example, if 5 hour takes time to drive from the beginning of the road to the end, we put transfer node after each one unite of time (server---> after 1 hour--> transfer node ---> after 1 hour--> transfer node ---> after 1 hour--> transfer node ---> after 1 hour--> transfer node ---> server ). In the path, vehicles drive with fixed speed and path has a fixed capacity. Therefore, we can consider congestion if a vehicle wait to enter the path.

    For your second question, you should use TimePaths instead of Paths. Just set the Initial Traveler Capacity and Travel Time properties to an arbritary number.

    Traffic with TimePaths.spfx

  6. Check my attached model.

    The entities have random movement speed and paths Allow Passing property are set to False. So slower entities will naturally create a traffic congestion.

     

    You could also try to solve this in a more algebraic manner, by setting ModelEntity.DesiredSpeed or Path.DesiredSpeed based on the Path.Contents state.

    Traffic.spfx

  7. On 6/16/2017 at 10:40 AM, AubinMacquart said:

    Hi Petr and Glen,

     

    I have been trying to use both your add-ins. However, I continuously receive the same error message when importing the 'ImportObjectsLinksVertices.xlsx' spreadsheet (see picture below). Does one of you know how this can be fixed?

     

    Kind regards,

    Aubin Macquart

    error.thumb.png.92b694cb6517f3ab6e8d2ec0a1cc9aa2.png

     

    I'm having the same problem aswell.

    Did anyone find a fix?

     

  8. 16 hours ago, MEagar said:

    Personally I would use the search block set to search the entity population opposed to the find block.

    Cool, I manage to find a solution using the Search Step. Thank you so much, Mark.

     

    16 hours ago, MEagar said:

    It should also be noted that the Exclusion Expression is evaluated at the start of runtime (if I am not mistaken) hence if this is false, the block will default to false for the entire runtime.

    You're absolutely right. I didn't even notice it.

  9. Greetings!

     

    I have this problem and I'm probably doing something wrong.

    I'm trying to use the Find Step to make my entities look for the closest server through the DirectDistanceTo Expression.

    This Process is triggered when the entity enters a Transfer Node.

    Based on these screenshots, can you tell me what am I doing wrong? I'm almost certain the Search Expression is incorrect.

     

    Thanks!

    Process.PNG

    Find Step.PNG

    SetRow Step.PNG

×
×
  • Create New...