Search found 23 matches

by Luca
5 years ago
Forum: Syntax
Topic: Define set with integer scalar
Replies: 4
Views: 4347

Re: Define set with integer scalar

Thanks very much. But I have another problem. I would like to assign the dimension of the set throut a computation depending from another variable. Something like this: $if not setlocal output $setlocal local_var 10 scalar local_val_2 ; local_val_2 = %local_var% * 10 ; j a set /1*%local_var_2%/ Than...
by Luca
5 years ago
Forum: Syntax
Topic: Define set with integer scalar
Replies: 4
Views: 4347

Define set with integer scalar

Dear all,

I need to declare in gams a set like the following:
/1*set_dimension/
where set_dimension is a given in integer scalar. How can I do?

Thanks in advance. Best regards,
Luca
by Luca
6 years ago
Forum: Modeling
Topic: Assign set index the values of a parameter
Replies: 1
Views: 2295

Assign set index the values of a parameter

Dear all, I am new in the forum. I am using GAMS to model and solve a MIP. After the solve statement I would like to plot a function. I use the LIBINCLUDE Interface to Create Excel Charts from GAMS developed by T.F. Rutherford, see http://www.mpsge.org/xlchart/index.html. In order to plot the functi...