Search found 4 matches

by celebpanama
3 weeks ago
Forum: Modeling
Topic: How can I random the consecutive number?
Replies: 5
Views: 1591

Re: How can I random the consecutive number?

Sorry to disturb you again. It seems that the patterns in every iteration are fixed. How the same pattern baesd on above conditions will change if I click run every time and set only 1 iteration? I attempt to solve but I am not sure whether it involves in seed or anything? Thank you. set t /1*10/, i...
by celebpanama
3 weeks ago
Forum: Modeling
Topic: How can I random the consecutive number?
Replies: 5
Views: 1591

Re: How can I random the consecutive number?

It was as I expected. Thank you very much.
by celebpanama
3 weeks ago
Forum: Modeling
Topic: How can I random the consecutive number?
Replies: 5
Views: 1591

Re: How can I random the consecutive number?

Thank you very much. I have some question. How GAMS can start 1 from r1 at some column and 1 end up with the last row ( r10 ) in every iteration? As shown in the table below, 1 can start in row 1 (r1) both c2 and c6, and 1 end at row 10 (r10) in c5. c1 c2 c3 c4 c5 c6 r1 0 1 0 0 0 1 r2 0 1 0 0 0 1 r3...
by celebpanama
3 weeks ago
Forum: Modeling
Topic: How can I random the consecutive number?
Replies: 5
Views: 1591

How can I random the consecutive number?

I would like to random the consecutive 1 for 4 times in each column j. My target is like, for example, i/j 1 2 3 4 5 6 1 0 1 0 0 0 1 2 0 1 0 0 0 1 3 0 1 1 0 0 1 4 1 1 1 0 0 1 5 1 0 1 0 1 0 6 1 0 1 0 1 0 7 1 0 0 0 1 0 8 0 0 0 0 1 0 9 0 0 0 0 0 0 10 0 0 0 0 0 0 Thank you for the recommendation. Right ...