To minimize total error, gradient descent can be used to change each weight in proportion to its derivative with respect to the error, provided the non-linear activation functions are differentiable.
The Boltzmann machine can be thought of as a noisy Hopfield network.