Insert the missing parts to minimize the equation, by using the TNC method:
from scipy.optimize import minimize
def eqn(x):
return x**2 + x + 2
mymin = @(8)(eqn, 0, @(12))
from scipy.optimize import minimize
def eqn(x):
return x**2 + x + 2
mymin = minimize(eqn, 0, method='TNC')
from scipy.optimize import minimize
def eqn(x):
return x**2 + x + 2
mymin = minimize(eqn, 0, method="TNC")
from scipy.optimize import minimize
def eqn(x):
return x**2 + x + 2
mymin = minimize(eqn, 0, method = 'TNC')
from scipy.optimize import minimize
def eqn(x):
return x**2 + x + 2
mymin = minimize(eqn, 0, method = "TNC")