摘要:AbstractThe gradient method is a well-known tool for solving convex optimization problems. This paper shows that the gradient method admits a Brayton-Moser and a port-Hamiltonian representation. In fact, its dynamics can be interpreted as a interconnection of multiple (port-Hamiltonian) passive systems, which plays a key role in proving asymptotic stability of the method. As an application to smart grids, this paper studies the problem of frequency regulation in power grids, while maximizing the social welfare. By applying the gradient method, we obtain a real-time dynamic pricing model in port-Hamiltonian form. By coupling with the port-Hamiltonian description of the physical network we obtain a closed-loop port-Hamiltonian system, which properties are exploited to prove asymptotic stability to the set of optimal points.