INTEGER PARAMETERS

Hi All,

I write paramater to use other parameters but ıt has to be ınteger. How can I define in gams ?

parameter
b(ir) ;
b(ir)=c(ir)*s(ir)/h ;
integer b(ir)

I try this but see error. I wanna make integer b(i)
Thank you,

Use round, ceil or floor (see e.g. https://www.gams.com/latest/docs/UG_Parameters.html#INDEX_functions_22_round): b(ir)=round(c(ir)*s(ir)/h);

-Michael

Hi all of you
I think you would type the ; to end the statement.