Reply-to: gamsworld@googlegroups.com

Dear: colleagues

Could you please to help me again, My problem is

title Simple Model of Air Conditioning Dispatch
Sets
t time /t1*t24/
*t1 = 12.00 AM - 01.00 AM,t2=01.00 AM - 02.00 AM, t3=02.00 AM - 03.00 AM........t24=23.00 PM - 12.00 AM
;
Alias (t,tt);
Parameters P(t) Electricity price at interval time t - per kiloWatt hour/t1=0.02,t2=0.019,t3=0.017,t4=0.017,t5=0.016,t6=0.015,t7=0.015,t8=0.019,t9=0.022,t10=0.024,t11=0.026,t12=0.028,t13=0.028,t14=0.029,t15=0.030,t16=0.030,t17=0.027,t18=0.026,t19=0.027,t20=0.027,t21=0.026,t22=0.025,t23=0.025,t24=0.025/;

Parameter E(t) Power used by air condition at interval time t - Watt /t1=1300,t2=1300,t3=1300,t4=1300,t5=1300,t6=1300,t7=1300,t8=1300,t9=1300,t10=1300,t11=1300,t12=1300,t13=1300,t14=1300,t15=1300,t16=1300,t17=1300,t18=1300,t19=1300,t20=1300,t21=1300,t22=1300,t23=1300,t24=1300/;

Parameter B(t) Duration at interval time t - hour /t1=1,t2=1,t3=1,t4=1,t5=1,t6=1,t7=1,t8=1,t9=1,t10=1,t11=1,t12=1,t13=1,t14=1,t15=1,t16=1,t17=1,t18=1,t19=1,t20=1,t21=1,t22=1,t23=1,t24=1/;

Parameter S(t) Duration at interval time t - second /t1=3600,t2=3600,t3=3600,t4=3600,t5=3600,t6=3600,t7=3600,t8=3600,t9=3600,t10=3600,t11=3600,t12=3600,t13=3600,t14=3600,t15=3600,t16=3600,t17=3600,t18=3600,t19=3600,t20=3600,t21=3600,t22=3600,t23=3600,t24=3600/;

Parameter o(t) Temperature outside at interval time t - celciuss /t1=22,t2=22,t3=12,t4=23,t5=23,t6=23,t7=23,t8=25,t9=28,t10=28,t11=29,t12=30,t13=30,t14=30,t15=28,t16=28,t17=26,t18=25,t19=25,t20=25,t21=23,t22=23,t23=22,t24=22/;

Parameter v(t) Heat transfer from internal equipment at interval time t - Watt /t1=5,t2=5,t3=5,t4=5,t5=5,t6=5,t7=5,t8=0,t9=0,t10=0,t11=0,t12=0,t13=0,t14=0,t15=0,t16=0,t17=0,t18=20,t19=20,t20=20,t21=20,t22=5,t23=5,t24=5/;

Scalar H Heat capacity of the room - joule per celciuss /1600152/ ;

Scalar q Heat transfer coefficient fromm floor wall and ceiling Watt /1/;

Scalar A Total area of the room - metre square /200/;

parameter I(t) Temperature inside of the room at interval time t;

parameter y(t) on off state of Ac;

*inside tem. in the first interval

I(“t1”)=20;

- AC switched on/off state in the first interval

Y(“t1”)=1;

loop(t,

I(t+1) = I(t)+((q*A*S(t)*(o(t)-I(t))/H))+((v(t)*S(t))/H)-((E(t)*S(t )*Y(t))/H);

y(t+1)=1 (I(t+1)>=21) + 0 (I(t+1)

To: gamsworld@googlegroups.com

Sent: Tuesday, 20 September 2011 12:32 AM

Subject: Re: If Problem

your welcome

On Tue, Sep 20, 2011 at 3:48 AM, Marwan Marwan wrote:

Dear: Colleagues

Thanks so much, I tried and succes according to this direction.

From: Babak Saleck Pay

To: gamsworld@googlegroups.com

Sent: Monday, 19 September 2011 12:15 AM

Subject: Re: If Problem

Hi

y(t+1) = 1 ( l(t+1)>22 ) + 0 (l(t+1) wrote:

Dear: colleagues

Could you please to some body can help me to solve my problems:

loop(t,

I(t+1) = I(t)+((q*A*S(t)*(o(t)-I(t))/H))+((v(t)*S(t))/H)-((E(t)*S(t)*Y(t))/H);

if (I(t+1)>=22, y(t+1)=1);

);

How to write in GAMS if want to set:

if I((t+1) is > 22, y(t+1)=1 and if I((t+1) is

To: gamsworld

Sent: Friday, 16 September 2011 5:40 AM

Subject: About execution problem

Hi,

I am solving a model which uses lp/nlp solvers

iteratively in a loop (i.e. solve statements of models are placed in a

loop structure). Model names are lpsub and nlpsub.But after starting

execution GAMS is stuck at a certain point, and GAMS log window shows

message “Reading solution for model lpsub”.

It should be running iteration or showing normal

completion. Also there is no execution error. So I am confused about

what is happening during run.

If anyone can provide any insight to the problem I

would very grateful.

Regards

Pratik

Babak Saleck Pay

M.Sc

Socio-Economic System Engineering

Group of Industrial Engineering

University of Tehran

Tehran,Iran

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.