Hi,
I'm going to divide 6 into 5 non-negative integers that are less than or equal to 2.
Forexample, 6=0+0+1+2+3 ,1+2+3+0+0 ,6=2+2+2+0+0, 6=1+2+2+1+0 and so on.
How can I get all possible answer by gams?
Search found 3 matches
- 6 years ago
- Forum: Syntax
- Topic: gams programming problem
- Replies: 2
- Views: 3056
Re: gams programming problem
Hi,Renger
Thanks for your kind reply. I will try the rest by myself.
Regards,
Yin
Thanks for your kind reply. I will try the rest by myself.
Regards,
Yin
- 6 years ago
- Forum: Syntax
- Topic: gams programming problem
- Replies: 2
- Views: 3056
gams programming problem
Hi,ther is a gams problem,I need your help. Table Data (seq, com) A1 A2 A3 A4 A5 1 0 0 1 2 3 2 0 0 2 2 2 3 0 1 1 1 2 4 0 1 2 2 1 5 0 2 2 1 1 6 1 0 0 1 2 7 1 0 1 1 1 8 1 1 1 0 1 9 2 1 0 0 1 10 1 1 2 2 0 11 1 2 2 1 0 12 2 1 1 1 0 13 2 2 2 0 0 14 3 2 1 0 0 Operation logic: A total of 14 sequences, 5 co...