get.solutioncount function

Get Solution Count

Get Solution Count

Computes the number of equal solutions in a successfully solved lpSolve linear program model object. This is only valid if there are integer, semi-continuous or SOS variables in the model so that the branch-and-bound algorithm is used. This count gives the number of solutions with the same optimal objective value.

get.solutioncount(lprec)

Arguments

  • lprec: an lpSolve linear program model object.

Returns

a single integer value giving the number of solutions attaining the optimal objective value.

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