Originally posted by: SystemAdmin
To run the models I suppose you could put the commands you mentioned into a file and then execute a command like:
c:\ilog\cplex_studio122\cplex\bin\x86_win32\cplex.exe < foo
where "foo" is the file of commands.
But to then parse the log file, looking for instance for the lines of output like:
MIP - Integer optimal solution: Objective = 2.0000000000e+001
I just don't know what kinds of tools exist in the DOS environment.
Unix-style commands (e.g. "grep") seem called for. You might consider installing Cygwin on top of Windows and see if that meets your need.
But really, even though the use you propose is pretty straightforward, the degree of automation you want suggests to me that you should consider using a true programming interface (API). CPLEX offers several. The programmatic control plus interactivity that Python offers might be right, for instance.
#CPLEXOptimizers#DecisionOptimization