Originally posted by: ghosh.d7
Also, I did reformat my code in a way so that I can use another optimizer, glpsol.exe (freeware), to solve the problem. Basically, I have a C++ program that generates a textfile called LP.txt, which then is solved in CMD using glpsol.exe. This way, I can run the textfile generator C++ file from another C++ file that has all the sets of data, and then run all the sets and generate all the LP.txt's and solve them all in the CMD. But I'm sure that's not the most efficient way to do this, and I also want to be able to use CPLEX, not GLP.
I'm using the following line to solve in the CMD.
glpsol.exe LP.txt --cpxlp --simplex -o LP-res.txt
Any help would be greatly appreciated. Thanks
#DecisionOptimization#OPLusingCPLEXOptimizer