Skip to main content

Overview: Deprecation of Compound Sets

  • April 1, 2019
  • 8 replies
  • 185 views

User Support
AIMMSian
In May 2018 AIMMS announced a plan to deprecate compound sets in stages. Support for compound sets will be fully deprecated after January 1, 2020.

To find out how to identify and remove compound sets from your model without losing functionality, read AIMMS Knowledge: Prepare for the Deprecation of Compound Sets.

This article provides the following background information:
Here is the article

and here's how to prepare (and use set mappings)

8 replies

Jess Es
Forum|alt.badge.img+6
  • Grand Master
  • 121 replies
  • December 6, 2019

FYI, the article has been recently updated/expanded by the author - 

  • Adapted library for duplicate components in compound sets, for instance:
 Set s_Route {
SubsetOf: (s_Location, s_Location);
}
  • Adapted article to explain why the set Integers should not be used as a compound set component.

rahmat
Forum|alt.badge.img+4
  • Ace
  • 33 replies
  • December 17, 2019

Dear All,

I have difficulty to convert my model without any compound set. I included the model in the attachment of this reply. Any suggestion or help will be very meaningful for me.

Thank you very much.


Jess Es
Forum|alt.badge.img+6
  • Grand Master
  • 121 replies
  • December 17, 2019

Hi @rahmat - sorry to hear you’re having trouble. It can help if you tell more specifically what happened, and what you did so far. If you tried following the procedure from the article already, at what point did you get stuck or find problems? Thanks


rahmat
Forum|alt.badge.img+4
  • Ace
  • 33 replies
  • December 18, 2019

Hello Jess, thank you for you reply. I tried to do each step that explained in the link of preparation for the deprecation of compound set. When I did step 3 (create set mapping declaration), I got the error of “fncIndexForSet(): Unable to find index for set Bus” after I pressed the button Create Set Mapping Declarations.

Thank you


rahmat
Forum|alt.badge.img+4
  • Ace
  • 33 replies
  • December 20, 2019

Hello @Jess Es , thank you for your reply. I tried to do each step that explained in the link of preparation for the deprecation of a compound sets. When I did step 3 (create set mapping declaration), I got the error of “fncIndexForSet(): Unable to find index for set Bus” after I pressed the button Create Set Mapping Declarations.

Thank you


Chris Kuip
AIMMSian
Forum|alt.badge.img+7
  • AIMMSian
  • 125 replies
  • December 21, 2019

Hello Rahmat,

The set Bus is used twice in the set Line, therefore it needs two indices.

Please add index i2, next to the index i, for the set Bus. 

With kind regards,

 

Chris


rahmat
Forum|alt.badge.img+4
  • Ace
  • 33 replies
  • December 23, 2019

Hella @Chris Kuip,

Thank you for your reply. It nicely worked and I didn't get the previous error. However, after I pressed the button of “Create set mapping declaration”, I was not able to locate “set mapping declaration” in my model as shown in the figure of step 4.

Thank you.


Chris Kuip
AIMMSian
Forum|alt.badge.img+7
  • AIMMSian
  • 125 replies
  • December 23, 2019

Hello @rahmat ,

Please check the end of the model tree for this runtime library:

With kind regards,

Chris

 

 



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

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