Neural Network Methods for Optimization Problems