Originally posted by: mathygirl
I have the following code, everything works fine until the last line, which causes oplrun executable to crash:
tuple TandSet{
{string} set;
}
tuple Tiff{
string opt1;
string opt2;
}
{string} bigSet;
{string} inter[o in bigSet];
{TandSet} someSet[o in bigSet] = ...;
execute {
for(var o in bigSet) {
var interArray = new Array();
var counter = 0;
interArray[0] = bigSet;
for(var p in someSet[o]) {
counter = counter+1;
inter[counter] = Opl.operatorINTER(inter[counter-1],p.set);
}
inter[o] = interArray[counter];
writeln(o," ",inter[o]);
}
}
{Tiff} iffOptions = {<o1,o2> | o1 in bigSet, o2 in bigSet: o1 in inter[o2] && o2 in inter[o1]};
Defining the last set above causes oplrun executable to crash. Why?
#DecisionOptimization#OPLusingCPLEXOptimizer