Originally posted by: CA_19
Thank you very much for the pointers.
However, the main difficulty is how in Opl to select the nodes that I want to set as origin and destination from the big nodes data set and link them with the objective function to minimize the (flow x cost) expression.
I have started with the tuple format and I am using a Boolean variable:
tuple node {
string name;
float Xcoord;
float Ycoord;
float InOutFlow;
}
tuple link {
string origin;
string destination;
float delay;
float length;
}
{link} LINKS = ...;
{node} NODES = ...;
dvar boolean Flow[LINKS];
dexpr float TotalCost = sum(b in LINKS) (10*b.length) * Flow[b] + sum(b in LINKS)sum(b in LINKS) (2*b.delay)*Flow[b];
minimize TotalCost;
but I am really confused about how to consider the specific nodes I need to analyse in this case...
Thanks
#DecisionOptimization#OPLusingCPLEXOptimizer