Displaying Problem Statistics

When the problem is as small as our example, it is easy to display it on the screen; however, many real problems are far too large to display. For these problems, the stats option of the display problem command is helpful. When you select stats, information about the attributes of the problem appears, but not the entire problem itself. These attributes include:

Try this feature by typing:

  display problem stats

For our example, the following information appears:

Problem Name: example

Constraints : 2 [Less: 2]

Variables : 3 [Nneg: 2, Box: 1]

Constraint nonzeros: 6

Objective nonzeros: 3

RHS nonzeros: 2

This information tells us that in the example there are two constraints, three variables, and six nonzero constraint coefficients. The two constraints are both of the type less-than-or-equal-to. Two of the three variables have the default nonnegativity bounds (0 x +) and one is restricted to a certain range (a box variable). In addition to a constraint matrix nonzero count, there is a count of nonzero coefficients in the objective function and on the right-hand side. Such statistics can help to identify errors in a problem without displaying it in its entirety.

Another way to avoid displaying an entire problem is to display a specific part of it by using one of the following three options of the display problem command:


Previous Page: Displaying a Problem   Return to Top Next Page: Specifying Item Ranges