Thank you for help.

It successfully solved my problem.

## Search found 10 matches

- 1 year ago
- Forum: Syntax
- Topic: Question about replacing two sets
- Replies:
**6** - Views:
**1283**

- 1 year ago
- Forum: Syntax
- Topic: Question about replacing two sets
- Replies:
**6** - Views:
**1283**

### Re: Question about replacing two sets

Yes, I need to map Data1(i) to Data2(j). The relationship between i and j are j=(i-1)*4-1. In fact, if the Data1 will sample 15 minutes in a day (it will have 96 points). The Data2 will take hourly data from Data1 (it will have 24 points). So, if I don't have the simple way to write code, It will be...

- 1 year ago
- Forum: Syntax
- Topic: Question about replacing two sets
- Replies:
**6** - Views:
**1283**

### Re: Question about replacing two sets

Sorry, I didn't describe the problem very well. My goal is to express Data_2 in a simpler way. The code "Data_2(j) = sum(i$DATA(j,i),Data_1(i))" is more simplified than "Data_2("j1") = Data_1("i1"),...etc". But the set DATA(j,i) need to set one by one. Is there a more simplified way to express it if...

- 1 year ago
- Forum: Syntax
- Topic: Question about replacing two sets
- Replies:
**6** - Views:
**1283**

### Question about replacing two sets

Hi all, I have a question I would like to ask. How to have a simplified conversion of DATA in two different Sets? For example, the GAMS codes as following: set i /i1 * i12/ j /j1 * j3/ ; parameter Data_1(i) / i1 5 i2 3 i3 0 i4 6 i5 7 i6 9 i7 0 i8 12 i9 0 i10 2 i11 8 i12 1 / Data_2(j) ; Data_2("j1") ...

- 1 year ago
- Forum: Modeling
- Topic: How to simplify the CCGT unit commitment model?
- Replies:
**7** - Views:
**1959**

### Re: How to simplify the CCGT unit commitment model?

Thank you for your suggestion.

I might try to change the CCGT structure in different symbols

or making a relation of CCGTs to simplify the model.

Thank a lot.

I might try to change the CCGT structure in different symbols

or making a relation of CCGTs to simplify the model.

Thank a lot.

- 1 year ago
- Forum: Modeling
- Topic: How to write the constraints in GAMS efficiently?
- Replies:
**1** - Views:
**559**

### How to write the constraints in GAMS efficiently?

Hi all, I posted "How to simplify the CCGT unit commitment model?" in GAMS World Modeling Topic, I want to ask another question about the CCGTs' extension. When I added the number of CCGTs to 2 or more, it will difficult to simplify "CCGT_excl" and "CCGT_trans_excl" constraints. For example, if I ha...

- 1 year ago
- Forum: Modeling
- Topic: How to simplify the CCGT unit commitment model?
- Replies:
**7** - Views:
**1959**

### Re: How to simplify the CCGT unit commitment model?

Hi all, I succeeded in simplifying "CCGT_trans", but another problem has arisen. When I added the model to 2 or more CCGT units, it was also difficult to simplify in "CCGT_excl" and "CCGT_trans_excl". For example, if I have 2 "CCGTs" (named CCGT1, CCGT2) in the model, it will become "CCGT1_excl", "C...

- 1 year ago
- Forum: Modeling
- Topic: How to simplify the CCGT unit commitment model?
- Replies:
**7** - Views:
**1959**

- 1 year ago
- Forum: Modeling
- Topic: How to simplify the CCGT unit commitment model?
- Replies:
**7** - Views:
**1959**

### Re: How to simplify the CCGT unit commitment model?

Thank you for your guidance. I have not yet fully understood the "Set syntax", but I first check the correctness of the revised program. So I did some test. According to the program you modified, only "CCGT_trans_excl(H)" should be incorrect. If I replace the original "CCGT_trans_excl(H)", the progr...

- 1 year ago
- Forum: Modeling
- Topic: How to simplify the CCGT unit commitment model?
- Replies:
**7** - Views:
**1959**

### How to simplify the CCGT unit commitment model?

Subject: How to simplify the CCGT unit commitment model? Hi all, I used GAMS to model the combined cycle gas turbine (CCGT) unit commitment problem ,but the model has too many rows in CCGT constraints. I tried to "GAMS SET" to simplify the model but failed. How to write the constraints in GAMS effic...