使用均匀分布生成随机数据

时间:2019-06-23 09:18:40

标签: 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

0 个答案:

没有答案
相关问题