Hi,
For example, if yours variable is H(A) the first element corresponds to H('a1')
Bye
Search found 118 matches
- 7 years ago
- Forum: Syntax
- Topic: how to get any element from a set
- Replies: 4
- Views: 12752
- 7 years ago
- Forum: Archive Google Group
- Topic: INVERSE MATRIX
- Replies: 1
- Views: 3779
Re: INVERSE MATRIX
Hi, you can try this:
https://www.gams.com/latest/docs/usergu ... invert.htm
Or do it manually using GAMS statements
Good luck
https://www.gams.com/latest/docs/usergu ... invert.htm
Or do it manually using GAMS statements
Good luck
- 7 years ago
- Forum: Modeling
- Topic: how to control the number of variables
- Replies: 1
- Views: 4019
Re: how to control the number of variables
Hi, the final number of variables depends on the constraints.
- 7 years ago
- Forum: Syntax
- Topic: Round down to the next integer
- Replies: 1
- Views: 8220
Re: Round down to the next integer
ceil(x) returns the smallest integer number greater than or equal to x.
Bye
Bye
- 7 years ago
- Forum: Syntax
- Topic: Round down to the next integer
- Replies: 1
- Views: 8220
Re: Round down to the next integer
Hi,
you can use the same command, this function is valid only for DNLP models
floor(x) returns the greatest integer number less than or equal to x
best regards
you can use the same command, this function is valid only for DNLP models
floor(x) returns the greatest integer number less than or equal to x
best regards
- 7 years ago
- Forum: Syntax
- Topic: if else syntax
- Replies: 2
- Views: 6911
Re: if else syntax
Hi,
"wind energy production" and "wind energy demand" are variables?
"wind energy production" and "wind energy demand" are variables?
- 7 years ago
- Forum: Modeling
- Topic: How to adjust a Matrix in the process of solving a model.
- Replies: 3
- Views: 4580
Re: How to adjust a Matrix in the process of solving a model.
I think that a column assignment can work. Try this: sets m /1*4/ n /1*2/ p m-n /1*2/ ; alias(n,np) table A(n,m) 1 2 3 4 1 1 4 7 10 2 2 5 8 11 ; binary variable x(m) y(m,n) column m of matrix A is assigned to column n of matrix B z(m,p) column m of matrix A is assigned to column p of matrix C ; Vari...
- 7 years ago
- Forum: Modeling
- Topic: How to adjust a Matrix in the process of solving a model.
- Replies: 3
- Views: 4580
Re: How to adjust a Matrix in the process of solving a model.
Hi,
Is this process done after a resolution?
Or should they be model constraints?
Is this process done after a resolution?
Or should they be model constraints?