I want to retrieve the reduced cost of a decision variable in CPLEX OPL. However, the dvar indices are tuples, and cplex cannot iterate over a tuple to print the reduced costs. Is it impossible with tuples, or is there a way for it? For example there is a decision variable as below:
dvar float+ Production[ProductionLocations][TimePeriods];
tuple timeperiod {
string TimePeriodID;
string TimePeriodName;
float CurrencyRate;
float Rank;
string ActivePeriod;
}
{timeperiod} TimePeriods = ...;
tuple productionlocation {
string ProductID;
string ProductName;
string LocationID;
string LocationName;
}
{productionlocation} ProductionLocations = ...;
Thanks in advance.