Michael Antonov | 5 Aug 10:42

Re: TimeOuts

>  Is it possible to signal SimEvents at some specific time?

I'm very new to Simpy, but here's my initial idea on signalling events at a specific time.

Maybe you could use the waituntil synchronization feature with the condition function using now() to test the current time against a specified value? Then when it matches, fire an event or perform the desired action.

e.g.

def time135():    
      return now() == 135

def run(self):
    while True:
         yield waituntil, self, time135
         # do something

See:“waituntil”synchronization


Good luck,
- M.A.
 
2009/7/31 Richard Nelson <richardn <at> cs.waikato.ac.nz>
In the SimPy manual, in the section on SimEvents it gives a description
of yield waitevent,self <events part> and then gives a description of
<events part> with examples.  Both the examples for a tuple and a list
of SimEvent objects include and object called TimeOut.  There are no
other references to TimeOuts that I can find.  How do I create TimeOut
event objects?  Is it possible to signal SimEvents at some specific time?

Thanks,
Richard.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Simpy-users mailing list
Simpy-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/simpy-users

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Simpy-users mailing list
Simpy-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/simpy-users
Klaus G. Muller | 5 Aug 11:16
Picon
Picon
Favicon

Re: TimeOuts

All:
I would not do it this way -- it is much slower then scheduling an event.

Klaus Muller

Michael Antonov wrote:

>  Is it possible to signal SimEvents at some specific time?

I'm very new to Simpy, but here's my initial idea on signalling events at a specific time.

Maybe you could use the waituntil synchronization feature with the condition function using now() to test the current time against a specified value? Then when it matches, fire an event or perform the desired action.

e.g.

def time135():    
      return now() == 135

def run(self):
    while True:
         yield waituntil, self, time135
         # do something

See:“waituntil”synchronization


Good luck,
- M.A.
 
2009/7/31 Richard Nelson <richardn <at> cs.waikato.ac.nz>
In the SimPy manual, in the section on SimEvents it gives a description
of yield waitevent,self <events part> and then gives a description of
<events part> with examples.  Both the examples for a tuple and a list
of SimEvent objects include and object called TimeOut.  There are no
other references to TimeOuts that I can find.  How do I create TimeOut
event objects?  Is it possible to signal SimEvents at some specific time?

Thanks,
Richard.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Simpy-users mailing list
Simpy-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/simpy-users

------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Simpy-users mailing list Simpy-users <at> lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/simpy-users

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Simpy-users mailing list
Simpy-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/simpy-users
Mike Luntz | 14 Aug 19:07

newbie needs help; what is wrong with this program?

Hi,

I am new to both Python and SimPy and am trying to generate a few sample
examples as I work through Norm Matloff's tutorials. The scenario I am
attempting to emulate is random arrivals to a collection of multiple
servers where the user picks the shortest line.

I have generated a program that has 3 classes: one is a generator of
events; one is a single server that has multiple instances; the last is
a process that should look at the queues of all the servers and assign
the event to the server with the shortest queue. The program is
attached.

I don't mind if someone has a different approach to simulating this
scenario that they want to share, but I would really appreciate someone
explaining why this program does not work since the reason for writing
it was as a learning experience. As you can see from all the commented
out lines, I have been trying a number of things to get it to work. I
have found a number of errors and fixed them, but it still isn't working

Thanks,
Mike
Attachment (testPassivate4.py): text/x-python, 2339 bytes
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Simpy-users mailing list
Simpy-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/simpy-users
Dan Homerick | 14 Aug 23:34
Picon

Re: newbie needs help; what is wrong with this program?

I just realized that the email conversation I've been having with Mike
isn't going through the list. It's probably worth mentioning that his
original bugs have been worked out.

Cheers,
 - Dan

On Fri, Aug 14, 2009 at 10:07 AM, Mike Luntz<laptop <at> mltserv.com> wrote:
> Hi,
>
> I am new to both Python and SimPy and am trying to generate a few sample
> examples as I work through Norm Matloff's tutorials. The scenario I am
> attempting to emulate is random arrivals to a collection of multiple
> servers where the user picks the shortest line.
>
> I have generated a program that has 3 classes: one is a generator of
> events; one is a single server that has multiple instances; the last is
> a process that should look at the queues of all the servers and assign
> the event to the server with the shortest queue. The program is
> attached.
>
> I don't mind if someone has a different approach to simulating this
> scenario that they want to share, but I would really appreciate someone
> explaining why this program does not work since the reason for writing
> it was as a learning experience. As you can see from all the commented
> out lines, I have been trying a number of things to get it to work. I
> have found a number of errors and fixed them, but it still isn't working
>
> Thanks,
> Mike
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Simpy-users mailing list
> Simpy-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/simpy-users
>
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
Harriv | 17 Aug 12:27
Picon

Industrial intralogistics examples

Hi,

 Are there any examples or tutorials available for industrial
intralogistics/materials handling applications? Eg conveyor systems,
robot cells, forklifts, storages etc.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
Tony Vignaux | 20 Aug 06:27
Picon
Gravatar

Re: Industrial intralogistics examples

I do not know of any examples or particular models. It would be interesting to develop some, though. For example conveyers may need an approximation to a continuous model. Forklifts would be OK. Storages are, of course Levels or Stores.


On Mon, Aug 17, 2009 at 10:27 PM, Harriv <harriv <at> gmail.com> wrote:
Hi,

 Are there any examples or tutorials available for industrial
intralogistics/materials handling applications? Eg conveyor systems,
robot cells, forklifts, storages etc.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Simpy-users mailing list
Simpy-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/simpy-users

Gmane