Why don't you declare 'HomePlayingTeams(d)' has a parameter? Working with indexed sets is usually unnecessary and problematic
Dear all,I have been trying to model a MILP for a scheduling problem in AIMMS. Now, the situation is as follows, I am trying to model the assignment of referees to matches for a certain sports club. The referees are delivered from another team that plays at home that same fixture day at the sports club.Now, when I design a set 'Teams' (say there are 8 teams) and a create a subset 'HomePlayingTeams(d)', where I can fill in which four teams will play at home that fixture day and which teams play away. However, there is no option for me to fill in an index anymore. When I fill in the index in the set 'Teams', the program is not solved correctly, since it tries to select referees from teams that do not play at home. When I manually create an index and try to set the Range to 'HomePlayingTeams(d)' I get the error :The range of an index must be a one-dimensional set, however the indexed set "HomePlayingTeams" has dimension two.Is there any way around this error? Can I create an index which will only account for the values that I have set to 'true' in the data section of the subset some other way?Thanks much in advance.Kind regards,Robin Weber--
You received this message because you are subscribed to the Google Groups "AIMMS - The Modeling System" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aimms+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
--
--