A two-steps dynamic demand estimation approach sequentially adjusting generations and distributions