SciPy - Advanced Optimization
Which of the following is the correct way to specify integer variables in scipy.optimize.linprog?
from scipy.optimize import linprog
result = linprog(c, A_ub=A, b_ub=b, integrality=...)Which of the following is the correct way to specify integer variables in scipy.optimize.linprog?
from scipy.optimize import linprog
result = linprog(c, A_ub=A, b_ub=b, integrality=...)integrality argument takes a list or array indicating which variables are integers (1) or continuous (0).15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions