'Exporting CPLEX TSP example solution to csv/excel

This might be a simple question but I have been struggling with this for a while.

I am using flow control to introduce lazy constraints when solving a problem that is very similar to a TSP. I found the CPLEX TSP example which I can follow well and use as a starting point to solve my problem.

Is there a way to export the solution of the CPLEX TSP example to a csv/excel sheet?



Solution 1:[1]

In Excel, Rocket science and optimization I shared an example

Traveling salesman with Excel

.mod

{int} solution=...;

.dat

SheetConnection s("travelingsalesman.xlsx");

solution to  SheetWrite(s,"output!B2:B1000");

In the CPLEX IDE

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1