8.7.3. Simplex method attributes

C API parameter

Parameter

Description

MDO_INT_ATTR_SPX_NUM_ITERS

“SPX/NumIters”

The number of iterations in the simplex method.

8.7.3.1. “SPX/NumIters”

This attribute is used to query the number of iterations in the simplex method. The parameter APIs of C++, Java, and Python are in the MDO_INT_PARAM namespace, please refer to the Chapter Alias of Attributes.

  • Group: Model

  • Type: Integer

  • Modifiable: No

Examples

C

Mdo_getIntAttr(model, "SPX/NumIters", &num_iters);

C++

num_iters = model.getIntAttr("SPX/NumIters");

Python

num_iters = model.get_int_attr("SPX/NumIters")