Search found 9 matches

by zhiping fan
3 years ago
Forum: Syntax
Topic: row of sets
Replies: 0
Views: 1720

row of sets

Hello.
I get a multi-dimension set and I hope to write the row of the set.
1.png
how to describe the red part?
Thanks
by zhiping fan
3 years ago
Forum: Syntax
Topic: how to write the row of sets
Replies: 11
Views: 5907

Re: remove the duplicate item

Hello, everyone.
Too many errors appear in my code.
I have to ask for advice.
1.png
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.
by zhiping fan
3 years ago
Forum: Syntax
Topic: how to write the row of sets
Replies: 11
Views: 5907

Re: remove the duplicate item

Hi,Renger.
Thanks so much for your advice.
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.
11.png
12.png
regards.
by zhiping fan
3 years ago
Forum: Syntax
Topic: how to write the row of sets
Replies: 11
Views: 5907

Re: remove the duplicate item

Hi Renger,
Thank you for your reply.
I try to modify the code as your advice, but the errors still exist.
1.png
1.png (6.69 KiB) Viewed 4355 times
2.png
2.png (7.93 KiB) Viewed 4355 times
3.png
by zhiping fan
3 years ago
Forum: Syntax
Topic: how to write the row of sets
Replies: 11
Views: 5907

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...
by zhiping fan
3 years ago
Forum: Syntax
Topic: how to write the row of sets
Replies: 11
Views: 5907

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.
11.png
13.png
13.png (6.33 KiB) Viewed 4424 times
12.png
12.png (5.88 KiB) Viewed 4424 times
14.png
by zhiping fan
3 years ago
Forum: Syntax
Topic: how to write the row of sets
Replies: 11
Views: 5907

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.
1.png
2.png
,
how can I control the sign B.
thanks again.
by zhiping fan
3 years ago
Forum: Syntax
Topic: how to write the row of sets
Replies: 11
Views: 5907

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...
by zhiping fan
3 years ago
Forum: Syntax
Topic: how to write the row of sets
Replies: 11
Views: 5907

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.
1.png
I want to write the red part.
thank you so much