Connecting binary variables
Posted: Wed May 11, 2022 3:23 pm
Hello everyone.
I had a query regarding connecting two binary variables.
I am modelling a transport system of biomass with different types of vehicles.
zfr(f,r,t,v) is a binary variable showing if a route is chosen using some specific vehicle that transfers biomass from farm f to RBPD r.
yR(r) is binary variable selecting the no. of RBPDs required out of 95.
I have formulated the code but the selection of 'r' in zfr(f,r,t,v) is different than what it shows to be in yR(r) which doesn't make sense because I think they are not related.
How can I do that?
Attaching the gams file.
I had a query regarding connecting two binary variables.
I am modelling a transport system of biomass with different types of vehicles.
zfr(f,r,t,v) is a binary variable showing if a route is chosen using some specific vehicle that transfers biomass from farm f to RBPD r.
yR(r) is binary variable selecting the no. of RBPDs required out of 95.
I have formulated the code but the selection of 'r' in zfr(f,r,t,v) is different than what it shows to be in yR(r) which doesn't make sense because I think they are not related.
How can I do that?
Attaching the gams file.