Skip to main content
Solved

Getting identifier values for identifier inside case using element in AllCases

  • April 1, 2026
  • 2 replies
  • 29 views

gdiepen
AIMMS Champ
Forum|alt.badge.img+7

I know that you can refer to the value of any identifier inside of a case if you have an index/element parameter for that case.

An example of this is used in the FlowShop problem for comparing cases:

 

I know this feature has existed for quite some time already. However, I am trying to access the value of an identifier inside of a case, but the identifier is part of a module (so it has a prefix). In the above example, suppose that I have the p_GCJobStart inside of a module with the prefix custom_prefix, in theory this should then be:

 

However, this does not work.

 

Is there any way that I can use this construct to get the value of the identifier inside the case without explicitly copying it?

Best answer by Marcel Hunting

Hi ​@gdiepen. What do you mean by “this does not work”? It seems to work for me. I have attached a modified version of the example. The parameter that uses the prefix is p_case_GCJobStartMod. I am using AIMMS 26.1.1. Are you doing something different? If so, can you please share your project?

2 replies

Marcel Hunting
AIMMSian
Forum|alt.badge.img+4

Hi ​@gdiepen. What do you mean by “this does not work”? It seems to work for me. I have attached a modified version of the example. The parameter that uses the prefix is p_case_GCJobStartMod. I am using AIMMS 26.1.1. Are you doing something different? If so, can you please share your project?


gdiepen
AIMMS Champ
Forum|alt.badge.img+7
  • Author
  • AIMMS Champ
  • April 7, 2026

Hi ​@Marcel Hunting 

 

I guess it does work, just got confused by the highlighting in the editor, as well as the non-working name-completion:

 

When I was testing this, due to the feedback in the editor I thought it would not work, was never thinking about pressing commit to see if the engine would accept it.

 

Happy that it works, thanks for the quick answer!


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

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