I have a MIP problem giving me 3 solutions in CPLEX. How do I take one of those solutions and export it to an excel file?
I tried the following so far: This is what I typed in CPLEX command prompt window
read try
optimize
display solution member
Display which solution: 1
variables
-
write try2
sol
Incumbent solution written to file 'try2'. <-- OUTPUT ON SCREEN
This is an unknown format of file. I don't know what it is. I want an excel file.
There is no direct way to export from CPLEX a file that Excel would be able to read.
As @TimChippingtonDerrick mentioned, the .sol
file format that CPLEX will use when writing a solution is an XML file. This format is documented in [1], and its schema appears in CPLEX installations as [InstallDir]/cplex/include/ilcplex/solution.xsd
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.