uncontrolled set enterede as a constant

Hi;

suppose

I have a mixed integer problem maximizing Z

sets
y years /1, 2, 3…, n/

m months /1, 2, 3,…, 12/

w weeks /1, 2, 3,…, 7/

i facilities /F1, F2, F3, …,Fm/

parameters
C(i) capacity
Tlife(i) expected life time
Tini(i) age

positive variables

pA(y,m,b) production amount for A
pB(y,m,b) production amount for B

binary variables
x(i,y) investment decision for an old facility


I want to write a constraint for specific values of y such as “For y greater or equat to (Tlife(i) - Tini(i) + 1)” pA(y,m,b) + pB(y,m,b) =l= sum(i, C(i)*x(i,y)). How can I write such a constraint. Please help me!

I tried

Const(y,m,b)$(y.val ge Tlife(i) - Tini(i) +1)… pA(y,m,b) + pB(y,m,b) =l= sum(i, C(i)*x(i,y));

I know this expression is not true. But I don’t know how to write it. Please help me in writing such a constraint.

Thanks to everybody.

\

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.

Dear Berna,

Try this expression:

Const(y,m,b)$(ORD(y) ge Tlife(i) - Tini(i) +1)… pA(y,m,b) + pB(y,m,b) =l= sum(i, C(i)*x(i,y));


Cheers,
Pedro

On Saturday, January 11, 2014, Berna Tektas wrote:

Hi;

suppose

I have a mixed integer problem maximizing Z

sets
y years /1, 2, 3…, n/

m months /1, 2, 3,…, 12/

w weeks /1, 2, 3,…, 7/

i facilities /F1, F2, F3, …,Fm/

parameters
C(i) capacity
Tlife(i) expected life time
Tini(i) age

positive variables

pA(y,m,b) production amount for A
pB(y,m,b) production amount for B

binary variables
x(i,y) investment decision for an old facility


I want to write a constraint for specific values of y such as “For y greater or equat to (Tlife(i) - Tini(i) + 1)” pA(y,m,b) + pB(y,m,b) =l= sum(i, C(i)*x(i,y)). How can I write such a constraint. Please help me!

I tried

Const(y,m,b)$(y.val ge Tlife(i) - Tini(i) +1)… pA(y,m,b) + pB(y,m,b) =l= sum(i, C(i)*x(i,y));

I know this expression is not true. But I don’t know how to write it. Please help me in writing such a constraint.

Thanks to everybody.

\

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.


\

PEDRO JAVIER RAMÍREZ TORREALBA
Ingeniero Civil Eléctrico PUC
MSc en Ingeniería Eléctrica PUC
Londres, REINO UNIDO

Celular: +44-(0)75-8069-3119


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.