I have a main() module with flow control and explicitly create model instances using "new IloOplModel()". Running the program in IBM ILOG CPLEX Optimization Studio (12.7) the results are not shown in the "Problem Browser". Is there any way to tell the IDE to show the results of a certain model instance in the Problem Browser?
Before switching to explicit creation of model instances, I relied on the implicit model instance (available through thisOplModel). With the implicit model instance the results are always shown in the "Problem Browser".
Thanks for your help!
That's normal.
So what you could do is either
rely on scripting to display what you need:
https://github.com/AlexFleischerParis/zooopl/blob/master/zooprepostprocessing.mod
or write .dat in files so that you can use the problem browser with .mod and .dat without a main block
Example:
subvalue.mod
and then
main {
that gives