Hi Santha,
I've saw your code and could highlight some moment:
var BoxesNeeded {LegitCombo_ISN} >= 0 integer;
var Proportion {LegitCombo_ISN} >= 0 <= 1;
impvar VolumeInsideBox {i in ISN, b in BOX,m in MOL,d in T1,w in T2} = Volume_ISN[i] * Proportion[i,b,m,d,w];
impvar WeightInsideBox {i in ISN, b in BOX,m in MOL,d in T1,w in T2} = Weight_ISN[i] * Proportion[i,b,m,d,w];
In this case, you'll get some errors because you create variables only for certain subset with expression Flag=1.
I would recommend you to fix some values for variable, like that:
var BoxesNeeded {i in ISN, b in BOX,m in MOL,d in T1,w in T2} >= 0 integer;
var Proportion {i in ISN, b in BOX,m in MOL,d in T1,w in T2} >= 0 <= 1;
con CYSSpecific {m in MOL, i in ISN,d in T1: m="CYS"}:
sum {b in BOX, w in T2} VolumeInsideBox[i,b,m,d,w]= Volume_ISN[i]*Is_ISN_MOL[i,m];
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.
Find more tutorials on the SAS Users YouTube channel.