Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试从 GAMS 中的矩阵中提取数组。例如,我想要一个只有矩阵的一列(或一行)的数组。有可能做到吗?
当然。
Sets i /i1*i100/ j /j1*j100/ ; parameter a(i,j); a(i,j) = uniform(0,1); parameter u(i); u(i) = a(i,'j25'); parameter v(j); v(j) = a('i37',j);