Help me immediately, please!!

Dear friends,
I have a problem in my model. How can I write this equation? Can you help me, please?

Regards

If (x(i)-x(j))*cos(l)+(y(i)-y(j))sin(l)<0 , d(i,j)=(-1)((x(i)-x(j))*cos(l)+(y(i)-y(j))*sin(l))
else d(i,j)=(x(i)-x(j))*cos(l)+(y(i)-y(j))*sin(l)


To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/4Xr8FdjL2hwJ.
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.

Dear Özlem,

Are you using binary variables in this model? Because you probably need binary variables in order to model this type of condition. The if condition could be replaced to wrote:

Dear friends,
I have a problem in my model. How can I write this equation? Can you help me, please?

Regards

If (x(i)-x(j))*cos(l)+(y(i)-y(j))sin(l)<0 , d(i,j)=(-1)((x(i)-x(j))*cos(l)+(y(i)-y(j))*sin(l))
else d(i,j)=(x(i)-x(j))*cos(l)+(y(i)-y(j))*sin(l)


To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/4Xr8FdjL2hwJ.
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.

\

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.