error 149

hello everyone
I have two binaries x(i,j) and l(i,j) . i want to have L(i,j) values in reverse of x(i,j) .for example : if x(‘1’,‘1’)=e=1 then l(‘1’,‘1’)=0 or in reverse.if i write " x(i,j)-l(i,j)=e=1 " it gives me error 149 . how can i write a formula for such issue?

thank you very much


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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

\

Hi ,

"x(i,j)+l(i,j)=e=1 " should work!



Yonas



From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of Mohamad Dehghani
Sent: 19. mars 2013 09:21
To: gamsworld@googlegroups.com
Subject: error 149



hello everyone

I have two binaries x(i,j) and l(i,j) . i want to have L(i,j) values in reverse of x(i,j) .for example : if x(‘1’,‘1’)=e=1 then l(‘1’,‘1’)=0 or in reverse.if i write " x(i,j)-l(i,j)=e=1 " it gives me error 149 . how can i write a formula for such issue?



thank you very much


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?hl=en.
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

\

but it gives me error 149 this way since i and j are not constant. if i use " sum " it add them up and its not useful. is there any command which can be used for the equation you just mentioned so that it dont give error 149 ??




On Mar 19, 2013, at 4:32 PM, yonas@GMAIL wrote:

Hi ,
"x(i,j)+l(i,j)=e=1 " should work!

Yonas

From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of Mohamad Dehghani
Sent: 19. mars 2013 09:21
To: gamsworld@googlegroups.com
Subject: error 149

hello everyone
I have two binaries x(i,j) and l(i,j) . i want to have L(i,j) values in reverse of x(i,j) .for example : if x(‘1’,‘1’)=e=1 then l(‘1’,‘1’)=0 or in reverse.if i write " x(i,j)-l(i,j)=e=1 " it gives me error 149 . how can i write a formula for such issue?

thank you very much

To unsubscribe from this group and stop receiving emails from it, send an email togamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld?hl=en.
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 togamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld?hl=en.
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

\

Pues básicamente todos tus errores son por lo mismo “Uncontrolled set entered as constant”…Simplemente significa que hay algún set en tus ecuaciones para los que no le dijiste a gams qué quieres hacer con ellos.

Por ejemplo, en la ecuación

RECOLECCION… PRO(i)=e=sum((k,j),X(i,j,k));
gams sabe que k y j son parte de la sumatoria, pero no sabe qué hacer con i, porque ni la ecuación es para toda i, ni se suma en i.

Lo más probable es que tu ecuación correcta sería una de esas dos opciones



RECOLECCION(i)… PRO(i)=e=sum((k,j),X(i,j,k));

RECOLECCION… sum(i,PRO(i))=e=sum((k,j),X(i,j,k));



En el primer caso, es “para toda i”

En el segundo caso es la sumatoria de i.

En resumen, cada set incluido en la ecuación debe ser controlado por la sumatoria o por la ecuación en sí misma…

slds





MC. José Miguel Quesada Pérez
Departamento de Ingeniería Industrial

Tecnológico de Monterrey, Campus Querétaro

52 (442) 238 3100 Ext: 6349

Fax: (442) 238 32 70

Enlace intercampus: 8 0 776 6349





From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of u2901910@unimilitar.edu.co
Sent: domingo, 19 de mayo de 2013 11:12 a.m.
To: gamsworld@googlegroups.com
Subject: ERROR 149



HOLA, TENGO EL ERROR 149 PRESENTE EN VARIAS RESTRICCIONES, LO QUE NO ME PERMITE COMOILAR EL PROGRAMA, POR FAVOR AYUDA, ADJUNTOEL ARCHIVO


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?hl=en.
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

\

Hi Gabriel
You defined the equation over i,t and then use j,t in the equation itself.
Cheers
Renger

sent from my iPad

Am 10.04.2014 um 22:54 schrieb “Gabriel” :

Hi,

I don´t know how to handle with this error $149. I’m usually able to figure it out but I suppose ultimately I don’t get what the real problem is.

