Originally posted by: sandeepsinghchauhan
tuple pl
{
int p;
int L;
int c;
}
{pl} PL={<1,2,4>,<2,3,7>};
tuple Proc
{
int a;
}
tuple TLU
{
Proc a;
int b;
int c;
}
{TLU} P = {<<1>,1,2>,<<2>,1,3>};
int M[P]=[100,100];
dvar int+ X[P];
constraints
{
forall(dv in P){
X[dv] <= sum(pl in PL,p in PL:pl.p == p.p && pl.L== dv.b+1)pl.c*M[dv]*29;
}
}
How to write variable X values in excel?
#CPLEXOptimizers#DecisionOptimization