Neural Networks for Variational Problems in Engineering