> Tutorials > Interactive Optimizer Tutorial > Displaying a Problem > Displaying Problem Statistics |
Displaying Problem Statistics |
INDEX
![]() |
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:
For our example, the following information appears:
Problem name: example Variables : 3 [Nneg: 2, Box: 1] Objective nonzeros : 3 Linear constraints : 2 [Less: 2] Nonzeros : 6 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.
You can see more information about the values of the input data in your problem if you set the datacheck
parameter before you type the display
command. (Parameters are explained Setting ILOG CPLEX Parameters later in this tutorial.) To set the datacheck
parameter, type the following for now:
With this setting, the command display problem stats
shows this additional information:
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:
names
, documented in Displaying Variable or Constraint Names , can be used to display a specified set of variable or constraint names;
constraints
, documented in Displaying Constraints , can be used to display a specified set of constraints;
bounds
, documented in Displaying Bounds , can be used to display a specified set of bounds.
Copyright © 1987-2003 ILOG, S.A. All rights reserved. Legal terms. | PREVIOUS NEXT |