Question

Softdrink Planning Compound Set Conversion

  • 28 January 2021
  • 0 replies
  • 49 views

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);
}


0 replies

Be the first to reply!

Reply


Didn't find what you were looking for? Try searching on our documentation pages:

AIMMS Developer & PRO | AIMMS How-To | AIMMS SC Navigator