Starting new method : compute_gen_imbalance.

To be completed.