I hope this is obvious to someone. I have only had a vanilla use of GLPK/MathProg. I am having trouble figuring out the syntax in GNU MathProg (within GLPK) to do the following, for example:
set PartsOfWeek;
set WeekDays;
data;
set PartsOfWeek := WorkWeek WeekEnd;
set WorkWeek := Mon Tue Wed Thu Fri;
set WeekEnd := Sat Sun;
set WeekDays := setof{d in (WorkWeek union WeekEnd)}(d);
The problem is that this is rejected by MathProg.
In general, I just want to be able to: - declare a Partition (here PartsOfWeek) and a set (here Weekdays) - build the partition from data - populate the set with the elements of the of the sets from the partition.
A better example might be with seasons and months.