合集-python数学建模第4章

摘要:import numpy as np import cvxpy as cp n = 2 x = cp.Variable(n,integer = True) A1 = np.array([[0,5], [6,2], [1,1]]) b1 = np.array([15,24,5]) A2 = np.ar 阅读全文
posted @ 2024-10-21 21:51 Tsuki* 阅读(34) 评论(0) 推荐(0)
摘要:import matplotlib.pyplot as plt import numpy as np import cvxpy as cp x = cp.Variable(6, pos=True) obj = cp.Minimize(x[5]) a1 = np.array([0.025, 0.015 阅读全文
posted @ 2024-10-22 16:31 Tsuki* 阅读(33) 评论(0) 推荐(0)