Apply gradient descent, constrained optimization, convexity, regularization, and numerical methods to fit models reliably.