small problem in GAMS program but urgent PPPLZ

Hi every one i have a small problem in GAME

I want the next conditions to work when Q=1

  • wj = TTj
    sf1(j)…w(j)=G= TT(j)-P*(1-Q);

sf2(j)…w(j)=L= TT(j)+P*(1-Q);
mij=0
sf3(i,j)…m(i,j)=G= 0-P
(1-Q);

sf4(i,j)…m(i,j)=L= 0-P*(1-Q);
and I want these conditions to work when Q=0

mij=Tij
sf5(i,j)…m(i,j)=G=T(i,j)-P
Q;

sf6(i,j)…m(i,j)=L=T(i,j)+P*Q;

  • wj = 0
    sf7(j)…w(j)=G=0-P*Q;

sf8(j)…w(j)=L=0+P*Q;

I’m using MINLP to solve this program
and I got the massage of
Endogenous $-control operations not allowed

when i tried to put the conditions inside the constraint
like this

sf8(j) $ (Q ne 1)…w(j)=L=0+P*Q;

any help PLZ


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.

What is Q? binary variable ? or any positive variable??


On Sun, Dec 22, 2013 at 9:39 PM, andaluse wrote:

Hi every one i have a small problem in GAME

I want the next conditions to work when Q=1

  • wj = TTj
    sf1(j)…w(j)=G= TT(j)-P*(1-Q);

sf2(j)…w(j)=L= TT(j)+P*(1-Q);
mij=0
sf3(i,j)…m(i,j)=G= 0-P
(1-Q);

sf4(i,j)…m(i,j)=L= 0-P*(1-Q);
and I want these conditions to work when Q=0

mij=Tij
sf5(i,j)…m(i,j)=G=T(i,j)-P
Q;

sf6(i,j)…m(i,j)=L=T(i,j)+P*Q;

  • wj = 0
    sf7(j)…w(j)=G=0-P*Q;

sf8(j)…w(j)=L=0+P*Q;

I’m using MINLP to solve this program
and I got the massage of
Endogenous $-control operations not allowed

when i tried to put the conditions inside the constraint
like this

sf8(j) $ (Q ne 1)…w(j)=L=0+P*Q;

any help PLZ


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.



\

Regards,
Owais Nooruddin

+358465700556


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.

Q is a binary variable

On Monday, December 23, 2013 5:04:54 PM UTC+4, Owais Nooruddin wrote:

What is Q? binary variable ? or any positive variable??


On Sun, Dec 22, 2013 at 9:39 PM, andaluse wrote:

Hi every one i have a small problem in GAME

I want the next conditions to work when Q=1

  • wj = TTj
    sf1(j)…w(j)=G= TT(j)-P*(1-Q);

sf2(j)…w(j)=L= TT(j)+P*(1-Q);
mij=0
sf3(i,j)…m(i,j)=G= 0-P
(1-Q);

sf4(i,j)…m(i,j)=L= 0-P*(1-Q);
and I want these conditions to work when Q=0

mij=Tij
sf5(i,j)…m(i,j)=G=T(i,j)-P
Q;

sf6(i,j)…m(i,j)=L=T(i,j)+P*Q;

  • wj = 0
    sf7(j)…w(j)=G=0-P*Q;

sf8(j)…w(j)=L=0+P*Q;

I’m using MINLP to solve this program
and I got the massage of
Endogenous $-control operations not allowed

when i tried to put the conditions inside the constraint
like this

sf8(j) $ (Q ne 1)…w(j)=L=0+P*Q;

any help PLZ


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



\

Regards,
Owais Nooruddin

+358465700556


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.

I am not getting why you are using this formulation because it can be easily solved by simple equation like
W(j)=L=TT(j)Q
W(j)=G=TT(j)Q
m(i,j)=L=T(i,j)
(1-Q)
m(i,j)=G=T(i,j)
(1-Q)

And this is totally wrong

sf8(j) $ (Q ne 1)…w(j)=L=0+P*Q;

$ (Q ne 1) You can not define condition for variable here like this!!!


But if TT(j) has some fixed lower limit let say if you have already defined some where
TT.LO(j)=5;
or
T.LO(i,j)=10;

Then do this Big M formulation like

W(j)=L=TT(j)+(1-Q)*BIGM
W(j)=G=TT(j)-(1-Q)*BIGM
m(i,j)=L=T(i,j)+(1-Q)*BIGM
m(i,j)=G=T(i,j)-(1-Q)*BIGM


Check 15.1.2 Logical Conditions, Chapter 15 http://agecon2.tamu.edu/people/faculty/mccarl-bruce/mccspr/thebook.pdf





On Wed, Jan 1, 2014 at 1:23 PM, andaluse wrote:

Q is a binary variable


On Monday, December 23, 2013 5:04:54 PM UTC+4, Owais Nooruddin wrote:

What is Q? binary variable ? or any positive variable??


On Sun, Dec 22, 2013 at 9:39 PM, andaluse wrote:

Hi every one i have a small problem in GAME

I want the next conditions to work when Q=1

  • wj = TTj
    sf1(j)…w(j)=G= TT(j)-P*(1-Q);

sf2(j)…w(j)=L= TT(j)+P*(1-Q);
mij=0
sf3(i,j)…m(i,j)=G= 0-P
(1-Q);

sf4(i,j)…m(i,j)=L= 0-P*(1-Q);
and I want these conditions to work when Q=0

mij=Tij
sf5(i,j)…m(i,j)=G=T(i,j)-P
Q;

sf6(i,j)…m(i,j)=L=T(i,j)+P*Q;

  • wj = 0
    sf7(j)…w(j)=G=0-P*Q;

sf8(j)…w(j)=L=0+P*Q;

I’m using MINLP to solve this program
and I got the massage of
Endogenous $-control operations not allowed

when i tried to put the conditions inside the constraint
like this

sf8(j) $ (Q ne 1)…w(j)=L=0+P*Q;

any help PLZ


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



\

Regards,
Owais Nooruddin

+358465700556


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.



\

Regards,
Owais Nooruddin

+358465700556


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.