## Excluding

Problems with modeling
jasonlwe
User
Posts: 1
Joined: 5 months ago

### Excluding

Dear all,
I'm having problems with the following equations below. What I want is that if Jpma(f,t,m) is larger than 0, then the values for costbiorefinery(f,t,m) should be calculated. If Jpma(f,t,m) is equal to 0, then Costbiorefinery shouldn't be calculated for a set. However, with the current coding, kbiorefineryb(f,t) is calculated without considerations for the values of Jpma(f,t,m). How do i exclude these values? Please help me. Thank you.

Table Cfba(f,t) Conversion of feed f to prod p main
enzymatic anaerobic aquatic ssf
bark 0.1079 0 0 0.000038937
pith 0.1394 0 0 0.001485
wastewater 0 0.0036671 0.01495 0;

Table kbiorefinerya(f,t) Cost of Conversion of feed f to prod p (ax+b)
enzymatic anaerobic aquatic ssf
bark 661.48 0 0 2E9
pith 4889.1 0 0 7E7
wastewater 0 15341 18051 0;

Table kbiorefineryb(f,t) Cost of Conversion of feed f to prod p (ax+b)
enzymatic anaerobic aquatic ssf
bark 2E7 0 0 5E7
pith 2E7 0 0 7E7
wastewater 0 2E7 1E7 0;

Table exist(f,t)
enzymatic anaerobic aquatic ssf
bark 1 0 0 1
pith 1 0 0 1
wastewater 0 1 1 0;
E3a(f,t,m) .. Jpma(f,t,m) =e= (Jftm(f,t,m)*Cfba(f,t)) \$ (exist(f,t)=1) ;

E91(f,t,m) .. Costbiorefinery(f,t,m) =e= (kbiorefinerya(f,t)*Jpma(f,t,m)+kbiorefineryb(f,t));

arman.nedjati
User
Posts: 4
Joined: 4 months ago

### Re: Excluding

use \$ for assigning conditions.