Learn R Programming

editrules (version 2.9.5)

errorLocalizer_mip: Localize errors using a MIP approach.

Description

Localize errors using a MIP approach.

Usage

errorLocalizer_mip(
  E,
  x,
  weight = rep(1, length(x)),
  maxduration = 600L,
  verbose = "neutral",
  lpcontrol = getOption("er.lpcontrol"),
  ...
)

Value

list with solution weight w, logical

adapt stating what to adapt,

x_feasible and the lp problem (an lpExtPtr object)

Arguments

E

an editset, editmatrix, or editarray

x

named numeric with data

weight

numeric with weights

maxduration

number of seconds that is spent on finding a solution

verbose

verbosity argument that will be passed on to solve lpSolveAPI

lpcontrol

named list of arguments that will be passed on to lp.control. maxduration will override lpSolve's timeout argument.

...

other arguments that will be passed on to solve.

Details

errorLocalizer_mip uses E and x to define a mixed integer problem and solves this problem using lpSolveApi. This function can be much faster then errorLocalizer but does not return the degeneracy of a solution. However it does return an bonus: x_feasible, a feasible solution.

References

E. De Jonge and Van der Loo, M. (2012) Error localization as a mixed-integer program in editrules (included with the package)

lp_solve and Kjell Konis. (2011). lpSolveAPI: R Interface for lp_solve version 5.5.2.0. R package version 5.5.2.0-5. http://CRAN.R-project.org/package=lpSolveAPI

See Also

localizeErrors, errorLocalizer, errorLocation