I would like to minimize x and y in function f using least square (Levenberg-Marquardt). In Python I can use lmfit like follows
params = lmfit.Parameters()
params.add('x', value=0, min=-np.pi, max=np.pi)
params.add('y', value=0.0, min=-0.25, max=0.25)
# Least square is the default method
x,y = lmfit.minimize(f, params)
Is there any equivalent/what is the best way to achieve this in Julia?