Search found 6 matches
- 3 years ago
- Forum: Syntax
- Topic: Invert af multidimensional matrix
- Replies: 0
- Views: 2063
Invert af multidimensional matrix
Consider the following matrix for 2000 and 2001, respectively: Set i /i1*i2 / t /2000,2001/; Alias (i,j); parameters a(t,i,j) / 2000. i1. i1 2 2000. i1. i2 0 2000. i2. i1 0.272727 2000. i2. i2 2 2001. i1. i1 2 2001. i1. i2 0 2001. i2. i1 0.5 2001. i2. i2 2/; Firstly, I want to invert the 2000 matrix...
- 3 years ago
- Forum: Modeling
- Topic: Solving equations iteratively (faster) in GAMS
- Replies: 0
- Views: 2190
Solving equations iteratively (faster) in GAMS
I am doing a Gravity model in GAMS to estimate the trade between countries. That is, I want to do the following equation: https://i.stack.imgur.com/h2nVq.png Where A_i^m and B_j^m are unknown. They are calculated in the following way: https://i.stack.imgur.com/Ceom8.png That is, they should be solve...
- 3 years ago
- Forum: Bugs
- Topic: GAMS Studio (Not responding)
- Replies: 2
- Views: 8101
Re: GAMS Studio (Not responding)
Perfect! Thanks for your answer.
- 3 years ago
- Forum: Bugs
- Topic: GAMS Studio (Not responding)
- Replies: 2
- Views: 8101
GAMS Studio (Not responding)
I was running an optimization problem, but I stopped it before it was finish running. However, after I stopped my GAMS program does not respond. Each time when I open the GAMS program, it just open my .lst file, but I can not click anywhere on the program (it is not responding). Is it possible that ...
- 3 years ago
- Forum: Syntax
- Topic: Change dimension
- Replies: 3
- Views: 6422
Re: Change dimension
Perfect! Thanks a lot! However, I will only have two records in test2. It seems like GAMS automatically remove: HUD15 .IUD15 15 because there is already a record with the same dimension - that is: HUD15 .IUD15 20 Is it possible - within the loop - to sum the value if the dimension is going to be the...
- 3 years ago
- Forum: Syntax
- Topic: Change dimension
- Replies: 3
- Views: 6422
Change dimension
Consider the following parameter: parameters test(HUD,IUD) / HUD02 .IUD15 15 HUD10 .IUD15 20 HUD10 .IUD20 30 /; I want to replace the numbers in first dimension (HUD) with the numbers from the second dimension (IUD). That is, if "IUD" is "IUD15", then "HUD" should be &q...