I am trying to replicate the Softdrink Planning Tutorial, however it requires declaration of a Compound Set. I have gone through the document:
https://how-to.aimms.com/Articles/109/109-convert-compound-sets.html
However, I am unclear how to convert the Compound Set given in tutorial. Could you please guide me through how to convert this particular set with set mapping. Thanks.
Set PlanningGanttChartRows {
SubsetOf : (Factories, ProductionLines);
Index : r;
Definition : {
{ (f,p) | p in FactoryProductionLines(f) }
}
}
Set PlanningGanttChartBarTypes {
Index : b;
Definition : data { ’In Use’, ’In Maintenance’ };
}
ElementParameter PlanningGanttChartStartingWeek {
IndexDomain : w;
Range : Weeks;
Definition : w;
}
Parameter PlanningGanttChartDuration {
IndexDomain : (r,w,b);
}