Search found 118 matches

by Manassaldi
7 years ago
Forum: Syntax
Topic: how to get any element from a set
Replies: 4
Views: 12774

Re: how to get any element from a set

Hi,
For example, if yours variable is H(A) the first element corresponds to H('a1')
Bye
by Manassaldi
7 years ago
Forum: Archive Google Group
Topic: INVERSE MATRIX
Replies: 1
Views: 3786

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
by Manassaldi
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.
by Manassaldi
7 years ago
Forum: Syntax
Topic: Round down to the next integer
Replies: 1
Views: 8221

Re: Round down to the next integer

ceil(x) returns the smallest integer number greater than or equal to x.
Bye
by Manassaldi
7 years ago
Forum: Syntax
Topic: Round down to the next integer
Replies: 1
Views: 8221

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
by Manassaldi
7 years ago
Forum: Syntax
Topic: if else syntax
Replies: 2
Views: 6915

Re: if else syntax

Hi,
"wind energy production" and "wind energy demand" are variables?
by Manassaldi
7 years ago
Forum: Modeling
Topic: How to adjust a Matrix in the process of solving a model.
Replies: 3
Views: 4583

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...
by Manassaldi
7 years ago
Forum: Modeling
Topic: How to adjust a Matrix in the process of solving a model.
Replies: 3
Views: 4583

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?