Learn R Programming

rLindo (version 8.0.1)

rLSgetRoundMIPsolution: Round the given MIP solution to nearest int solution.

Description

R interface function for LINDO API function LSgetRoundMIPsolution. For more information, please refer to LINDO API User Manual.

Usage

rLSgetRoundMIPsolution(model,padPrimal = NULL,iUseOpti)

Arguments

model
A LINDO API model object, returned by rLScreateModel.
padPrimal
The primal solution. If it is NULL, the solution in model will be rounded.
iUseOpti
Whether to use reoptimization after integers have been rounded and fixed to there optimal value.

Value

An R list object with components:
ErrorCode
Zero if successful, nonzero otherwise.
padPrimalRound
The rounded solution.
pdObjRound
Objective value of the rounded solution.
pdPfeasRound
Infeasibility of the rounded solution.
pnstatus
Status of solution if reoptimization have been used.

References

LINDO SYSTEMS home page at www.lindo.com