Sobolev gradient and conjugate-gradient methods for solving optimization problem