Sets

     i country / USA , ARG /
     t  periods  /1*400 /

Alias (i,j) ;

==========***=============

   EQY(i,t)..     Y(i,t) =E= C(i,t) +  E(i,t) - M(i,t) ;

   EQM(i,t)..     M(i,t) =E= mu(i,t)*Y(i,t)  ;

   EQE(i,t)..     E(i,t) =E= M(j,t) ;
                                  $149

Any help will be really appreciated,

Best Regards,

Gabriel


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.

Dear Renger,

Thanks by your comment. How can i fix the code so :

E(“ARG”, t) =E= M(“USA”, t)

and

E(“USA”, t) =E= M(“ARG”, t)

Best

G.


On Friday, April 11, 2014 2:23:26 AM UTC-3, Renger van Nieuwkoop wrote:

Hi Gabriel
You defined the equation over i,t and then use j,t in the equation itself.
Cheers
Renger

sent from my iPad

Am 10.04.2014 um 22:54 schrieb “Gabriel” :

Hi,

I don´t know how to handle with this error $149. I'm usually able to figure it out but I suppose ultimately I don't get what the real problem is.

Sets

         i country / USA , ARG /
         t  periods  /1*400 /

Alias    (i,j) ;

==========***=============

       EQY(i,t)..     Y(i,t) =E= C(i,t) +  E(i,t) - M(i,t) ;

       EQM(i,t)..     M(i,t) =E= mu(i,t)*Y(i,t)  ;

       EQE(i,t)..     E(i,t) =E= M(j,t) ;
                                      $149

Any help will be really appreciated,

Best Regards,

Gabriel

--
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.

Add these two equations :slight_smile:

Sent from my iPhone

Am 11.04.2014 um 19:08 schrieb “Gabriel” :

Dear Renger,

Thanks by your comment. How can i fix the code so :

E(“ARG”, t) =E= M(“USA”, t)

and

E(“USA”, t) =E= M(“ARG”, t)

Best

G.

On Friday, April 11, 2014 2:23:26 AM UTC-3, Renger van Nieuwkoop wrote:

Hi Gabriel
You defined the equation over i,t and then use j,t in the equation itself.
Cheers
Renger

sent from my iPad

Am 10.04.2014 um 22:54 schrieb "Gabriel" :
Hi,

I don´t know how to handle with this error $149. I'm usually able to figure it out but I suppose ultimately I don't get what the real problem is.

Sets

         i country / USA , ARG /
         t  periods  /1*400 /

Alias    (i,j) ;

==========***=============

       EQY(i,t)..     Y(i,t) =E= C(i,t) +  E(i,t) - M(i,t) ;

       EQM(i,t)..     M(i,t) =E= mu(i,t)*Y(i,t)  ;

       EQE(i,t)..     E(i,t) =E= M(j,t) ;
                                      $149

Any help will be really appreciated,

Best Regards,

Gabriel

--
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.


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.

:slight_smile: thx!

Sent from my iPhone

On 12/04/2014, at 01:37, Renger van Nieuwkoop wrote:

Add these two equations :slight_smile:

Sent from my iPhone

Am 11.04.2014 um 19:08 schrieb “Gabriel” :

Dear Renger,

Thanks by your comment. How can i fix the code so :

E(“ARG”, t) =E= M(“USA”, t)

and

E(“USA”, t) =E= M(“ARG”, t)

Best

G.

On Friday, April 11, 2014 2:23:26 AM UTC-3, Renger van Nieuwkoop wrote:

Hi Gabriel
You defined the equation over i,t and then use j,t in the equation itself.
Cheers
Renger

sent from my iPad

Am 10.04.2014 um 22:54 schrieb "Gabriel" :
Hi,

I don´t know how to handle with this error $149. I'm usually able to figure it out but I suppose ultimately I don't get what the real problem is.

Sets

         i country / USA , ARG /
         t  periods  /1*400 /

