This section presents the solution files produced by CPLEX. It includes these topics:
Format of an ASCII-Text Solution File
An ASCII text solution file is created in Concert Technology with the method IloCplex::writeTextSolution
, in the Callable Library with the CPXwritesol
routine, or in the Interactive Optimizer via the write
command. In either case, the file type TXT should be specified. If a file name with a .txt
extension is specified, the file type may be omitted. A solution file consists of three sections: heading, rows, and columns.
Heading Section
A heading section in an ASCII-text solution file lists the following information:
-
Problem name (usually the problem file name)
-
Data name (if given; otherwise, blank)
-
Objective value
-
Problem status (optimal, nonoptimal, or infeasible)
-
Number of iterations required to solve
-
Objective name (if given; otherwise, default is obj) and sense (min or max)
-
Right-hand side name (if given; otherwise default is rhs)
-
Range section name (if given)
-
Bound section name (if given)
Rows and Columns Sections
The rows section and the columns section in an ASCII-text solution file are in tabular format. For each row and each column, the file lists the following information:
-
NUMBER: An internal number assigned by ILOG CPLEX.
-
ROW OR COLUMN: The name assigned to each row or column.
-
AT: The status of the row or column; five alternatives exist:
-
** Infeasible
-
BS basic and feasible
-
EQ nonbasic, artificial, or fixed
-
UL nonbasic, activity at upper limit
-
LL nonbasic, activity at lower limit
-
ACTIVITY: The value of the row or column in the solution. For columns, this is simply the value of the variable. For rows, it is the sum of the products of the variable values and coefficient values.
-
SLACK ACTIVITY (rows section) or INPUT COST (columns section): For each row, the slack activity is the difference between the RHS value for the row and the row activity. For each column, the input cost is the objective coefficient corresponding to that variable.
-
LOWER LIMIT: The lowest activity value for this row or column in this solution which is still feasible.
-
UPPER LIMIT: The highest activity value for this row or column in this solution which is still feasible.
-
DUAL ACTIVITY (rows section) or REDUCED COST (columns section): The dual activity for a constraint, often called the shadow price, is relevant only for nonbasic constraint activities. The dual activity provides the sensitivity of the objective value to a unit change in a constraint RHS value. The reduced cost for a variable, often called the dj, is relevant only for nonbasic variables. The reduced cost indicates the sensitivity of the objective value to unit changes in the variable value.
-
The letter A before any row or column indicates that an alternative optimum is possible.
ILOG CPLEX observes the MPS convention of printing the negative dual variables so that they correspond in sign to the reduced costs in the column section.