Vectorized optimization methods