Closed sbenthall closed 1 year ago
There are 1000 agents, all trying to solve the same problem. I thought we had settled on solving before exploding the population. I'll take a look.
There are 3 build_population
methods in the codebase, in parameters.py, run_simulation.py, and run_whiteshark.py, we should probably settle on one and delete the others.
As for what I think should be the default build_population
, in parameters.py, it does indeed solve the agents before exploding. So there is no need to solve again, especially because these agents all have the same solution.
So the point is, you don't have to ap.solve()
after build_population
.
Ah, yes, what you've said makes sense.
There are 3
build_population
methods in the codebase, in parameters.py, run_simulation.py, and run_whiteshark.py, we should probably settle on one and delete the others.
That's a good point. Cleaning that up, and documenting the remaining one, would avoid this confusion. I think also the automated tests don't yet cover this method.
I've renamed this ticket to reflect and will reopen it, assigned to myself.
I've been trying to work with the AgentPopulation.
When I try to solve() the most basic version of the AgentPopulation, I find that it takes a surprisingly long time to execute. Meaning ... I haven't actually seen it finish solving yet. It's been running for several minutes.
I wonder if @alanlujan91 can replicate this error? Maybe it's a configuration issue on my end?