We consider the optimal control problem for phase-field equations with dyna
mic boundary conditions. The purposes of this paper are to find heat source
s on the domain and the boundary which attain the minimum value for some ty
pical nonlinear cost function, and to prove that by using the descent metho
d we can find the local minimum solution for the optimal problem. In the la
st section some graphs obtained by numerical simulation are shown.