Closed samthiriot closed 6 years ago
as a first step, added a verification before freezing the machine
> case <- matching.generate(solved, sample_dwellings, sample_households, verbose=TRUE)
starting generation
Error in matching.generate(solved, sample_dwellings, sample_households, :
you are trying to generate a population of more than 1 million of individuals: case$gen$hat.nA=50000, case$gen$hat.nB=7002050000 .
That probably does not make much sense. It also would likely fail and freeze your system.
If you really want to do it, add parameter force=TRUE and cross fingers.
>
modified the computation of errors so the solutions with large counts of entities are not prefered in case another solution is available
When working on a case with many empty cells in frequency, some parameters lead to the generation of very big populations.
To reproduce the case, using INSEE data: