Originally posted by: aysenur
1. Nothing changes when I invoke the WriteSolution() and GetValue() at the same place
2. I checked once again that I don't have multiple variables with the same name.
That being noted, before I post parts of my code that I think might be causing the problem let me also give you this piece of information.
I went ahead and tried commenting out the part of my code that deals with submodels and if I do that I get the same values from WriteSolution() and GetValue(). I think there is something going in the memory that even after the models are destroyed their effects on variables and their values continue.
This also relates to my other post about Conversion(). Any ideas on trying to identify the reason and solving the issue?
#CPLEXOptimizers#DecisionOptimization