Originally posted by: academician1
In my model, there ar many tuple structures. When I initialize the data, there are some errors with data generation.
For instance
tuple RData1 {string PResources;
float PSpeed;
float psetup;
float pscost;
float ppcost;}
{RData1} RDatas1=...;
float PSpeed
PResources;
float PSetupT
PResources;
float PSCost
PResources;
float PPCost
PResources;
execute INITIALIZE2 {
for (var b in RDatas1)
PSpeed
http://b.PResources=b.PSpeed;
PSetupT
http://b.PResources=b.psetup;
PSCost
http://b.PResources=b.pscost;
PPCost
http://b.PResources=b.ppcost;}
The data PSpeed is generated correctly. But PSetupT, and the other data was generated incorrectly. All values were equal to 0, except belong to the last Resource.
How the datashould be initialized so that the data could be generated?
#DecisionOptimization#OPLusingCPLEXOptimizer