I want to do something like the below in pyomo when I create variable x. for i in range(C):. for j in range(T):. if cts[I][j]==1: model.x= Var(model.i, ...
確定! 回上一頁