Originally posted by: SystemAdmin
[EdKlotz said:]
Hello,veryone!when I use getvalue method to get variable value in a function,there is erro:
Empty Handle in IloArray::operator[] Assertion failed: (_impl) || (ILOSTD(cerr) << "Empty Handle in IloArray::operato<br />r[]" << ILOSTD(endl), 0), file c:\ilog\concert22\include\ilconcert\iloenv.h, line 1770<br />how to resolve it?By the way,I define varibale in the one function.But getvalue method is in the other function!
Thank you very much!
Questions like this are very difficult to assist with without a small sample or code segment that illustrates the problem. So, try to include that. Also, try to reproduce the behavior by modifying one of the CPLEX examples that comes with
the software. If you can reproduce it in such a sample, then you have ruled out
any other parts of your own code as sources of the problem. If you cannot reproduce it, then you need to focus on the differences between your code and
the sample program as potential sources of the problem.
#CPLEXOptimizers#DecisionOptimization