Originally posted by: Frank_da
Hi,
I thought that is an easy one, unfortunately I wasnt able to solve it on my own :-(
I need to autogenereate Input Data before the Optimization starts.
I have this Tuple:
tuple transport_FUG_Tuple
{ key string identifier; string type; string destination;
int capa;
int deptPeriod;
int transpDuration;
int fixCost;
}
{transport_FUG_Tuple
} transNewFUG;
now I need to create maxNewFUGTransPerDay transports, in every period of numPeriods for each destination in rngFUGDestinations:
execute INITIALIZE
{
for (var t in numPeriods)
{
for (var dest in rngFUGDestinations)
{
for(var i in maxNewFUGTransPerDay)
{ newTrans.identifier = t +
"_" + i; newTrans.type =
"FUG"; newTrans.destination = dest; newTrans.capa = capacityNewFUGTransport; newTrans.deptperiod = t; newTrans.transpDuration = 5; newTrans.fixcost = stdFixCostNewFUGTransport;
}
}
}
};
As a newbie I dont know how to add newTrans to the tuple transNewFUG??
Can anyone help? Thanks a lot!
#DecisionOptimization#OPLusingCPLEXOptimizer