Alias    (i,j) ;

==========***=============

       EQY(i,t)..     Y(i,t) =E= C(i,t) +  E(i,t) - M(i,t) ;

       EQM(i,t)..     M(i,t) =E= mu(i,t)*Y(i,t)  ;

       EQE(i,t)..     E(i,t) =E= M(j,t) ;
                                      $149

Any help will be really appreciated,

Best Regards,

Gabriel

--
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.


You received this message because you are subscribed to a topic in the Google Groups “gamsworld” group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gamsworld/dZXb0wcdlCk/unsubscribe.
To unsubscribe from this group and all its topics, 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.

On Friday, April 11, 2014 5:52:42 PM UTC+4:30, Gabriel wrote:

Dear Renger,

Thanks by your comment. How can i fix the code so :

E(“ARG”, t) =E= M(“USA”, t)

and

E(“USA”, t) =E= M(“ARG”, t)


dear gabriel

you can use in the right side of the equation in the following form: E(i,t)=e=M(j,t)(ord(i)ord(j))




Best

G.


On Friday, April 11, 2014 2:23:26 AM UTC-3, Renger van Nieuwkoop wrote:

Hi Gabriel
You defined the equation over i,t and then use j,t in the equation itself.
Cheers
Renger

sent from my iPad

Am 10.04.2014 um 22:54 schrieb “Gabriel” :

    Hi,

    I don´t know how to handle with this error $149. I'm usually able to figure it out but I suppose ultimately I don't get what the real problem is.

    Sets

             i country / USA , ARG /
             t  periods  /1*400 /

    Alias    (i,j) ;

    ==========***=============

           EQY(i,t)..     Y(i,t) =E= C(i,t) +  E(i,t) - M(i,t) ;

           EQM(i,t)..     M(i,t) =E= mu(i,t)*Y(i,t)  ;

           EQE(i,t)..     E(i,t) =E= M(j,t) ;
                                          $149

    Any help will be really appreciated,

    Best Regards,

    Gabriel

    --
    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.

Dear Alie and Gabriel

This only works if you either change the equation from EQE(i,t)… to EQE(i,j,t)…

and if there are only two elements in the set i…

Cheers

Renger





From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of Alie Ranjbar
Sent: Monday, April 14, 2014 8:46 PM
To: gamsworld@googlegroups.com
Subject: Re: Error 149





On Friday, April 11, 2014 5:52:42 PM UTC+4:30, Gabriel wrote:

Dear Renger,



Thanks by your comment. How can i fix the code so :



E(“ARG”, t) =E= M(“USA”, t)



and



E(“USA”, t) =E= M(“ARG”, t)


dear gabriel

you can use in the right side of the equation in the following form: E(i,t)=e=M(j,t)(ord(i)ord(j))





Best



G.



On Friday, April 11, 2014 2:23:26 AM UTC-3, Renger van Nieuwkoop wrote:

Hi Gabriel

You defined the equation over i,t and then use j,t in the equation itself.

Cheers

Renger

sent from my iPad


Am 10.04.2014 um 22:54 schrieb “Gabriel” :

Hi,



I don´t know how to handle with this error $149. I’m usually able to figure it out but I suppose ultimately I don’t get what the real problem is.



Sets



i country / USA , ARG /

t periods /1400 /



Alias (i,j) ;



==========
**=============



EQY(i,t)… Y(i,t) =E= C(i,t) + E(i,t) - M(i,t) ;



EQM(i,t)… M(i,t) =E= mu(i,t)*Y(i,t) ;



EQE(i,t)… E(i,t) =E= M(j,t) ;

$149



Any help will be really appreciated,



Best Regards,



Gabriel


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.


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.

dear renger
thanks, but i can’t see the two equations which you suggest,
best regards

On Monday, April 14, 2014 11:46:01 PM UTC+4:30, Renger van Nieuwkoop wrote:

Dear Alie and Gabriel

This only works if you either change the equation from EQE(i,t)… to EQE(i,j,t)…

