## Search found 9 matches

5 months ago
Forum: Syntax
Topic: row of sets
Replies: 0
Views: 555

### row of sets

Hello.
I get a multi-dimension set and I hope to write the row of the set.
how to describe the red part?
Thanks
5 months ago
Forum: Syntax
Topic: how to write the row of sets
Replies: 11
Views: 1171

### Re: remove the duplicate item

Hello, everyone.
Too many errors appear in my code.
j is set and belongs to b and c, and b and c is multi-dimension sets.
could you help me? I have a really difficulty for this problem.
thank you.
5 months ago
Forum: Syntax
Topic: how to write the row of sets
Replies: 11
Views: 1171

### Re: remove the duplicate item

Hi,Renger.
I have solved the problem of the equation. but now another problem exists in my case.
I want to write a multi-dimension set element is greater than 0, the set is got from the mapping between the set.
regards.
5 months ago
Forum: Syntax
Topic: how to write the row of sets
Replies: 11
Views: 1171

### Re: remove the duplicate item

Hi Renger,
I try to modify the code as your advice, but the errors still exist.
1.png (6.69 KiB) Viewed 765 times
2.png (7.93 KiB) Viewed 765 times
5 months ago
Forum: Syntax
Topic: how to write the row of sets
Replies: 11
Views: 1171

### Re: remove the duplicate item

Hi Renger, Thank you for your reply. in my case, I want to express the relationship between the node and its parent nodes. In previous work, I have got the matrix like fig 1.now I need to write the constraint between the node and its parent nodes, for example, in fig 1, I want to give the constraint...
5 months ago
Forum: Syntax
Topic: how to write the row of sets
Replies: 11
Views: 1171

### Re: remove the duplicate item

Hi,
Now I have a question about the row of sets.
I get a set-a like fig11, now I need to use the result of set a and set b, but how can I express the row of a and b?
I try it like fig14 but it is wrong, could you help me?
thanks.
13.png (6.33 KiB) Viewed 834 times
12.png (5.88 KiB) Viewed 834 times
5 months ago
Forum: Syntax
Topic: how to write the row of sets
Replies: 11
Views: 1171

### Re: remove the duplicate item

Hi, everyone.
The last email maybe has an error and I want to realize the following aim. But no idea in my mind.
,
how can I control the sign B.
thanks again.
5 months ago
Forum: Syntax
Topic: how to write the row of sets
Replies: 11
Views: 1171

### Re: remove the duplicate item

Hi, Thank you so much for your help. Maybe a misunderstand existing in my text, I try it as your advice, the correct answer is b(j,i,k)\$(ord(i) = ord(k))=no;it can realize my target. Due to I am a beginner and no experience in GAMS, I have other questions in my study. How can realize the following a...
5 months ago
Forum: Syntax
Topic: how to write the row of sets
Replies: 11
Views: 1171

### how to write the row of sets

Hi, everyone.
I want to express the row of a set in my code.for example, I get a multi-dimension set and I hope to write the row of the set.
I want to write the red part.
thank you so much