I’m using Julia/JuMP and I recently encountered a weird bug. The whole package I’m writing is too big so I only include the code that this bug occurs. I have the following lines of code
The code does not give me the results I expect.
However, if I uncomment the “println” on line 483 and 488, the code runs all right.
I really have no idea why this occurs. It seems that if I do not print “m.ext[:varmap]”, Julia just treats “m.ext[:varmap]” as an empty dictionary and ignores all the elements in m.ext[:varmap].
This seems to be a Julia issue rather than JuMP issue. I wonder if anyone has encountered the same problem before.
Thanks in advance.
In addition to posting a “minimal working example”, remember to post the actual code instead of an image of the code, since one cannot cut and paste from an image. Rember to put the code inside backticks (see here: PSA: how to quote code with backticks)