Originally posted by: giannil
Hello,
In the IBM TSP example subtours are eleminated in an iterative way by making use of a script(http://www-01.ibm.com/support/knowledgecenter/SSSA5P_12.4.0/ilog.odms.ide.help/examples/html/opl/models/TravelingSalesmanProblem/tsp.mod.html). In this example the script is written in the same .mod-file as the model itself, but I would like to use the script in a seperate model.
Currently I am modelling a script which tries to find an optimal line up for festival in three parts. A first model decides which artists play at the same moment and in the second part we try to find a sequence for these sets of artists. In the second model it is possible to have subtours, just like the tsp problem. I tried to solve this problem in the same way as proposed in the IBM TSP example. It works when I solve the model to find the sequence seperately, but in a script with the other models CPlex doesn't want to add the subtour information to the data.
dat.subtours.add(opl.thisSubtourSize, opl.thisSubtour);
This line gives me the following error: unknown property 'subtours'.
How can I solve this problem? My models are in the attachement.
#CPLEXOptimizers#DecisionOptimization