colinsheppard / pevi

GNU General Public License v3.0
1 stars 0 forks source link

implement batch mode #12

Closed colinsheppard closed 11 years ago

colinsheppard commented 11 years ago

definitely do this in a new branch, but please push this branch to github so I can see / play with it as work progresses:

create a new setup procedure called "setup-in-batch-mode"

colinsheppard commented 11 years ago

do a profile to see difference in time between batch-setup first time and subsequent time

colinsheppard commented 11 years ago

change the setup procedure to the fix seed variant, run the model twice (in batch mode) with some outputs and verify identical results

colinsheppard commented 11 years ago

note that I've done some fussing with things (still unsuccessful) to get results on first and second batch run to match. one change shouldn't be considered final, instead the code to set fuel economy should probably happen in setup drivers because it uses random draws and is therefore messing up the state of the random seed. see:

https://github.com/colinsheppard/pevi/blob/batch-setup/netlogo/setup.nls#L233

colinsheppard commented 11 years ago

I fixed the change noted in my comment above here:

43a248d

and the following commits were the rest of my work on this issue which is now almost resolved:

e999468 6e7e777 bd495b3

colinsheppard commented 11 years ago

the final bit of work that needs to be done is to make it possible for the use (via R or the netlogo GUI) to fix the seed at the beginning of a batch run. don't forget that clear-all-and-initialize is called inside setup-in-batch-mode so the actual setting of the initial random seed needs to happen between this and the generation of seed-list