Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
Expand all | Collapse all

How can i get variable value which defined in other funciton?

  • 1.  How can i get variable value which defined in other funciton?

    Posted 11/19/08 06:37 PM

    Originally posted by: SystemAdmin


    [carali 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!
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: How can i get variable value which defined in other funciton?

    Posted 11/19/08 09:56 PM

    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