First-Order Numerical Optimization Algorithm