Skip to main content

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 

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)

 


Thanks!


Reply


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

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