How to define a set under multidimensional set,

Hi everyone,
I got a question about defining a parameter under a multidimensional set. To clarify my statement, look at the following example,
sets
G /g1g4/
N /n1
n10/
ji(N,N)
;
alias(N,NP)
;
parameters
zFIX(G,ji)
;

This gives me an error. Any help really appreciated.
Thanks,
Omid


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.

Hi Omid



You have to define zFIX over G,N,N. Afterwards you can use it just for ji:



set

G /g1*g4/

N /n1*n10/

ji(N,N) /n1.n2/

;





alias(N,NP)

;

parameters

zFIX(G,N,NP);



zFIX(G,ji) = 1;

display zFIX;



Cheers

Renger



Von: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] Im Auftrag von omid ziaee
Gesendet: Samstag, 10. Oktober 2015 23:40
An: gamsworld
Betreff: How to define a set under multidimensional set,



Hi everyone,
I got a question about defining a parameter under a multidimensional set. To clarify my statement, look at the following example,
sets
G /g1g4/
N /n1
n10/
ji(N,N)
;
alias(N,NP)
;
parameters
zFIX(G,ji)
;

This gives me an error. Any help really appreciated.
Thanks,
Omid


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.


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 a lot. I really appreciate your help.

On Monday, October 12, 2015 at 3:53:52 AM UTC-5, Renger van Nieuwkoop wrote:

Hi Omid



You have to define zFIX over G,N,N. Afterwards you can use it just for ji:



set

G /g1*g4/

N /n1*n10/

ji(N,N) /n1.n2/

;





alias(N,NP)

;

parameters

zFIX(G,N,NP);



zFIX(G,ji) = 1;

display zFIX;



Cheers

Renger



Von: gams...@googlegroups.com [mailto:gams...@googlegroups.com] Im Auftrag von omid ziaee
Gesendet: Samstag, 10. Oktober 2015 23:40
An: gamsworld
Betreff: How to define a set under multidimensional set,



Hi everyone,
I got a question about defining a parameter under a multidimensional set. To clarify my statement, look at the following example,
sets
G /g1g4/
N /n1
n10/
ji(N,N)
;
alias(N,NP)
;
parameters
zFIX(G,ji)
;

This gives me an error. Any help really appreciated.
Thanks,
Omid


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


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.