Mapping Numerical Optimization to Parallel Hardware