0
Ich erhalte diesen FehlerPython: Scipy: Brute-Optimierung
TypeError: objfunc() missing 1 required positional argument: 'q'
wenn ich versuche, um die Zielfunktion Brute zu optimieren.
Was mache ich falsch?
def objfunc(p,q):
return p**3-2**q;
from scipy.optimize import brute
grid = (slice(1, 300, 1),slice(1, 300, 1))
solution = brute(objfunc, grid, finish=None,full_output = True)
`enter code here`*TypeError: objfunc() missing 1 required positional argument: 'q'*'''
Vielen Dank!
Danke Ishant. –