Hi everyone, can you help me please. Its realy emergency. I am learning gams new.
How can I write this constraints, it is realy hard for me:(

I defined alias (i,j), h(j,k) but how can write this constraints.

h(j,k)= load quantity for node j transport by vehicle k
E is energy consumption formula
This formula is energy consumption formula. If vehicle k goes from node i to j and vehicle k have load quantity h for node j energy consumption is calculated like this.

Hi
Mr. Renger I really appreciation for your answer.
My problem is vehicle routing problem. In my problem I have to calculate vehicles energy consumption from node i to node j. I should consider the decreasing load of the vehicle from node i to node j. I have difficulty defining the energy consumption variables because it is have very indicies and variable h(j,k). How can I define it? I don’t think the definition below is correct. E(i,j) h(j,k)=
Thank you for your answer.

Your energy consumption E(i,j) is a function, among other things of h(j,k), which depends on k. For me this means that E also depends on k: E(i,j,k).
Now you can write your function like you showed:

E(i,j,k) = pho * psi * (.... h(j,k) ....)....

Note furthermore, that your equations k1 until k4 have some non-GAMS syntax and you might have look at the chapter in the documentation on the proper way of formulating equations. E.g. you can’t have something like “a =g= b =g=0”. This would be two equations: a =g= b; b =g=0;