ILOG CPLEX .NET Reference Manual

Cplex Properties

The properties of the Cplex class are listed below. For a complete list of Cplex class members, see the Cplex Members topic.

Public Instance Properties

BestObjValue Gets a bound on the optimal solution value of the active problem in a MIP. When a model has been solved to optimality, this value matches the optimal solution value within the current MIP gap tolerance. If a MIP optimization is terminated before optimality has been proven, this value is computed for a minimization (maximization) problem as the minimum (maximum) objective function value of all remaining unexplored nodes.
Cutoff Gets the cutoff for the objective value when nodes are being solved during branch-and-cut search. This value is typically computed from the objective value of an incumbent solution and the optimality gap. In the case of a minimization problem, for example, if the objective value of a node exceeds the cutoff value, the node can be pruned without the need to solve the node to optimality.
IncumbentNode Gets the node number where the current incumbent was found.
Name (inherited from CplexModeler) 
NbarrierIterations Gets the number of barrier iterations from the last solve.
NbinVars Gets the number of binary (or Boolean) variables in the matrix representation of the active model. Note that the result is not necessarily equal to the number of Boolean variables in the active model, as some mapping of modeling objects may require the introduction of added matrix columns.
Ncliques Deprecated, no replacement.
Ncols Gets the number of columns in the matrix representation of the active model. Note that the result may be greater than the number of variables in the active model, since some modeling objects may require more than one matrix column.
Ncovers Deprecated, no replacement.
NcrossDExch Gets the number of dual exchange operations in the crossover of the last solve.
NcrossDPush Gets the number of dual push operations in the crossover of the last solve.
NcrossPExch Gets the number of primal exchange operations in the crossover of the last solve.
NcrossPPush Gets the number of primal push operations in the crossover of the last solve.
NdualSuperbasics Gets the number of dual superbasic variables in the basis.
NintVars Gets the number of integer variables in the matrix representation of the active model. Note that the result is not necessarily equal to the number of integer variables in the active model, as some mapping of modeling objects may require the introduction of added matrix columns.
Niterations Gets the number of iterations from the last solve.
Nnodes Gets the number of branch-and-cut nodes explored in solving the active model.
NnodesLeft Gets the number of unexplored nodes in the branch-and-cut tree.
NNZs Gets the number of nonzero elements in the matrix representation of the active model.
NphaseOneIterations Gets the number of phase I iterations from the last solve.
NprimalSuperbasics Gets the number of primal superbasic variables in the basis.
NQCs Gets the number of quadratic constraints in the active model. Note that the result may be different from the number of constraints in the active model, since linear constraints are counted separately.
Nrows Gets the number of rows in the matrix representation of the active model. Note that the result may be different from the number of constraints in the active model, since some modeling objects may require more than one matrix row and quadratic constraints are not accounted for as rows.
NsemiContVars Gets the number of semi-continuous variables in the matrix representation of the active model.
NsemiIntVars Gets the number of semi-integer variables in the matrix representation of the active model.
NsiftingIterations Gets the number of sifting iterations from the last solve.
NsiftingPhaseOneIterations Gets the number of sifting phase I iterations from the last solve.
NSOS1 Gets the number of SOSs of type 1 in the active model.
NSOS2 Gets the number of SOSs of type 2 in the active model.
NSOSs Gets the number of SOSs of both types, 1 and 2 in the active model.
ObjValue Gets the objective value of the current solution.
Ray Gets a linear expression representing an unbounded direction for the active model if it has been proven unbounded by one of the simplex methods. If a*x + b*y is the returned by this method, it represents an unbounded direction vector with an x coordinate of a and y coordinate of b.
SubAlgorithm Gets the type of the algorithm that was used to generate the solution of the last branch-and-cut node solved during a MIP solve terminated because of an error during mixed integer optimization.
Version Gets a string that indicates the version of CPLEX.

See Also

Cplex Class | ILOG.CPLEX Namespace