Erasing a parameter, rho(i,j) and turning it into a variable rho(i,j) inside the same program

The Kill and Clear command do nto work.

I need to write something like

parameter rho(ij);

rho(i,j) = 3;

" Kill rho" (this is the command i need, to erase all of this from the program, not just its values)

variable rho(i,j);

rho(i,j).l = 7;



Thanks in advance

Joao


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.

Joao,

Sorry, but you cannot do that in GAMS. GAMS does not allow you to change the symbol type or the dimensionality of a symbol that is already known by GAMS.

Michael Bussieck - GAMSWorld Coordinator

On Tuesday, September 23, 2014 5:14:36 AM UTC-4, João Miguel Ejarque wrote:


The Kill and Clear command do nto work.

I need to write something like

parameter rho(ij);

rho(i,j) = 3;

" Kill rho" (this is the command i need, to erase all of this from the program, not just its values)

variable rho(i,j);

rho(i,j).l = 7;



Thanks in advance

Joao


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.

Thanks Michael.

I thought so.

J


Den tirsdag den 23. september 2014 11.38.05 UTC+2 skrev Michael Bussieck:

Joao,

Sorry, but you cannot do that in GAMS. GAMS does not allow you to change the symbol type or the dimensionality of a symbol that is already known by GAMS.

Michael Bussieck - GAMSWorld Coordinator

On Tuesday, September 23, 2014 5:14:36 AM UTC-4, João Miguel Ejarque wrote:


The Kill and Clear command do nto work.

I need to write something like

parameter rho(ij);

rho(i,j) = 3;

" Kill rho" (this is the command i need, to erase all of this from the program, not just its values)

variable rho(i,j);

rho(i,j).l = 7;



Thanks in advance

Joao


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.