How can I turn
def square_error(f1,f2, u1,v1,sigu1,sigv1,rho1, u2,v2,sigu2,sigv2,rho2, u3,v3,sigu3,sigv3,rho3):
into:
def square_error(x):
#     x = [0.2,0.5,
#           1,1,1,1,0.3,
#           1,1,1,1,0.3,
#           1,1,1,1,0.3],
    f1,f2, u1,v1,sigu1,sigv1,rho1, u2,v2,sigu2,sigv2,rho2, u3,v3,sigu3,sigv3,rho3 = x
The scipy.minimize function only allow 1 argument for the target function, so I need to turn the variables into a single argument.
 
     
    