GAMS Modeling_Urgent Help!

I am working on an iterative heuristic to solve my MIP model with
GAMS.
The problem like below

set t /15/;
set tz /0
5/;
set i /1*20/;

variable z(t,i)
/
/;

solve my model …

At each iteration, I want to solve the model for t’<=t and tz’<=tz
that means:
At iteration1, I want to solve the model only for time period t=1 and
tz=0,1,
at iteration2, solve the model for t=1,2 tz<=2;
at iteration3, solve the model for t=1,2,3 and tz<=3
and etc

Also, some of obtained variables in the current iteration should be
used in the next generation.

Could you please tell me how can I handle this problem? I think it
could be fixed by dynamic sets but I don’t know how can I do. I used
some card and ord operators in the constraints for t and tz sets.


Thank you very much again for helping me.
Kindest Regards

\

Hi.

I think( i’m not sure) you can use a parameter that count your iteration, like C.
when you want write equations, use operator for t and tz as follow : eq1(ord(t) wrote:

I am working on an iterative heuristic to solve my MIP model with
GAMS.
The problem like below

set t /15/;
set tz /0
5/;
set i /1*20/;

variable z(t,i)
/
/;

solve my model …

At each iteration, I want to solve the model for t’<=t and tz’<=tz
that means:
At iteration1, I want to solve the model only for time period t=1 and
tz=0,1,
at iteration2, solve the model for t=1,2 tz<=2;
at iteration3, solve the model for t=1,2,3 and tz<=3
and etc

Also, some of obtained variables in the current iteration should be
used in the next generation.

Could you please tell me how can I handle this problem? I think it
could be fixed by dynamic sets but I don’t know how can I do. I used
some card and ord operators in the constraints for t and tz sets.


Thank you very much again for helping me.
Kindest Regards


To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.



\

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


To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

Hi Babak,

Thank,s a lot. I have fixed my problem. Your suggestion worked well.

Regards
Allan

On Jun 3, 7:59 pm, babak saleckpay wrote:

Hi.

I think( i’m not sure) you can use a parameter that count your iteration,
like C.
when you want write equations, use operator for t and tz as follow : eq1(ord(t) > eq2$(ord(tz) > or something like that.

then, when you put your solve statement in a loop, at the beginning of each
loop, just add 1 to C.

On Fri, Jun 3, 2011 at 1:41 PM, Allan Kurd wrote:

I am working on an iterative heuristic to solve my MIP model with
GAMS.
The problem like below

set t /15/;
set tz /0
5/;
set i /1*20/;

variable z(t,i)
/
/;

solve my model …

At each iteration, I want to solve the model for t’> > > that means:
At iteration1, I want to solve the model only for time period t=1 and
tz=0,1,
at iteration2, solve the model for t=1,2 tz> > > at iteration3, solve the model for t=1,2,3 and tz> > > and etc

Also, some of obtained variables in the current iteration should be
used in the next generation.

Could you please tell me how can I handle this problem? I think it
could be fixed by dynamic sets but I don’t know how can I do. I used
some card and ord operators in the constraints for t and tz sets.

Thank you very much again for helping me.
Kindest Regards


“gamsworld” group.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to
gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/gamsworld?hl=en.


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

\

that’s good. your welcome


On Mon, Jun 6, 2011 at 6:02 AM, Allan Kurd wrote:

Hi Babak,

Thank,s a lot. I have fixed my problem. Your suggestion worked well.

Regards
Allan

On Jun 3, 7:59 pm, babak saleckpay wrote:

Hi.

I think( i’m not sure) you can use a parameter that count your iteration,
like C.
when you want write equations, use operator for t and tz as follow : eq1(ord(t) eq2$(ord(tz) or something like that.

then, when you put your solve statement in a loop, at the beginning of each
loop, just add 1 to C.

On Fri, Jun 3, 2011 at 1:41 PM, Allan Kurd wrote:

I am working on an iterative heuristic to solve my MIP model with
GAMS.
The problem like below

set t /15/;
set tz /0
5/;
set i /1*20/;

variable z(t,i)
/
/;

solve my model …

At each iteration, I want to solve the model for t’ > that means:
At iteration1, I want to solve the model only for time period t=1 and
tz=0,1,
at iteration2, solve the model for t=1,2 tz > at iteration3, solve the model for t=1,2,3 and tz > and etc

Also, some of obtained variables in the current iteration should be
used in the next generation.

Could you please tell me how can I handle this problem? I think it
could be fixed by dynamic sets but I don’t know how can I do. I used
some card and ord operators in the constraints for t and tz sets.

Thank you very much again for helping me.
Kindest Regards


“gamsworld” group.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to
gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/gamsworld?hl=en.


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


To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.



\

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


To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.