When the ILOG CPLEX Barrier Optimizer reaches a solution for a QP, it generates all the primal and dual information available for pure, nonbasis barrier solutions, as described in Understanding Solution Quality from the Barrier LP Optimizer.
|
You can save QP solution information as VEC files with the extension .vec
.
write
command followed by a file name with the extension .vec
.
CPXvecwrite()
.
To display information about a QP solution from the ILOG CPLEX Barrier Optimizer:
display solution quality
provides information about the quality of a QP solution with respect to solution optimality. (Table 4.11 lists and explains this information.)
display problem variable
shows the quadratic objective function coefficient of a specific variable.
display problem qpvariables
shows the names of quadratic variables.
display problem constraint obj
returns the complete linear and quadratic objective function.
CPXsolution()
to access the solution values and the routine CPXgetdblquality()
to access information about the quality of the solution.
IloCplex
object, solution information can be queried as for any other problem type using the getValues()
and similar methods. Also, method getQuality()
works the same way for QPs as for any other problem type.