Introduction to numerical methods for variational problems. (2019)