Dynamic economic dispatch in deregulated systems