Can you help me to write the following set of constraints?

Problems with modeling
Post Reply
mapabu
User
User
Posts: 2
Joined: 5 years ago

Can you help me to write the following set of constraints?

Post by mapabu »

Hello everyone :D
I hope you can help me out with the following case.

I'm trying to write the set of equations (20) and (21) as shown in the attached file, but I'm having a hard time understanding how to write them given the conditions "when(x(i,j,m)=0 and x(i,j,m)=1)".

So far, I wrote 20 as:

r20(m)..sum((i,j),t(i,j)*x(i,j,m))+sum((i,N(j)), h(j)*x(i,j,m))+sum((i,F(j)),((Cm-y(i,j,m))/r)) =l=Hs;

and 21 as two equations:

r21a(F,m)..(Cm-y(i,F,m))/r =g=0; :arrow: Here set i is not controlled.

r21b(F,m)..(Cm-y(i,j,m))/r =l=H*sum(i,x(i,j,m)); :arrow: Here It is controlled in the sum but not for the y(i,j,m) variable.

The model is from this article:
https://ac.els-cdn.com/S235214651600008 ... 77a490775b


I appreciate your help.
Attachments
Sin título.png
User avatar
Renger
Posts: 639
Joined: 7 years ago

Re: Can you help me to write the following set of constraints?

Post by Renger »

Hi
You just make one constraint and multiply the number 20-part on both sides by(x(i,jm,) and the 21-part by (1 - x(i,j,m)) .
If x(i,j,m) = 1, only the 20-parts are used, if x(i,jm) = 0, only the 21-parts will be used.
CHeers
Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist
mapabu
User
User
Posts: 2
Joined: 5 years ago

Re: Can you help me to write the following set of constraints?

Post by mapabu »

Hi Renger,
Could you help me to write it down?
By multiplying 20 by x(i,j,m) on both sides, doesn't the equation becomes non-linear?
Post Reply