DOLLAR $-Restrictions

hi guys
i have a question that i coudnt find its answer for a long time.
please answer me if you know;
im working on MRCPCP(multi mode resource constrained project scheduling problem) and i want to code my problem with GAMS.
but i dont know how can i specify upper and lowe bound for summation over time. because this summation must be overt " t "and for every activity this " t " must be from “EF(j)” to “LF(j)”. i have problem to code it in GAMS. please help me if you know. thank you
AZAD AMIRI
best regards


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.

\

hello
Dear Azad, maybe the easiest solution for you problem is to define a parameters contain the value of earliest and latest time for each job in each t and then use $ in your summation over that parameters.

cheer,



On Tue, Apr 16, 2013 at 5:38 PM, Azad Amiri wrote:

hi guys
i have a question that i coudnt find its answer for a long time.
please answer me if you know;
im working on MRCPCP(multi mode resource constrained project scheduling problem) and i want to code my problem with GAMS.
but i dont know how can i specify upper and lowe bound for summation over time. because this summation must be overt " t "and for every activity this " t " must be from “EF(j)” to “LF(j)”. i have problem to code it in GAMS. please help me if you know. thank you
AZAD AMIRI
best regards


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.





\

Babak Saleck Pay
M.Sc
Socio-Economic System Engineering
Group of Industrial Engineering
University of Tehran
Tehran,Iran
www.babaksp.com


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.

\

Hello Azad Amiri,

did you solve your problem with MRCPCP?

I work for 6 years with this problem and some others variations too. If you have some aditional problem, you can contact me.

I use this to plan the manufacturing of complex products using GAMS/CPLEX of real world applications.

I already implemented this constraint you are asking for help. What kink of study are you doing?

Best Regards,
Jack


2013/4/16 Azad Amiri

hi guys
i have a question that i coudnt find its answer for a long time.
please answer me if you know;
im working on MRCPCP(multi mode resource constrained project scheduling problem) and i want to code my problem with GAMS.
but i dont know how can i specify upper and lowe bound for summation over time. because this summation must be overt " t "and for every activity this " t " must be from “EF(j)” to “LF(j)”. i have problem to code it in GAMS. please help me if you know. thank you
AZAD AMIRI
best regards


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 GAMSWORLD
HI SIR BUSH
i’m working on multi skill project scheduling problem(mspsp).i’m confused because i can’t code precedece relations constrains.can you help me?


best regards


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.

\

Hello Sina,

did you solve your problem?

If you are using the literature notation, see the code bellow:

sum(T$((ord(T) ge r(H)) and (ord(T) le d(H))), ord(T) * X(H,T)) =l= sum(T$((ord(T) ge r(J)) and (ord(T) le d(J))), (ord(T) - p(J)) * X(J,T));

It will work to single mode PSP. Its easy extend to multi mode, using an aditional index (i, for example).

Jack


2013/6/3 Sina Zabihi

HI GAMSWORLD
HI SIR BUSH
i’m working on multi skill project scheduling problem(mspsp).i’m confused because i can’t code precedece relations constrains.can you help me?


best regards


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.

\

Dear sir bush
thanks for your help but i can’t solve my problem,i cant’t define lower & upper bound for summation…i attached mathemathical model & my gams code for you to skim it.thanks lot for your kindness.
yours sincerely


second article.gms (2.87 KB)
mspsp.pdf (167 KB)

Hello Sina,

My name is Jack, not Bush.

I´m not pretty sure, but I think I found your mistake.

See your original code:

constrain7(j,i,a)…sum(k,x(i,j,k))=e=sum(t$((ord(t) ge k) and (ord(T) le k+d(i)-1)),z(i,t,a));

The paper uses:

constrain7(j,i,a)…sum(k,x(i,j,k))=e=sum(t$((ord(t) ge k) and (ord(T) le k+d(i)-1)),z(i,k,a));

Try this, maybe the problem is just an the second index of variable z.

Best regards,
Jack





2013/6/12 Sina Zabihi

Dear sir bush
thanks for your help but i can’t solve my problem,i cant’t define lower & upper bound for summation…i attached mathemathical model & my gams code for you to skim it.thanks lot for your kindness.
yours sincerely


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

\

Hi SIna

The mistake has to do with using k as if it is a number. k is a set and the elements are characters not numbers, so you should use something like ord(k) or k.val.

You then have another problem, as you can’t use a “stand-alone” k in the equation (k should in this case appear in the equation definition or you should use k in the equation in a summation or product.

Cheers

Renger



From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of Jack Hagart
Sent: Freitag, 14. Juni 2013 05:44
To: gamsworld@googlegroups.com
Subject: Re: DOLLAR $-Restrictions



Hello Sina,

My name is Jack, not Bush.

I´m not pretty sure, but I think I found your mistake.

See your original code:

constrain7(j,i,a)…sum(k,x(i,j,k))=e=sum(t$((ord(t) ge k) and (ord(T) le k+d(i)-1)),z(i,t,a));

The paper uses:


constrain7(j,i,a)…sum(k,x(i,j,k))=e=sum(t$((ord(t) ge k) and (ord(T) le k+d(i)-1)),z(i,k,a));

Try this, maybe the problem is just an the second index of variable z.

Best regards,

Jack







2013/6/12 Sina Zabihi

Dear sir bush
thanks for your help but i can’t solve my problem,i cant’t define lower & upper bound for summation…i attached mathemathical model & my gams code for you to skim it.thanks lot for your kindness.
yours sincerely


\

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

\