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 中有一组“代码”:
SET codes /aaa, aab, aac, aad, aae/;
那么我怎么能说在 GAMS 的集合中获得第三个元素(或任何元素)?
您是否正在寻找这样的“ord”运算符?
SET codes /aaa, aab, aac, aad, aae/ selected(codes); selected(codes) = ord(codes)=3; Display selected;