Originally posted by: QiuFeng
Dear All:
I have a question about getRay in concert. The manual says:
quote public void getRay(IloNumArray vals, IloNumVarArray vars) const
CPLEX puts the the variables of the extracted model into the array vars and it puts the corresponding values of the unbounded direction into the array vals.
CPLEX resizes these arrays for you.
[/quote]
The above explanation in the manual seems to mean that the argument "vars" will be filled up with all variables. However, in many other functions, like getValues, "vars" is always passed to the function to tell CPLEX which variables are requested for values.
So in order to match the values with the variables, extra work might have to be done, because the variables in the array "vars" might be in a different order from the variable array we are managing.
My question here is that, do I have to do extra work to track variables ? like giving every variable a name.
thanks
#CPLEXOptimizers#DecisionOptimization