摘要: 习题6.7代码 import numpy as np import pandas as pd import cvxpy as cp import networkx as nx import matplotlib.pyplot as plt df = pd.read_excel('F:\python数 阅读全文
posted @ 2024-10-21 23:38 等我刷把宗师 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 习题6.5代码 import numpy as np import cvxpy as cp import networkx as nx n = 6 A=np.zeros((n,n)) A[0,[1,2]]=[2,7] A[1,2:5]=[4,6,8] A[2,[3,4]]=[1,3] A[3,[4, 阅读全文
posted @ 2024-10-21 23:29 等我刷把宗师 阅读(5) 评论(0) 推荐(0) 编辑