Dynamic optimization of long term primary electric distribution network investments based on planning metrics.