On Neural Network Algorithms for Solving Non- Linear Problems: Optimizations and Non-linear programming