Explain the mathematical formulation of a loss function you designed to solve a specific optimization problem in your past work.