and if there are only two elements in the set i…

Cheers

Renger





From: gams...@googlegroups.com [mailto:gams...@googlegroups.com] On Behalf Of Alie Ranjbar
Sent: Monday, April 14, 2014 8:46 PM
To: gams...@googlegroups.com
Subject: Re: Error 149





On Friday, April 11, 2014 5:52:42 PM UTC+4:30, Gabriel wrote:

Dear Renger,



Thanks by your comment. How can i fix the code so :



E(“ARG”, t) =E= M(“USA”, t)



and



E(“USA”, t) =E= M(“ARG”, t)


dear gabriel

you can use in the right side of the equation in the following form: E(i,t)=e=M(j,t)(ord(i)ord(j))





Best



G.



On Friday, April 11, 2014 2:23:26 AM UTC-3, Renger van Nieuwkoop wrote:

Hi Gabriel

You defined the equation over i,t and then use j,t in the equation itself.

Cheers

Renger

sent from my iPad


Am 10.04.2014 um 22:54 schrieb “Gabriel” :

Hi,



I don´t know how to handle with this error $149. I’m usually able to figure it out but I suppose ultimately I don’t get what the real problem is.



Sets



i country / USA , ARG /

t periods /1400 /



Alias (i,j) ;



==========
**=============



EQY(i,t)… Y(i,t) =E= C(i,t) + E(i,t) - M(i,t) ;



EQM(i,t)… M(i,t) =E= mu(i,t)*Y(i,t) ;



EQE(i,t)… E(i,t) =E= M(j,t) ;

$149



Any help will be really appreciated,



Best Regards,



Gabriel


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+...@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.

You define the equation EQE(i,t) and then you just write

E(“ARG”, t) =E= M(“USA”, t)

And



E(“USA”, t) =E= M(“ARG”, t)

That’s all

Renger





From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of Alie Ranjbar
Sent: Dienstag, 15. April 2014 08:18
To: gamsworld@googlegroups.com
Subject: Re: Error 149



dear renger
thanks, but i can’t see the two equations which you suggest,
best regards

On Monday, April 14, 2014 11:46:01 PM UTC+4:30, Renger van Nieuwkoop wrote:

Dear Alie and Gabriel

This only works if you either change the equation from EQE(i,t)… to EQE(i,j,t)…

and if there are only two elements in the set i…

Cheers

Renger





From: gams...@googlegroups.com [mailto:gams...@googlegroups.com] On Behalf Of Alie Ranjbar
Sent: Monday, April 14, 2014 8:46 PM
To: gams...@googlegroups.com
Subject: Re: Error 149





On Friday, April 11, 2014 5:52:42 PM UTC+4:30, Gabriel wrote:

Dear Renger,



Thanks by your comment. How can i fix the code so :



E(“ARG”, t) =E= M(“USA”, t)



and



E(“USA”, t) =E= M(“ARG”, t)


dear gabriel

you can use in the right side of the equation in the following form: E(i,t)=e=M(j,t)(ord(i)ord(j))





Best



G.



On Friday, April 11, 2014 2:23:26 AM UTC-3, Renger van Nieuwkoop wrote:

Hi Gabriel

You defined the equation over i,t and then use j,t in the equation itself.

Cheers

Renger

sent from my iPad


Am 10.04.2014 um 22:54 schrieb “Gabriel” :

Hi,



I don´t know how to handle with this error $149. I’m usually able to figure it out but I suppose ultimately I don’t get what the real problem is.



Sets



i country / USA , ARG /

t periods /1400 /



Alias (i,j) ;



==========
**=============



EQY(i,t)… Y(i,t) =E= C(i,t) + E(i,t) - M(i,t) ;



EQM(i,t)… M(i,t) =E= mu(i,t)*Y(i,t) ;



EQE(i,t)… E(i,t) =E= M(j,t) ;

$149



Any help will be really appreciated,



Best Regards,



Gabriel


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+...@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.


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.