MRC-CSO-SPHSU / LoneParentsModel.jl

An initial implementation of an ABM for social and child care
0 stars 4 forks source link

Develop #108

Closed mhinsch closed 2 years ago

mhinsch commented 2 years ago

Marriage is basically done (save a few parameter issues). I've also simplified findNewHouse etc. a bit and added memoization.

mhinsch commented 2 years ago

Thanks, good points. Concerning the data argument: In general, if that works with MA, I would prefer anyway to use a model argument (as I did in marriage!) that then also contains the towns and houses. That would make the interface across transition functions uniform and would make it easier to separate the scheduling from the simulation.

AtiyahElsheikh commented 2 years ago

Probably the best solution would be to have several alaises API

doX!(modelType,...) = doX!(modelType.arg1,modelType.arg2,...)