>
> Thanks,
> Forrest
>
> On Mon, Jan 23, 2012 at 2:54 PM, Stefan Scherfke <
stefan <at> sofa-rockers.org> wrote:
> What kind of visualization? I’d suggest to collect data during the simulation run and then to draw plots using matplotlib.
> cheers,
> stefan
>
>
> Am 2012-01-23 um 21:52 schrieb Forrest Iandola:
>
> > >Also, what if I want to visualize processes?
> > I'm also curious about this.
> >
> > Can SimGUI (
http://simpy.sourceforge.net/SimPyDocs/Manuals/GUIManual/SimGUImanual.html) enable the visualization of processes in SimPy?
> >
> > Thanks,
> > Forrest
> >
> > On Sat, Jan 21, 2012 at 10:19 AM, Aya al Zarka <
aalzarka <at> gmail.com> wrote:
> > Thank you Mr. Stefan for your help. I found examples to answer my question and I am trying to learn from. Along the way, I will ask some questions to help me gain quickly working knowledge.
> >
> > I am trying to learn and build a simulation. I want to assign 2D coordinates to objects in a SimPy process so that they are changed in every time step. I am grateful to anyone who looks into my code and tell me comment. Thank you
> >
> > from SimPy.SimulationTrace import *
> > import random as RD
> > import scipy as SP
> > import math
> >
> > N=100
> > r1=0.02
> > r2=0.03
> > r3=0.2
> > r4=0.3
> >
> > circular=[]
> > for i in xrange(N):
> > newpoint=[RD.uniform(0,100),RD.uniform(0,100)]
> > circular.append(newpoint)
> >
> > class Point(Process):
> > def __init__(self,state,rate1,rate2):
> > Process.__init__(self)
> > self.state=state
> > self.rate1=r1
> > self.rate2=r2
> >
> >
> > def Move(self):
> > for j in objects:
> > j[0] = RD.uniform(j[0]-0.3,j[0]+0.3)
> > j[1] = RD.uniform(j[1]-0.3,j[1]+0.3)
> >
> >
> > initialize()
> > objects=Point('Circular',r1,r2)
> > activate(objects,objects.Move())
> > simulate(until=maxTime)
> >
> > There is something wrong in formulating the for statement of "Move function". I want these 2D points to move randomly each step. In other words, the objects of the process are points which have 2D coordinates. A later time I will initiate another objects which have initially different distribution in plane, e.g.
> >
> > star=[]
> > for i in xrange(N):
> > newpoint=[RD.uniform(15,75),RD.uniform(15,75)]
> > star.append(newpoint)
> >
> > Then at some point I will want to write:
> >
> > objects=Point('star',r3,r4)
> > activate(objects,objects.Move())
> > simulate(until=maxTime)
> >
> > Thus, I do not know how should I write the for statement to be general enough to be able to activate different objects in this process. Or the way I initiated the objects may be wrong in the first place.
> >
> > Also, what if I want to visualize processes?
> >
> >
> >
> > On Wed, Jan 18, 2012 at 10:51 PM, Stefan Scherfke <
stefan <at> sofa-rockers.org> wrote:
> >
> > Am 2012-01-18 um 15:02 schrieb Aya al Zarka:
> >
> > >
> > > Hello SimPy community
> > > Excuse me, I would like to ask two questions:
> > >
> > > 1 I want to define a process whose objects transform at some time to another previously defined process and become objects there. Is this possible? what is the name of function that do that then?
> > > In each process they perform different things
> >
> > I’m not really sure if I understand what you mean. Can you give an example, please?
> >
> > >
> > > 2 This is maybe the revese... I want to create a source process which generates objects for a process. But I want them to have a different name and possess different parameters. Is this possible?
> >
> > Dynamically creating objects (with varying parameters) is no problem with Python (or dynamic programming languages in general).
> >
> > >
> > > Thank you very much
> > > - Aya
> >
> > cheers,
> > stefan
> >
> > >
> > > On Wed, Jan 4, 2012 at 5:11 AM, Tony Vignaux <
vignaux <at> gmail.com> wrote:
> > > We would certainly recommend matplotlib. It fits very well with this sort of project.
> > >
> > > I hope you have lots of fun with SimPy.
> > >
> > > ====
> > >
> > > Tony Vignaux
> > >
> > >
> > >
> > >
> > >
> > > On Wed, Jan 4, 2012 at 2:32 PM, Aya al Zarka <
aalzarka <at> gmail.com> wrote:
> > > Thank you very much Stefan, and prof. Tony. To make my question clear, after I
> > > build a simulation, I want to answer some questions like how best or how many...
> > > by making some experiments on my simulation and analyzing the results by means of
> > > graphs. I will probably see if I can use matplotlib package for spatial analysis.
> > > My point is that I do not want to spend a lot of my project limited time learning
> > > programming, it is a math project after all... Nice package and nice community,so I
> > > will try to make it.
> > >
> > >
> > > On Tue, Jan 3, 2012 at 10:35 PM, Tony Vignaux <
vignaux <at> gmail.com> wrote:
> > > Stefan is right about using Processes for the insects.
> > >
> > > NumPy is certainly powerful but you can distribute the population using the simple distributions found in the random module. In your case two random variates from a uniform distribution.
> > >
> > > Monitors can record data for you and construct histograms. But for proper analysis we would recommend sending results from the simulation to a graphics package or the statistical/graphics package, R.
> > >
> > >
> > > ====
> > >
> > > Tony Vignaux
> > >
> > >
> > >
> > >
> > >
> > > On Wed, Jan 4, 2012 at 5:19 AM, Aya al Zarka <
aalzarka <at> gmail.com> wrote:
> > > Hello SimPy community,
> > >
> > > I am a math graduate student working on a project and need to build a simple agent-based simulation for behavior of insect in a field.
> > >
> > > My question is can I initially distribute the insect population heterogeneously in 2D space using SimPy?
> > > what are options available to analyzing the simulation by means of graphs?
> > >
> > > I do not have a programming background but I think it is easy to learn, I am already working on another python package and find it interesting. I have people around me who are computer science graduates and frequently ask them to learn quickly programming basics.
> > >
> > > please advice me..
> > >
> > > Thank you
> > >
> > > ------------------------------------------------------------------------------
> > > Write once. Port to many.
> > > Get the SDK and tools to simplify cross-platform app development. Create
> > > new or port existing apps to sell to consumers worldwide. Explore the
> > > Intel AppUpSM program developer opportunity.
appdeveloper.intel.com/join
> > >
http://p.sf.net/sfu/intel-appdev
> > > _______________________________________________
> > > Simpy-users mailing list
> > >
Simpy-users <at> lists.sourceforge.net
> > >
https://lists.sourceforge.net/lists/listinfo/simpy-users
> > >
> > >
> > >
> > >
> > >
> > > ------------------------------------------------------------------------------
> > > Keep Your Developer Skills Current with LearnDevNow!
> > > The most comprehensive online learning library for Microsoft developers
> > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> > > Metro Style Apps, more. Free future releases when you subscribe now!
> > >
http://p.sf.net/sfu/learndevnow-d2d_______________________________________________
> > > Simpy-users mailing list
> > >
Simpy-users <at> lists.sourceforge.net
> > >
https://lists.sourceforge.net/lists/listinfo/simpy-users
> >
> >
> >
> > ------------------------------------------------------------------------------
> > Try before you buy = See our experts in action!
> > The most comprehensive online learning library for Microsoft developers
> > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> > Metro Style Apps, more. Free future releases when you subscribe now!
> >
http://p.sf.net/sfu/learndevnow-dev2
> > _______________________________________________
> > Simpy-users mailing list
> >
Simpy-users <at> lists.sourceforge.net
> >
https://lists.sourceforge.net/lists/listinfo/simpy-users
> >
> >
> >
> >
> > --
> > Forrest Iandola
> > Department of Computer Science
> > University of Illinois at Urbana-Champaign
> >
http://www.forrestiandola.com
>
>
>
>
> --
> Forrest Iandola
> Department of Computer Science
> University of Illinois at Urbana-Champaign
>
http://www.forrestiandola.com