Originally posted by: meletis13forever
Hello,
In my model I have these data:
{string} terminals=...;
tuple terminaltuple{
key string name;
int x;
int y;
float maxBW;
{float} availBW;
}
{terminaltuple} terminaldata=...;
terminaltuple terminal
terminals = t.name : t | t in terminaldata ;
Also I have this dvar:
dvar int bi in terminals;
How can I express that forall the terminals their bandwidths b[i] must belong in the set of their availBW?
Also in the constraint block I have these:
forall(i in terminals)
b[i] <= terminal[i].maxBW;
forall(i in terminals)
b[i] == 64 || b[i] == 128 || b[i] == 256 || b[i] == 384 || b[i] == 512 || b[i] ==1024;
Can you help me? I am a bit confused!
#DecisionOptimization#MathematicalProgramming-General