Skip to main content
Solved

unable to reference set within one librarymodule from another librarymodule

  • December 9, 2022
  • 2 replies
  • 40 views

Hi,

I am trying to create a variable in librarymodule2 which uses index based on sets declared in librarymodule1. It throws an error saying: “The index “lm1::i” is not present in the interface of Librarymodule “librarymodule1” and therefore cannot be referenced from within variable “lm2::var”.

 

I am new to AIMMS but my colleagues have done this sort of thing many times and never encountered this error. 

It is not clear how to resolve this. 

 

Best

Vikram 

Best answer by gdiepen

The error is giving you a hint what you have to do: you have to add the set/index you want to be available outside of the library to the interface of the library.

 

You can do this by double-clicking on the library and modifying the interface property (you can use the wizard button for this)

 

2 replies

gdiepen
AIMMS Champ
Forum|alt.badge.img+7
  • AIMMS Champ
  • 155 replies
  • Answer
  • December 9, 2022

The error is giving you a hint what you have to do: you have to add the set/index you want to be available outside of the library to the interface of the library.

 

You can do this by double-clicking on the library and modifying the interface property (you can use the wizard button for this)

 


  • Author
  • Explorer
  • 1 reply
  • December 12, 2022

Thanks!



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

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