On solution of optimization problems by Hopfield Circuits