TimeTables

General Simio discussions. THIS IS *NOT* A GOOD PLACE FOR SUPPORT QUESTIONS.
To limit spam this and all Public Forums have very limited ability to attach files. We recommend that support issues and more technical topics be initiated inside one of the Simio Insider (SI) forums below where you can attach your model and see example solutions. See above Welcome forum to join Simio Insiders.
Post Reply
esinanaygun
Posts: 24
Joined: Tue Dec 18, 2012 9:53 am

TimeTables

Post by esinanaygun » Thu Mar 07, 2013 3:12 am

Hi again..

I have a different kind of a problem today. For example lets think that I am making a simulation about ferries. I have just 2 seaports to use and 2 ferries to use also. My ferry is taking possibly 40 cars per travel. And I want to control the ships to start traveling according to a table that I will create. For example the ferry must stop at the port at 9:45 until 10:00 and start traveling at 10:00. It takes again beetween 35 to 45 minutes for it to cross the sea and when it reaches to the port it must wait until its time will come for example 11:00 so that it can move again to the other port.


1) How can I make the ferry wait until the time in a table will come. for example my table can be

10:00 - 11:00 - 12:00 ...

Thank You

dsturrock
Simio Team Member
Posts: 1453
Joined: Thu Mar 13, 2008 12:35 pm
Location: Sewickley, PA USA
Contact:

Re: TimeTables

Post by dsturrock » Thu Mar 07, 2013 11:12 am

If you model your ferry as a vehicle, I believe that the Dwell Time Type of Specific Time will work perfectly for this situation.
Dave Sturrock
VP Operations, Simio LLC

esinanaygun
Posts: 24
Joined: Tue Dec 18, 2012 9:53 am

Re: TimeTables

Post by esinanaygun » Sun Mar 10, 2013 2:47 pm

I made what you said before but I could not assign the values in the table. For example I created a table which is like this
01:00:00
02:00:00
03:00:00
04:00:00
etc.

I assigned the table with right click to Dwell time and it gives me an error. Do you have any kind of examples so that I can see how to assign a table or which type? Thank you

dsturrock
Simio Team Member
Posts: 1453
Joined: Thu Mar 13, 2008 12:35 pm
Location: Sewickley, PA USA
Contact:

Re: TimeTables

Post by dsturrock » Sun Mar 10, 2013 11:35 pm

The Dwell time could be specified in many different ways depending on exactly what you want and where/how your data is specified.

For a simple example, presume that you always want to wait (dwell) until the top of the hour (e.g. xx:00). You could use the expression:
Math.Ceiling(TimeNow) - TimeNow
Since base time is in hours, this simply calculates the time remaining to the next integer hour.

For another somewhat simple case, if the change time for the current stop is stored in a column named GoTime in a table called MyStops, and the current row in that table points to the current stop, you would use the expression:
Math.Min(0, MyStops.GoTime - TimeNow)
which calculates the time remaining (if any) between the the schedule time and now.

If your current row does not point to the current stop, then you would have to put in an expression for the row number. For example if each row in the table corresponded to a stop of the same number and that stop was stored in a state named StopNumber, then you could use the expression:
Math.Min(0, MyStops[StopNumber].GoTime - TimeNow)
Dave Sturrock
VP Operations, Simio LLC

ASagan
Posts: 356
Joined: Wed Oct 05, 2011 11:21 am
Location: Brisbane, QLD

Re: TimeTables

Post by ASagan » Sun Mar 10, 2013 11:55 pm

I created a very basic, not quite fully functional, 'dwell time' model that calculates the dwell time based on how soon the next departure slot is according to Dave's 3rd example. I don't feel my approach is very elegant but maybe it can help get you started. It's at the following post:
http://www.simio.com/forums/viewtopic.php?f=36&t=1169

Getting things to run 'on schedule' can be a bit tricky, especially when you start adding in the rules of what happens if you arrive late (do you miss the slot and wait for next departure, or now depart late?), if there's more activities to be done, etc.
Solosi Pty Ltd -- www.solosi.com

esinanaygun
Posts: 24
Joined: Tue Dec 18, 2012 9:53 am

Re: TimeTables

Post by esinanaygun » Thu Mar 14, 2013 10:40 am

Thank you for your replies they were really useful. Especially the 3rd option was the best for my problem.

Post Reply