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 byopt.lp_solve
orilp_dense()
andilp_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
orilp_info()
.- bufloat, array-like, shape
The upper bounds for all the constraints, as returned by
opt.lp_solve
orilp_info()
.- xfloat, array-like, shape
The solution to the problem, as returned by
opt.lp_solve
orilp_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
orilp_info()
.- istateint, array-like, shape
The status of every constraint in the working set at the solution, as returned by
opt.lp_solve
orilp_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 (seeFileObjManager
). The function must be preceded in the same program by calls toilp_mpsx_convert()
and eitheropt.lp_solve
(if an LP problem has been solved) orilp_dense()
andilp_info()
(if an IP problem has been solved). The documents forilp_mpsx_convert()
,opt.lp_solve
and/orilp_dense()
andilp_info()
should be consulted for further details.
- References
IBM, 1971, MPSX – Mathematical programming system, Program Number 5734 XM4, IBM Trade Corporation, New York