Learn R Programming

lpSolveAPI (version 5.5.2.0-17.12)

select.solution: Select Solution

Description

Select which solution is returned by the lpSolve accessor methods.

Usage

select.solution(lprec, solution)

Value

a single integer value: the number of optimal solutions.

Arguments

lprec

an lpSolve linear program model object.

solution

optional. An integer between 1 and the number of optimal solutions to the model.

Author

Kjell Konis kjell.konis@me.com

Details

When the branch and bound algorithm is used (i.e., when there are integer, semi-continuous or SOS variables in the model) there may be multiple optimal solutions.

References

https://lpsolve.sourceforge.net/5.5/index.htm