naginterfaces.library.mip.ilp_​print

naginterfaces.library.mip.ilp_print(a, bl, bu, x, clamda, istate, crname, comm, io_manager=None)[source]

ilp_print prints the solution to a linear or integer programming problem computed by opt.lp_solve or ilp_dense() and ilp_info(), with user-supplied names for the rows and columns.

For full information please refer to the NAG Library document for h02bv

https://support.nag.com/numeric/nl/nagdoc_30.2/flhtml/h/h02bvf.html

Parameters
afloat, array-like, shape

Note: the required extent for this argument in dimension 2 is determined as follows: if : ; if : ; otherwise: .

The matrix of general linear constraints, as returned by ilp_mpsx_convert().

blfloat, array-like, shape

The lower bounds for all the constraints, as returned by opt.lp_solve or ilp_info().

bufloat, array-like, shape

The upper bounds for all the constraints, as returned by opt.lp_solve or ilp_info().

xfloat, array-like, shape

The solution to the problem, as returned by opt.lp_solve or ilp_dense().

clamdafloat, array-like, shape

The Lagrange-multipliers (reduced costs) for each constraint with respect to the working set, as returned by opt.lp_solve or ilp_info().

istateint, array-like, shape

The status of every constraint in the working set at the solution, as returned by opt.lp_solve or ilp_info().

crnamestr, length 8, array-like, shape

The user-defined names for all the variables and constraints, as returned by ilp_mpsx_convert().

commdict, communication object, modified in place

Communication structure.

This argument must have been initialized by a prior call to opt.nlp1_init with .

io_managerFileObjManager, optional

Manager for I/O in this routine.

Raises
NagValueError
(errno )

On entry, .

Constraint: .

(errno )

On entry, .

Constraint: .

Notes

In the NAG Library the traditional C interface for this routine uses a different algorithmic base. Please contact NAG if you have any questions about compatibility.

ilp_print prints the solution to a linear or integer programming problem with user-supplied names for the rows and columns. All output is written to the file object associated with the advisory I/O unit (see FileObjManager). The function must be preceded in the same program by calls to ilp_mpsx_convert() and either opt.lp_solve (if an LP problem has been solved) or ilp_dense() and ilp_info() (if an IP problem has been solved). The documents for ilp_mpsx_convert() , opt.lp_solve and/or ilp_dense() and ilp_info() should be consulted for further details.

References

IBM, 1971, MPSX – Mathematical programming system, Program Number 5734 XM4, IBM Trade Corporation, New York