Optimization with Artificial Neural Network Systems: A Mapping Principle and a Comparison to Gradient Based Methods