Originally posted by: SystemAdmin
It should be possible to view these values. Unfortunately, this is not that straightforward and I am not an expert in debugging with visual studio so I cannot give you step-by-step instructions.
Here is some information that may help you:
-
IloNumArray is a subclass of IloArray<double>.
-
In an IloArray<T> instance the actual array data is stored in the instance variable _impl. Hence you need to watch the values in _impl.
-
_impl is an instance of IloArrayI that stores the array data in IloArrayI::_data.
-
Accessing individual slots in IloArrayI::_data is a little cryptic. Look at the implementation of the index operator in IloArray<T> in iloenv.h to see how to do that.
Since this is so cryptic my first reaction would be to use std::vector<double> instead of IloNumArray, if that is possible with reasonable effort.
#CPLEXOptimizers#DecisionOptimization