Skip to main content

Local identifier issue in Procedure

  • December 7, 2023
  • 4 replies
  • 64 views

Forum|alt.badge.img+4

I created procedure with argument(2 input arguments & one output argument) say x.  i called procedure x by passing local arguments(2 inputs & 1 output) from other procedure with arguments. 

 

i am getting below error on output argument of x: The local set local set "LS_available_sections" is passed implicitly and therefore it cannot be modified.

4 replies

gdiepen
AIMMS Champ
Forum|alt.badge.img+7
  • AIMMS Champ
  • December 8, 2023

I think that if you want to add new elements to a set that corresponds to one of the indices of an argument parameter, you will also have to provide the correspoding set as an explicit In/Out argument such that you can add new elements to that set


Forum|alt.badge.img+4
  • Author
  • Ace
  • December 11, 2023

 

LS_available_sections is not argument parameter but it is argument set.

After changing property of argument set from output to INout also, I am facing same error


gdiepen
AIMMS Champ
Forum|alt.badge.img+7
  • AIMMS Champ
  • December 14, 2023

Based on just the text you provided for me it is quite difficult to see what is going on.

 

Can you select all of the identifiers that are related to the above (i.e. the procedure, the sets) in the model tree, then right-click on it and click on “Text Representation” for the selected parts and post that here.

 

Unless somebody of AIMMS has a direct idea what this could be?


Forum|alt.badge.img+4
  • Author
  • Ace
  • December 14, 2023

I solved this problem. Thanks for your time.


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

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