标签: gams-math
是否可能具有randP(j)之类的参数,使得randP的.5元素随机选择,然后这些元素填充random-int,其他元素的值为0。
set j/1*50/; parameter randP(j); *select 5 elements (5 location j) randomly *fill 5 locations by random integer value *fill other locations by 0