I want to solve nonlinear optimization. I find its solution by using Brent's method. in the case that there is no regularization. Since the derivative is not used in this method, can anyone guide me on how I can solve the problem by considering regularization? Is there any way?