Dear all,

being very new to GAMS, chances are this is a silly and badly

formulated question:

I am trying to implement the grid procedures described in this paper

http://imo.rz.tu-bs.de/~bussieck/AlMiTex.pdf ; more specifically the

Gauss-Seidel and Jacobi decomposition methods.

A problem is that I have a large set of variables with different

names, eg, not just a set x(i) with i large, but many variables x(i),

y(i),…

This makes it cumbersome to set initial values for each variable

separately, and change which variables are fixed, and adjust upper and

lower bounds for all variables in the model.

Moreover, I will have colleagues will be wanting to add and remove

variables from this model, which then will need to be done in many

more places.

My question put simply: is there a way I can set a value for all

variables in a model at the same time, without naming them?

Alternatively, is there a way to loop over all variables which are

contained in a model?

many thanks in advance,

Damiaan

\

I find it convenient in these cases to use an include or a batinclude file, others do this via loading data from a gdx file.

Michael Ferris

On Sep 26, 2012, at 12:11 PM, Damiaan Persyn wrote:

Dear all,

being very new to GAMS, chances are this is a silly and badly

formulated question:

I am trying to implement the grid procedures described in this paper

http://imo.rz.tu-bs.de/~bussieck/AlMiTex.pdf ; more specifically the

Gauss-Seidel and Jacobi decomposition methods.

A problem is that I have a large set of variables with different

names, eg, not just a set x(i) with i large, but many variables x(i),

y(i),…

This makes it cumbersome to set initial values for each variable

separately, and change which variables are fixed, and adjust upper and

lower bounds for all variables in the model.

Moreover, I will have colleagues will be wanting to add and remove

variables from this model, which then will need to be done in many

more places.

My question put simply: is there a way I can set a value for all

variables in a model at the same time, without naming them?

Alternatively, is there a way to loop over all variables which are

contained in a model?

many thanks in advance,

Damiaan

–

To post to this group, send email to gamsworld@googlegroups.com.

To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

\