Pyomo 4.4.1(VOTD)(CPython 2.7.12)を使用していますが、抽象モデルです。私が使用している場合: WARNING: DEPRECATION WARNING: the Model.create() method is deprecated. Call
Model.create_instance() to create a concrete instance f
に行列をインポートする:(文書matrix.pyの名前) N = 4
l = N
k = N
D = np.zeros((l,k))
for i in range(0,l):
for j in range(0,k):
if (i==j):
D[i,j] = 2
else:
D[i,j] = 0
D[0,0] = (2*