it is my attention in gams (please help me )

sets

t/1*1000/

k/1*500/

Parameters

I(t)

Table

/;in this line i want replace I(t) from matlab to gams(?)

Parameter C(t);

If(t=2k,

C(t) = 0.6;

else

C(t)=0.1;

);

Variabels

R(t)

SH(t)

Positive variable R;

S(0)=0

Equation

Profit… z=e=sum((t),C(t)*R(t)-sum((t),C(t)*SH(t)))

Volume(t) … sum((t),S(t-1)+I(t)-R(t)) =g= 0 ;

Volume(t) … sum((t),S(t-1)+I(t)-R(t)) =l= 173 ;

Demand(t) … sum((t), R(t)) =g= 0;

Demand(t) … sum((t), R(t)) =g= 146;

Model /all/

solve lp minimizing z

display r(t),z

My Matlab is installed at “D:\Program Files\MATLAB\R2010a\bin\matlab.exe”; my GAMS is

installed at ‘D:\program files\GAMS23.3\gamside.exe’.

thanks so much

On Wed, Apr 13, 2011 at 12:58 AM, Marshal wrote:

We are willing to help you on challenging problems but not ABC.

If you could not convert a couple of lines of your model in GAMS, I

would like to suggest you never use it.

So my suggest is reading some introduction of GAMS, studying small

examples, and working on your model. Then raise real problems here.

Marshal

On Apr 12, 2:38 am, mohamad reza nadalian

wrote:

Hi all â€¦.

My name is mohamad. I am an amateur in this area (gams) . I can’t solve

this problem in gams please help meâ€¦

For t=1,2,3,1000

Max c*r(t)-c*sh(t)

C=0.6 for t=1,3,5,999

C=0.1 for t=2,4,6,1000

S(0) =0 i(t)= 1000 number ( generate with matlab )

0= ( s(t-1) â€“r(t)+

sh(t)-su(t)

0=

thanks

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.