Jump to content

Routing Logic Vehicle Initial Home


vavei5
 Share

Recommended Posts

Hello,


I was wondering if it is possible to change the vehicle initial home node during the simulation.


In my model , I want to vehicle to park at home after his work, but in the middle of the simulation I want him to go wait in another place.


Is it possible ?

Link to comment
Share on other sites

You can dynamically assign the 'HomeNode' state variable of a vehicle or worker object (e.g., ASSIGN: Vehicle1[1].HomeNode = BasicNode1 or ASSIGN: Vehicle.HomeNode = BasicNode1 if the vehicle of interest is associated with the token executing the Assign step).


The 'Initial Node (Home)' property is simply the initial value assigned to that node reference state variable of the vehicle or worker.


I'll have the property description of that 'Initial Node' property updated to make sure to note the state variable that can be dynamically assigned to change the home node location.

Link to comment
Share on other sites

×
×
  • Create New...