Originally posted by: naveendivakaran
Hi,
I have been trying to name a subset of constraints in my LP, with tuples. Unfortunately, when I look at the generated LP, the constraint names do not reflect the strings in the tuple. Am I doing something wrong? Can someone help me with this?
Snippets from mod file
//Tuple Definition
tuple t3s5i2f {string str1; string str2; string str3;int int1; int int2; int int3; int int4; int int5;float flt1; float flt2;};
tuple tsi{string str1; int int1;};
//Input initiation
{t3s5i2f} setWOA = ...;
{tsi} TravIndex = {<trav,out_ww>|<facility,area,trav,rec,step,ws,step_ww,out_ww,woa,yld> in setWOA};
//constraint Definition
constraint ctbendMinWO[TravIndex];
part of the lp file generated:
ctbendMinWO({,201949})
I expect to see:
ctbendMinWO({"ABC",201949}), as "ABC" is the string that forms the first element of the tuple structure {tsi}.
It seems like only the integer elements of the tuple is getting generated in the lp. Am I doing anything wrong? Or, is this a limitation?
#DecisionOptimization#OPLusingCPLEXOptimizer