ATTENTION

This FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices.


flexsim.com

Go Back   FlexSim Community Forum > FlexSim Software > Q&A
FAQ Downloads Calendar Search Mark Forums Read

Q&A Using Flexsim and building models

Reply
 
Thread Tools Display Modes
  #1  
Old 08-26-2008
Martijn van Oostenbrugge's Avatar
Martijn van Oostenbrugge Martijn van Oostenbrugge is offline
Talumis, Flexsim Distributor, The Netherlands
 
Join Date: Aug 2007
Posts: 71
Downloads: 12
Uploads: 0
Thanks: 44
Thanked 44 Times in 24 Posts
Rep Power: 263
Martijn van Oostenbrugge is a name known to allMartijn van Oostenbrugge is a name known to allMartijn van Oostenbrugge is a name known to allMartijn van Oostenbrugge is a name known to allMartijn van Oostenbrugge is a name known to allMartijn van Oostenbrugge is a name known to all
Default Preempting for machine breakdown

When I was explaining about preempting to a course attendee I made a little model to explain what happens. I didn't use any network, but as an operator uses the defaultnavigator that wouldn't be a problem. To my surprise, the operator does not always walk to the processors to repair it. Sometimes it does, sometimes it just stays where it is and repairs the machine or just moves just a bit. Can anybody explain this behavior?

Martijn
Attached Files
File Type: zip preempt.zip (47.3 KB, 328 views)
Reply With Quote
The Following User Says Thank You to Martijn van Oostenbrugge For This Useful Post:
Phil BoBo (08-27-2008)
  #2  
Old 08-26-2008
Jason Lightfoot Jason Lightfoot is offline
Flexsim Consultant
 
Join Date: Aug 2007
Location: Somerset, UK
Posts: 719
Downloads: 20
Uploads: 0
Thanks: 123
Thanked 953 Times in 446 Posts
Rep Power: 768
Jason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond repute
Default

The events of the navigator are not being destroyed correctly when the travel task is aborted. It seems the following line is missing from the aborttravel method of the Navigator class:
Code:
destroyeventsofobject(holder, -1, 0, NULL, reqnode);
as this appears to fix the behavior.
Can someone from the dev. team confirm this is the correct fix to the problem? Maybe there's another solution.
Reply With Quote
The Following 3 Users Say Thank You to Jason Lightfoot For This Useful Post:
Brandon Peterson (08-27-2008), Martijn van Oostenbrugge (08-27-2008), Phil BoBo (08-27-2008)
  #3  
Old 08-27-2008
Anthony Johnson's Avatar
Anthony Johnson Anthony Johnson is offline
Manager of Product Development
 
Join Date: Jul 2007
Posts: 440
Downloads: 86
Uploads: 4
Thanks: 171
Thanked 899 Times in 288 Posts
Rep Power: 730
Anthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond repute
Default

Yeah, it looks like Jason's right. We did make a double-check to see if the travel was preempted in the actual execution of the event, but apparently the check isn't good enough in this situation.

Anyway, we'll fix this in the next release.
Reply With Quote
The Following 3 Users Say Thank You to Anthony Johnson For This Useful Post:
Jason Lightfoot (08-27-2008), Martijn van Oostenbrugge (08-27-2008), Phil BoBo (08-27-2008)
  #4  
Old 10-14-2008
AlanZhang's Avatar
AlanZhang AlanZhang is offline
Flexsim Super Moderator
 
Join Date: Aug 2007
Location: CA
Posts: 289
Downloads: 64
Uploads: 0
Thanks: 88
Thanked 91 Times in 47 Posts
Rep Power: 220
AlanZhang is a jewel in the roughAlanZhang is a jewel in the roughAlanZhang is a jewel in the rough
Default

Hi Jason,

Can you or anybody else explain more on this line of code? Where exactly should I put this line? Where is the aborttravle method of the Navigator class? Thanks.
__________________
Best,
Alan
Reply With Quote
  #5  
Old 10-15-2008
Jason Lightfoot Jason Lightfoot is offline
Flexsim Consultant
 
Join Date: Aug 2007
Location: Somerset, UK
Posts: 719
Downloads: 20
Uploads: 0
Thanks: 123
Thanked 953 Times in 446 Posts
Rep Power: 768
Jason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond repute
Default

Hi Alan,

Basically there is an arrival event scheduled for the Navigator relating to a travel request node which is used internally to manage travel tasks. By passing the reqnode, the destroyeventsofobject function only destroys the events for that travel request.

I'd avoid changing anything in the library unless absolutely necessary - any changes need to be saved as a new session and need to be fully compiled. Plus saved sesssions are not updated when a new release of Flexsim is installed so I think having multiple sessions as a user is pretty much discouraged these days. For interest the method is in the cppfunctions node of the Navigator object in the main library of the tree.

Also, it sounds like it will be fixed in 4.5, so if you can wait, that might be the best idea, as I'm still not sure that single line is the best fix. Anthony may be able to tell us if the correct fix was more involved.

If anyone needs a fix in the meantime without creating a new session, it might be possible to destroy the left-over events manually by passing the correct parameters into destroyeventsofobject, but this would need to be tested.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to dispatch a preempting TS immediately Alexandre Ouellet Q&A 2 07-18-2008 10:20 AM
Machine breakdown using Operators Nico Zahn Q&A 8 07-13-2008 03:07 AM
Queueing preempting task Alexandre Ouellet Q&A 3 05-08-2008 09:22 AM


All times are GMT -6. The time now is 02:18 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.