I\'m trying to use scipy\'s optimizer.minimize function but I\'m unable to figure out exact way to pass args to objective function. I have following code which according to
Change args=(parameter) to args=(parameter,), so args is a tuple containing a single element.
args=(parameter) is equivalent to args=parameter. When you do that, each element of parameter is passed as a separate argument to your objective function.