SciPy - Advanced Optimization
What will be the output of this code snippet?
from scipy.optimize import milp
c = [3, 1]
bounds = [(0, None), (0, None)]
integrality = [1, 1]
result = milp(c, bounds=bounds, integrality=integrality)
print(result.x)What will be the output of this code snippet?
from scipy.optimize import milp
c = [3, 1]
bounds = [(0, None), (0, None)]
integrality = [1, 1]
result = milp(c, bounds=bounds, integrality=integrality)
print(result.x)15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions