You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug about different VarList objects sharing the same components #409
Describe the bug
For the same model, if I create two VarList (called list1 and list2), then some cache bugs happen.
If I use list1 for storing x_1, x_2, x_3, ... and use list2 for storing y_1, y_2, y_3, ..., then the two lists will sharing elements.
Expected behavior
I expect these two var list of the same model should not have the same components.
Desktop (please complete the following information):
Operating System, version: Linux
Python version: 3.12
Python-MIP version (we recommend you to test with the latest version): 1.14.2
Additional context
I have replaced this with the standard Python list in my project to bypass the bug.
Appreciate your work. If it is not a bug, could you tell me your design logic?
changed the title [-]Bug about two VarList object share the same variables[/-][+]Bug about different VarList objects share the same components[/+]on Jun 30, 2025
changed the title [-]Bug about different VarList objects share the same components[/-][+]Bug about different VarList objects sharing the same components[/+]on Jun 30, 2025
Activity
[-]Bug about two VarList object share the same variables[/-][+]Bug about different VarList objects share the same components[/+][-]Bug about different VarList objects share the same components[/-][+]Bug about different VarList objects sharing the same components[/+]