select.solution function

Select Solution

Select Solution

Select which solution is returned by the lpSolve accessor methods.

select.solution(lprec, solution)

Arguments

  • lprec: an lpSolve linear program model object.
  • solution: optional. An integer between 1 and the number of optimal solutions to the model.

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.

Returns

a single integer value: the number of optimal solutions.

References

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

Author(s)

Kjell Konis kjell.konis@me.com

  • Maintainer: Florian Schwendinger
  • License: LGPL-2
  • Last published: 2024-07-19

Useful links