Displaying a MIP solution in the Interactive Optimizer

To display the solution of a MIP optimization in the Interactive Optimizer.

In the Interactive Optimizer, you can print the nonzero solution values to the screen with the command display solution variables. A copy of this information goes to the log file, named cplex.log by default. Thus one way to print your solution to a file is to rename the log file temporarily. For example, the following series of commands in the Interactive Optimizer will place the solution values of all variables whose values are not zero into a file named solution.asc:


 set logfile solution.asc  
 display solution variables 
 set logfile cplex.log