How to FIX the value of a Variable

Hi,

I have a doubt about how to fix a variable. I have a table called Assignment (s,ss,a) and a variable M(a,p,t) that every time ss it’s different from s1 → M=0.

Table Assignment(s,ss,a)

a1 a2 a4 a5
s1.s4 0 1 0 0
s1.s2 1 0 0 0
s2.s1 0 0 1 0
s4.s1 0 0 0 1


So I’ve done this:

M.fx(a,p,t)$(Assignment(s,ss,a)=1 and ord(ss)1)=0;

But i have the following erros:

Erro 149: uncontrolled set entered as constant

Erro 154: sets for ‘ord’ is not controlled


Can you help please?


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/groups/opt_out.

Does anybody read the rules for this mailing list…: this question has been answered many times. Just search for “uncontrolled set”… before you ask a question like this.

Cheers

Renger





From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of DT
Sent: Friday, October 25, 2013 6:45 PM
To: gamsworld@googlegroups.com
Subject: How to FIX the value of a Variable



Hi,



I have a doubt about how to fix a variable. I have a table called Assignment (s,ss,a) and a variable M(a,p,t) that every time ss it’s different from s1 → M=0.



Table Assignment(s,ss,a)



a1 a2 a4 a5

s1.s4 0 1 0 0

s1.s2 1 0 0 0

s2.s1 0 0 1 0

s4.s1 0 0 0 1





So I’ve done this:



M.fx(a,p,t)$(Assignment(s,ss,a)=1 and ord(ss)1)=0;



But i have the following erros:



Erro 149: uncontrolled set entered as constant



Erro 154: sets for ‘ord’ is not controlled





Can you help please?


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/groups/opt_out.


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/groups/opt_out.