Control method of flow of energy in e.g. smart electrical power network involves repeating shedding and shifting of optimal amount of energy demand for user, until convergence of respective total energy procurement costs, is achieved.