mathprog

GLPK MathProg sets and groups

∥☆過路亽.° 提交于 2019-12-12 12:08:29
问题 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