Skip to content

stepCount #10

Description

@jair-pereira

@rithgroove

Q1. Could you explain how the simulator.stepCount works?
Q2. stepCount is not a method, what causes these differences in (1) and (2)?
Q3. What is happening at (3)?

I've encounter these situations.

  1. This takes long to run, but the agents move
sim = Simulator.Simulator(args)
sim.stepCount = 3600*8
sim.step() 
  1. Runs much faster but the agents seem not to move
sim = Simulator.Simulator(args)
sim.step() 
  1. In the init of the Simulator:
self.stepCount = 3600*8
self.generateAgents(agentNum)
self.stepCount = 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions