Does anyone know how to import a matrix from an csv or xlsx file into the data file of a CPlex project in the CPlex studio?
I am using CPlex studio on Linux, and I am trying to solve a linear program. I have an inequality constraint in the form of Ax<=b. I have A and b as .csv or xlsx files. I need to load A and b into the .dat file of my CPlex studio project. Following an online tutorial, I am using the SheetConnection Data_A("A.xlsx"); command. But the program would not compile and I get the following error, "Sheet data not supported on this platform". I used the .csv file instead, yet I get the same error.
Does anyone know how to import data in the form of a matrix into CPlex project, besides the SheetConnection command?
Kind regards, and I look forward to hearing from you.
Ahmad
You can use CSVRead:
or if you use a to