vavei5 Posted December 5, 2016 Share Posted December 5, 2016 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 More sharing options...
gdrake Posted December 5, 2016 Share Posted December 5, 2016 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 More sharing options...
vavei5 Posted December 12, 2016 Author Share Posted December 12, 2016 Thank you very much ! Link to comment Share on other sites More sharing options...
Recommended Posts